[PATCH V2] usb: phy: R-Car Gen2: Use usb_add_phy_dev

2013-12-09 Thread Valentine Barshak
Use usb_add_phy_dev instead of usb_add_phy, so that devices can be bound to the phy. This is needed to set up USB phy for some internal PCI USB host controllers on R-Car Gen2. Changes from previous version: * Fixed function names in the commit log Signed-off-by: Valentine Barshak --- drivers

[PATCH] usb: phy: R-Car Gen2: Use usb_phy_add_dev

2013-12-09 Thread Valentine Barshak
Use add_phy_dev instead of usb_phy_add, so that devices can be bound to the phy. This is needed to set up USB phy for some internal PCI USB host controllers on R-Car Gen2. Signed-off-by: Valentine Barshak --- drivers/usb/phy/phy-rcar-gen2-usb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion

[PATCH 2/2] usb: hcd: Initialize USB phy if needed

2013-12-03 Thread Valentine Barshak
. Signed-off-by: Valentine Barshak --- drivers/usb/core/hcd.c | 18 ++ 1 file changed, 18 insertions(+) diff --git a/drivers/usb/core/hcd.c b/drivers/usb/core/hcd.c index 7527c8e..d3a9bcd 100644 --- a/drivers/usb/core/hcd.c +++ b/drivers/usb/core/hcd.c @@ -2589,6 +2589,24 @@ int

[V3 PATCH 0/2] Defer HCD init until the external PHY, bound to the HCD is ready

2013-12-03 Thread Valentine Barshak
def CONFIG_USB_PHY. Valentine Barshak (2): usb: hcd: Remove USB phy if needed usb: hcd: Initialize USB phy if needed drivers/usb/core/hcd.c | 32 +++- include/linux/usb/hcd.h | 1 + 2 files changed, 32 insertions(+), 1 deletion(-) -- 1.8.3.1 -- To unsubscribe f

[PATCH 1/2] usb: hcd: Remove USB phy if needed

2013-12-03 Thread Valentine Barshak
-by: Valentine Barshak Acked-by: Alan Stern --- drivers/usb/core/hcd.c | 14 +- include/linux/usb/hcd.h | 1 + 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/drivers/usb/core/hcd.c b/drivers/usb/core/hcd.c index 6bffb8c..7527c8e 100644 --- a/drivers/usb/core/hcd.c ++

[PATCH 2/2] usb: hcd: Initialize USB phy if needed

2013-11-26 Thread Valentine Barshak
. Signed-off-by: Valentine Barshak Acked-by: Alan Stern --- drivers/usb/core/hcd.c | 20 1 file changed, 20 insertions(+) diff --git a/drivers/usb/core/hcd.c b/drivers/usb/core/hcd.c index 7527c8e..649506b 100644 --- a/drivers/usb/core/hcd.c +++ b/drivers/usb/core/hcd.c

[PATCH 1/2] usb: hcd: Remove USB phy if needed

2013-11-26 Thread Valentine Barshak
-by: Valentine Barshak Acked-by: Alan Stern --- drivers/usb/core/hcd.c | 14 +- include/linux/usb/hcd.h | 1 + 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/drivers/usb/core/hcd.c b/drivers/usb/core/hcd.c index 6bffb8c..7527c8e 100644 --- a/drivers/usb/core/hcd.c ++

[V2 PATCH 0/2] Defer HCD init until the external PHY, bound to the HCD is ready

2013-11-26 Thread Valentine Barshak
the PCI HC devices, and make the phy-rcar-gen2-usb driver register USB phy with usb_add_phy_dev() AOT usb_add_phy() callback. Changes from previous version: * Used #ifdef CONFIG_USB_PHY instead of introducing new config option. Valentine Barshak (2): usb: hcd: Remove USB phy if needed usb:

[RFC V2 PATCH 1/2] usb: hcd: Remove USB phy if needed

2013-11-07 Thread Valentine Barshak
-by: Valentine Barshak --- drivers/usb/core/hcd.c | 14 +- include/linux/usb/hcd.h | 1 + 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/drivers/usb/core/hcd.c b/drivers/usb/core/hcd.c index d6a8d23..d939521 100644 --- a/drivers/usb/core/hcd.c +++ b/drivers/usb/core/hc

[RFC V2 PATCH 2/2] usb: hcd: Initialize USB phy if needed

