Re: Help needed USB hub disconnected at resume

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Mar 04, 2014 at 11:05:58PM +0000, Marc Murphy wrote:
> > -----Original Message-----
> > From: Felipe Balbi [mailto:balbi@xxxxxx]
> > Sent: 04 March 2014 22:44
> > To: Marc Murphy
> > Cc: 'Igor Grinberg'; Roger Quadros; linux-omap@xxxxxxxxxxxxxxx
> > Subject: Re: Help needed USB hub disconnected at resume
> > 
> > Hi,
> > 
> > On Tue, Mar 04, 2014 at 10:34:56PM +0000, Marc Murphy wrote:
> > > static __init void tam3517_ehci_init(void) {
> > >     /* Configure GPIO for EHCI port */
> > >     omap_mux_init_gpio(TAM3517_EHCI_RESET, OMAP_PIN_OUTPUT);
> > >
> > >     gpio_request(TAM3517_EHCI_RESET, "USB_RESET");
> > >     gpio_direction_output(TAM3517_EHCI_RESET, 1);
> > >     gpio_export(TAM3517_EHCI_RESET, 0);
> > 
> > why are you exporting this gpio ?
> 
> 
> It makes no difference whether I configure the GPIO or not.

gpio_export() is only to expose the gpio to sysfs. Check if that pin is
active high or active low. Then what you need, most likely, is something
like below:

gpio_direction_output(RESET, HIGH);
usleep_range(50000, 2000000);
gpio_set_value(RESET, LOW);

(assuming active high here)

-- 
balbi

Attachment: signature.asc
Description: Digital signature


[Index of Archives]     [Linux Arm (vger)]     [ARM Kernel]     [ARM MSM]     [Linux Tegra]     [Linux WPAN Networking]     [Linux Wireless Networking]     [Maemo Users]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite Trails]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux