mbox series

[v4,0/2] Use the generic PHY framework for Ingenic USB PHY.

Message ID 20200919084225.112072-1-zhouyanjie@wanyeetech.com
Headers show
Series Use the generic PHY framework for Ingenic USB PHY. | expand

Message

Zhou Yanjie Sept. 19, 2020, 8:42 a.m. UTC
v3->v4:
Only add new generic-PHY driver, without removing the old one. Because the
jz4740-musb driver is not ready to use the generic PHY framework. When the
jz4740-musb driver is modified to use the generic PHY framework, the old
jz4770-phy driver can be "retired".

周琰杰 (Zhou Yanjie) (2):
  USB: PHY: JZ4770: Remove unnecessary function calls.
  PHY: Ingenic: Add USB PHY driver using generic PHY framework.

 drivers/phy/Kconfig                   |   1 +
 drivers/phy/Makefile                  |   1 +
 drivers/phy/ingenic/Kconfig           |  12 ++
 drivers/phy/ingenic/Makefile          |   2 +
 drivers/phy/ingenic/phy-ingenic-usb.c | 373 ++++++++++++++++++++++++++++++++++
 drivers/usb/phy/phy-jz4770.c          |   2 +-
 6 files changed, 390 insertions(+), 1 deletion(-)
 create mode 100644 drivers/phy/ingenic/Kconfig
 create mode 100644 drivers/phy/ingenic/Makefile
 create mode 100644 drivers/phy/ingenic/phy-ingenic-usb.c

Comments

Paul Cercueil Sept. 21, 2020, 12:15 p.m. UTC | #1
Le sam. 19 sept. 2020 à 16:42, 周琰杰 (Zhou Yanjie) 
<zhouyanjie@wanyeetech.com> a écrit :
> Remove unnecessary "of_match_ptr()", because Ingenic SoCs all
> depend on Device Tree.
> 
> Suggested-by: Paul Cercueil <paul@crapouillou.net>
> Signed-off-by: 周琰杰 (Zhou Yanjie) <zhouyanjie@wanyeetech.com>

Reviewed-by: Paul Cercueil <paul@crapouillou.net>

Cheers,
-Paul

> ---
> 
> Notes:
>     v3:
>     New patch.
> 
>     v3->v4:
>     No change.
> 
>  drivers/usb/phy/phy-jz4770.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/usb/phy/phy-jz4770.c 
> b/drivers/usb/phy/phy-jz4770.c
> index f6d3731581eb..4025da20b3fd 100644
> --- a/drivers/usb/phy/phy-jz4770.c
> +++ b/drivers/usb/phy/phy-jz4770.c
> @@ -350,7 +350,7 @@ static struct platform_driver ingenic_phy_driver 
> = {
>  	.probe		= jz4770_phy_probe,
>  	.driver		= {
>  		.name	= "jz4770-phy",
> -		.of_match_table = of_match_ptr(ingenic_usb_phy_of_matches),
> +		.of_match_table = ingenic_usb_phy_of_matches,
>  	},
>  };
>  module_platform_driver(ingenic_phy_driver);
> --
> 2.11.0
>