2013-11-07 Thread Valentine Barshak
. Signed-off-by: Valentine Barshak --- drivers/usb/core/hcd.c | 20 1 file changed, 20 insertions(+) diff --git a/drivers/usb/core/hcd.c b/drivers/usb/core/hcd.c index d939521..fd09ec6 100644 --- a/drivers/usb/core/hcd.c +++ b/drivers/usb/core/hcd.c @@ -2597,6 +2597,26 @@ int

[RFC V2 PATCH 0/2] Defer HCD init until the external PHY, bound to the HCD is ready

2013-11-07 Thread Valentine Barshak
the PCI HC devices, and make the phy-rcar-gen2-usb driver register USB phy with usb_add_phy_dev() AOT usb_add_phy() callback. Changes from previous version: * Used #ifdef CONFIG_USB_PHY instead of introducing new config option. Valentine Barshak (2): usb: hcd: Remove USB phy if needed usb:

[RFC PATCH 1/2] usb: hcd: Remove USB phy if needed

2013-11-05 Thread Valentine Barshak
-by: Valentine Barshak --- drivers/usb/core/hcd.c | 14 +- include/linux/usb/hcd.h | 1 + 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/drivers/usb/core/hcd.c b/drivers/usb/core/hcd.c index d6a8d23..d939521 100644 --- a/drivers/usb/core/hcd.c +++ b/drivers/usb/core/hc

[RFC PATCH 2/2] usb: hcd: Introduce CONFIG_USB_HCD_EXTERNAL_PHY option

2013-11-05 Thread Valentine Barshak
. Signed-off-by: Valentine Barshak --- drivers/usb/core/hcd.c | 20 drivers/usb/host/Kconfig | 11 +++ 2 files changed, 31 insertions(+) diff --git a/drivers/usb/core/hcd.c b/drivers/usb/core/hcd.c index d939521..da9c4ba 100644 --- a/drivers/usb/core/hcd.c +++ b

[RFC PATCH 0/2] Defer HCD init until the external PHY, bound to the HCD is ready

2013-11-05 Thread Valentine Barshak
phy device to the PCI HC devices, and make the phy-rcar-gen2-usb driver register USB phy with usb_add_phy_dev() AOT usb_add_phy() callback. Valentine Barshak (2): usb: hcd: Remove USB phy if needed usb: hcd: Introduce CONFIG_USB_HCD_EXTERNAL_PHY option drivers/usb/core/hcd.c |

[PATCH] usb: phy: Move R-Car Gen2 driver registration to postcore_inictall

2013-10-29 Thread Valentine Barshak
USB phy controls USB channels 0 and 2 which are shared between PCI USB host controllers and USBHS/USBSS respectively. This Initializes USB phy driver earlier because we need it before PCI USB host controllers are initialized. Signed-off-by: Valentine Barshak --- drivers/usb/phy/phy-rcar-gen2

[PATCH] usb: phy: phy-rcar-gen2-usb: Fix phy initialization

2013-10-25 Thread Valentine Barshak
Add missing USB UGCTRL2 register offset. Signed-off-by: Valentine Barshak --- drivers/usb/phy/phy-rcar-gen2-usb.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/usb/phy/phy-rcar-gen2-usb.c b/drivers/usb/phy/phy-rcar-gen2-usb.c index a99a695..db3ab34 100644

[PATCH 1/3] usb: phy: Add RCAR Gen2 USB phy

2013-10-10 Thread Valentine Barshak
This adds RCAR Gen2 USB phy support. The driver configures USB channels 0/2 which are shared between PCI USB hosts and USBHS/USBSS devices. It also controls internal USBHS phy. Signed-off-by: Valentine Barshak --- drivers/usb/phy/Kconfig | 13 ++ drivers/usb/phy

[PATCH 1/3] usb: phy: Add RCAR Gen2 USB phy

2013-10-09 Thread Valentine Barshak
This adds RCAR Gen2 USB phy support. The driver configures USB channels 0/2 which are shared between PCI USB hosts and USBHS/USBSS devices. It also controls internal USBHS phy. Signed-off-by: Valentine Barshak --- drivers/usb/phy/Kconfig | 13 ++ drivers/usb/phy

[PATCH 3/3] arm: shmobile: lager: Add USBHS support

2013-10-09 Thread Valentine Barshak
This adds USBHS PHY and registers USBHS device if the driver is enabled. Signed-off-by: Valentine Barshak Acked-by: Kuninori Morimoto --- arch/arm/mach-shmobile/board-lager.c | 115 +++ 1 file changed, 115 insertions(+) diff --git a/arch/arm/mach-shmobile/board

[PATCH 2/3] arm: shmobile: r8a7790: Add USBHS clock support

