* [PATCH] usb: phy: make GPIOs optional for the generic phy
@ 2015-01-15 2:45 Paul Zimmerman
2015-01-16 11:14 ` Robert Jarzmik
0 siblings, 1 reply; 3+ messages in thread
From: Paul Zimmerman @ 2015-01-15 2:45 UTC (permalink / raw)
To: balbi
Cc: Dinh Nguyen (dinguyen@opensource.altera.com),
lyz, robert.jarzmik, linus.walleij, linux-usb, linux-kernel
>From 47bd18e210fecf701d493c27884e13c69bc449ea Mon Sep 17 00:00:00 2001
From: Paul Zimmerman <paulz@synopsys.com>
Date: Wed, 14 Jan 2015 18:15:58 -0800
Subject: [PATCH] usb: phy: make GPIOs optional for the generic phy
The use of GPIOs should be optional for the generic phy, otherwise
the Altera SOCFPGA platform at least is broken.
Fixes breakage caused by a combination of e9f2cefb0cd "usb: phy:
generic: migrate to gpio_desc" and 135b3c4304d "usb: dwc2: platform:
add generic PHY framework support".
Signed-off-by: Paul Zimmerman <paulz@synopsys.com>
---
Based on top of testing/next.
drivers/usb/phy/phy-generic.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/usb/phy/phy-generic.c b/drivers/usb/phy/phy-generic.c
index dd05254..9a826ff 100644
--- a/drivers/usb/phy/phy-generic.c
+++ b/drivers/usb/phy/phy-generic.c
@@ -218,10 +218,10 @@ int usb_phy_gen_create_phy(struct device *dev, struct usb_phy_generic *nop,
clk_rate = 0;
needs_vcc = of_property_read_bool(node, "vcc-supply");
- nop->gpiod_reset = devm_gpiod_get(dev, "reset-gpios");
+ nop->gpiod_reset = devm_gpiod_get_optional(dev, "reset-gpios");
err = PTR_ERR(nop->gpiod_reset);
if (!err) {
- nop->gpiod_vbus = devm_gpiod_get(dev,
+ nop->gpiod_vbus = devm_gpiod_get_optional(dev,
"vbus-detect-gpio");
err = PTR_ERR(nop->gpiod_vbus);
}
--
1.7.6.5
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] usb: phy: make GPIOs optional for the generic phy
2015-01-15 2:45 [PATCH] usb: phy: make GPIOs optional for the generic phy Paul Zimmerman
@ 2015-01-16 11:14 ` Robert Jarzmik
2015-01-27 21:14 ` Sören Brinkmann
0 siblings, 1 reply; 3+ messages in thread
From: Robert Jarzmik @ 2015-01-16 11:14 UTC (permalink / raw)
To: Paul Zimmerman
Cc: balbi, Dinh Nguyen (dinguyen@opensource.altera.com),
lyz, linus.walleij, linux-usb, linux-kernel
Paul Zimmerman <Paul.Zimmerman@synopsys.com> writes:
> From 47bd18e210fecf701d493c27884e13c69bc449ea Mon Sep 17 00:00:00 2001
> From: Paul Zimmerman <paulz@synopsys.com>
> Date: Wed, 14 Jan 2015 18:15:58 -0800
> Subject: [PATCH] usb: phy: make GPIOs optional for the generic phy
>
> The use of GPIOs should be optional for the generic phy, otherwise
> the Altera SOCFPGA platform at least is broken.
>
> Fixes breakage caused by a combination of e9f2cefb0cd "usb: phy:
> generic: migrate to gpio_desc" and 135b3c4304d "usb: dwc2: platform:
> add generic PHY framework support".
>
> Signed-off-by: Paul Zimmerman <paulz@synopsys.com>
Reviewed-by: Robert Jarzmik <robert.jarzmik@free.fr>
Cheers.
--
Robert
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] usb: phy: make GPIOs optional for the generic phy
2015-01-16 11:14 ` Robert Jarzmik
@ 2015-01-27 21:14 ` Sören Brinkmann
0 siblings, 0 replies; 3+ messages in thread
From: Sören Brinkmann @ 2015-01-27 21:14 UTC (permalink / raw)
To: Robert Jarzmik
Cc: Paul Zimmerman, balbi,
Dinh Nguyen (dinguyen@opensource.altera.com),
lyz, linus.walleij, linux-usb, linux-kernel
On Fri, 2015-01-16 at 12:14PM +0100, Robert Jarzmik wrote:
> Paul Zimmerman <Paul.Zimmerman@synopsys.com> writes:
>
> > From 47bd18e210fecf701d493c27884e13c69bc449ea Mon Sep 17 00:00:00 2001
> > From: Paul Zimmerman <paulz@synopsys.com>
> > Date: Wed, 14 Jan 2015 18:15:58 -0800
> > Subject: [PATCH] usb: phy: make GPIOs optional for the generic phy
> >
> > The use of GPIOs should be optional for the generic phy, otherwise
> > the Altera SOCFPGA platform at least is broken.
> >
> > Fixes breakage caused by a combination of e9f2cefb0cd "usb: phy:
> > generic: migrate to gpio_desc" and 135b3c4304d "usb: dwc2: platform:
> > add generic PHY framework support".
> >
> > Signed-off-by: Paul Zimmerman <paulz@synopsys.com>
> Reviewed-by: Robert Jarzmik <robert.jarzmik@free.fr>
Tested-by: Soren Brinkmann <soren.brinkmann@xilinx.com>
Zynq suffers of the same problem.
Sören
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2015-01-27 21:14 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-01-15 2:45 [PATCH] usb: phy: make GPIOs optional for the generic phy Paul Zimmerman
2015-01-16 11:14 ` Robert Jarzmik
2015-01-27 21:14 ` Sören Brinkmann
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.