linux-pm.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Re: [PATCH v3 09/12] EXAMPLE CODE: usb: port: Parse pwrseq phandle from Device Tree
       [not found]     ` <20160601120520.GB16740@shlinux2>
@ 2016-06-01 18:16       ` Stephen Boyd
  2016-06-02  1:24         ` Peter Chen
  0 siblings, 1 reply; 3+ messages in thread
From: Stephen Boyd @ 2016-06-01 18:16 UTC (permalink / raw)
  To: Peter Chen
  Cc: Krzysztof Kozlowski, Greg Kroah-Hartman,
	Bartlomiej Zolnierkiewicz, Ulf Hansson, Sebastian Reichel,
	Dmitry Eremin-Solenikov, David Woodhouse,
	Javier Martinez Canillas, linux-kernel, linux-mmc, linux-pm,
	Alan Stern, linux-usb, Rob Herring, Pawel Moll, Mark Rutland,
	Ian Campbell, Kumar Gala, Kukjin Kim, devicetree,
	linux-arm-kernel, linux-samsung-soc

Quoting Peter Chen (2016-06-01 05:05:20)
> On Wed, Jun 01, 2016 at 01:57:23AM -0700, Stephen Boyd wrote:
> > Quoting Krzysztof Kozlowski (2016-06-01 01:02:18)
> > > Parse usb-pwrseq property from Device Tree to get the phandle to pwrseq
> > > device.  The pwrseq device will be used by USB hub to cycle the power
> > > before activating ports.
> > > 
> > > Signed-off-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
> > 
> > Drive by review comment.
> > 
> > I was hoping this would help me with a problem I'm having where I have a
> > hub (smsc4604) that needs to be taken out of reset before my HSIC
> > controller sends a USB reset to it, but it seems this is more about
> > doing some sort of power on sequence after enumeration?
> > 
> 
> No, you may need to do reset before enumeration, the general purpose of
> reset is eliminate unstable hardware state, and let the controller find
> the device.
> 
> Try to do it at bootloader to see if it works for you.
> 

Sorry the bootloader doesn't do this so that doesn't work for me.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH v3 09/12] EXAMPLE CODE: usb: port: Parse pwrseq phandle from Device Tree
  2016-06-01 18:16       ` [PATCH v3 09/12] EXAMPLE CODE: usb: port: Parse pwrseq phandle from Device Tree Stephen Boyd
@ 2016-06-02  1:24         ` Peter Chen
  2016-06-02 23:59           ` Stephen Boyd
  0 siblings, 1 reply; 3+ messages in thread
From: Peter Chen @ 2016-06-02  1:24 UTC (permalink / raw)
  To: Stephen Boyd
  Cc: Krzysztof Kozlowski, Greg Kroah-Hartman,
	Bartlomiej Zolnierkiewicz, Ulf Hansson, Sebastian Reichel,
	Dmitry Eremin-Solenikov, David Woodhouse,
	Javier Martinez Canillas, linux-kernel, linux-mmc, linux-pm,
	Alan Stern, linux-usb, Rob Herring, Pawel Moll, Mark Rutland,
	Ian Campbell, Kumar Gala, Kukjin Kim, devicetree,
	linux-arm-kernel, linux-samsung-soc

On Wed, Jun 01, 2016 at 11:16:34AM -0700, Stephen Boyd wrote:
> Quoting Peter Chen (2016-06-01 05:05:20)
> > On Wed, Jun 01, 2016 at 01:57:23AM -0700, Stephen Boyd wrote:
> > > Quoting Krzysztof Kozlowski (2016-06-01 01:02:18)
> > > > Parse usb-pwrseq property from Device Tree to get the phandle to pwrseq
> > > > device.  The pwrseq device will be used by USB hub to cycle the power
> > > > before activating ports.
> > > > 
> > > > Signed-off-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
> > > 
> > > Drive by review comment.
> > > 
> > > I was hoping this would help me with a problem I'm having where I have a
> > > hub (smsc4604) that needs to be taken out of reset before my HSIC
> > > controller sends a USB reset to it, but it seems this is more about
> > > doing some sort of power on sequence after enumeration?
> > > 
> > 
> > No, you may need to do reset before enumeration, the general purpose of
> > reset is eliminate unstable hardware state, and let the controller find
> > the device.
> > 
> > Try to do it at bootloader to see if it works for you.
> > 
> 
> Sorry the bootloader doesn't do this so that doesn't work for me.

I mean try to see if the HUB can work if you reset it at bootloader.
If it works, it means you need to do reset before enumeration, and you
don't need to do anything after enumeration.

-- 

Best Regards,
Peter Chen

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH v3 09/12] EXAMPLE CODE: usb: port: Parse pwrseq phandle from Device Tree
  2016-06-02  1:24         ` Peter Chen
@ 2016-06-02 23:59           ` Stephen Boyd
  0 siblings, 0 replies; 3+ messages in thread
From: Stephen Boyd @ 2016-06-02 23:59 UTC (permalink / raw)
  To: Peter Chen
  Cc: Mark Rutland, Krzysztof Kozlowski, Ulf Hansson, linux-kernel,
	linux-samsung-soc, Dmitry Eremin-Solenikov, linux-pm,
	Javier Martinez Canillas, Kukjin Kim, Alan Stern, devicetree,
	Pawel Moll, Bartlomiej Zolnierkiewicz, Rob Herring,
	linux-arm-kernel, Ian Campbell, Greg Kroah-Hartman, linux-usb,
	linux-mmc, Sebastian Reichel, Kumar Gala, David Woodhouse

Quoting Peter Chen (2016-06-01 18:24:19)
> On Wed, Jun 01, 2016 at 11:16:34AM -0700, Stephen Boyd wrote:
> > > 
> > > No, you may need to do reset before enumeration, the general purpose of
> > > reset is eliminate unstable hardware state, and let the controller find
> > > the device.
> > > 
> > > Try to do it at bootloader to see if it works for you.
> > > 
> > 
> > Sorry the bootloader doesn't do this so that doesn't work for me.
> 
> I mean try to see if the HUB can work if you reset it at bootloader.
> If it works, it means you need to do reset before enumeration, and you
> don't need to do anything after enumeration.
> 

Ah ok. Yes, I need to deassert the reset before enumeration. Right now I
have a driver for the 4604 hub controller that deasserts a reset gpio
and sends an i2c command to put the controller into "hub" mode. If I do
this before the usb controller driver probes then everything works. If I
do it after the controller probes it doesn't.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2016-06-02 23:59 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <1464768141-25420-1-git-send-email-k.kozlowski@samsung.com>
     [not found] ` <1464768141-25420-10-git-send-email-k.kozlowski@samsung.com>
     [not found]   ` <146477144362.1485.3331887341591876278@sboyd-linaro>
     [not found]     ` <20160601120520.GB16740@shlinux2>
2016-06-01 18:16       ` [PATCH v3 09/12] EXAMPLE CODE: usb: port: Parse pwrseq phandle from Device Tree Stephen Boyd
2016-06-02  1:24         ` Peter Chen
2016-06-02 23:59           ` Stephen Boyd

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).