2013-10-09 Thread Valentine Barshak
This adds USBHS clock support. Signed-off-by: Valentine Barshak Acked-by: Kuninori Morimoto --- arch/arm/mach-shmobile/clock-r8a7790.c | 4 1 file changed, 4 insertions(+) diff --git a/arch/arm/mach-shmobile/clock-r8a7790.c b/arch/arm/mach-shmobile/clock-r8a7790.c index a64f965..161d44e

[PATCH 0/3] Add USBHS support to Lager (take 3)

2013-10-09 Thread Valentine Barshak
renesas_usbhs driver disable USB PHY completely when it is not needed. Valentine Barshak (3): usb: phy: Add RCAR Gen2 USB phy arm: shmobile: r8a7790: Add USBHS clock support arm: shmobile: lager: Add USBHS support arch/arm/mach-shmobile/board-lager.c| 106 ++ arch/arm/mach

[PATCH 1/3] usb: phy: Add RCAR Gen2 USB phy

2013-10-08 Thread Valentine Barshak
This adds RCAR Gen2 USB phy support. The driver configures USB channels 0/2 which are shared between PCI USB hosts and USBHS/USBSS devices. It also controls internal USBHS phy. Signed-off-by: Valentine Barshak --- drivers/usb/phy/Kconfig | 13 ++ drivers/usb/phy

[PATCH 2/3] arm: shmobile: r8a7790: Add USBHS clock support

2013-10-08 Thread Valentine Barshak
This adds USBHS clock support. Signed-off-by: Valentine Barshak --- arch/arm/mach-shmobile/clock-r8a7790.c | 4 1 file changed, 4 insertions(+) diff --git a/arch/arm/mach-shmobile/clock-r8a7790.c b/arch/arm/mach-shmobile/clock-r8a7790.c index a64f965..161d44e 100644 --- a/arch/arm/mach

[PATCH 0/3] Add USBHS support to Lager (take 2)

2013-10-08 Thread Valentine Barshak
; * usb_phy_init/shutdown called from usbhs_power_ctrl callback to allow renesas_usbhs driver disable USB PHY completely when it is not needed. Valentine Barshak (3): usb: phy: Add RCAR Gen2 USB phy arm: shmobile: r8a7790: Add USBHS clock support arm: shmobile: lager: Add USBHS support arch

[PATCH 3/3] arm: shmobile: lager: Add USBHS support

2013-10-08 Thread Valentine Barshak
This adds USBHS PHY and registers USBHS device if the driver is enabled. Signed-off-by: Valentine Barshak --- arch/arm/mach-shmobile/board-lager.c | 115 +++ 1 file changed, 115 insertions(+) diff --git a/arch/arm/mach-shmobile/board-lager.c b/arch/arm/mach

[PATCH 2/3] arm: shmobile: r8a7790: Add USBHS clock support

2013-10-07 Thread Valentine Barshak
This adds USBHS clock support. Signed-off-by: Valentine Barshak --- arch/arm/mach-shmobile/clock-r8a7790.c | 4 1 file changed, 4 insertions(+) diff --git a/arch/arm/mach-shmobile/clock-r8a7790.c b/arch/arm/mach-shmobile/clock-r8a7790.c index a64f965..7bb2796 100644 --- a/arch/arm/mach

[PATCH 3/3] arm: shmobile: lager: Add USBHS support

2013-10-07 Thread Valentine Barshak
This adds USBHS PHY and registers USBHS device if the driver is enabled. Signed-off-by: Valentine Barshak --- arch/arm/mach-shmobile/board-lager.c | 106 +++ 1 file changed, 106 insertions(+) diff --git a/arch/arm/mach-shmobile/board-lager.c b/arch/arm/mach

[PATCH 1/3] usb: phy: Add RCAR Gen2 USB phy

2013-10-07 Thread Valentine Barshak
This adds RCAR Gen2 USB phy support. The driver configures USB channels 0/2, which are shared between PCI USB hosts and USBHS/USBSS devices. It also controls internal USBHS phy. Signed-off-by: Valentine Barshak --- drivers/usb/phy/Kconfig | 13 ++ drivers/usb/phy

[PATCH 0/3] Add USBHS support to Lager

2013-10-07 Thread Valentine Barshak
phy driver. Valentine Barshak (3): usb: phy: Add RCAR Gen2 USB phy arm: shmobile: r8a7790: Add USBHS clock support arm: shmobile: lager: Add USBHS support arch/arm/mach-shmobile/board-lager.c| 106 + arch/arm/mach-shmobile/clock-r8a7790.c | 4 + drivers/usb