The Linux Kernel Mailing List
 help / color / mirror / Atom feed
* Not able to read USB speed and descriptor
@ 2009-06-23 13:27 Prabhu Chawandi
  2009-06-23 14:14 ` Rajaram R
  2009-06-24  7:21 ` Prabhu Chawandi
  0 siblings, 2 replies; 4+ messages in thread
From: Prabhu Chawandi @ 2009-06-23 13:27 UTC (permalink / raw)
  To: linux-usb, linux-kernel

Hi all,

   I ma not able to read the USB descriptor and speeed, while I can
read and write into the storage device..

What might be the reason for that ?

regards,
Prabhu

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

* Re: Not able to read USB speed and descriptor
  2009-06-23 13:27 Not able to read USB speed and descriptor Prabhu Chawandi
@ 2009-06-23 14:14 ` Rajaram R
  2009-06-24  7:21 ` Prabhu Chawandi
  1 sibling, 0 replies; 4+ messages in thread
From: Rajaram R @ 2009-06-23 14:14 UTC (permalink / raw)
  To: Prabhu Chawandi; +Cc: linux-usb, linux-kernel

On Tue, Jun 23, 2009 at 9:27 PM, Prabhu
Chawandi<prabhu.chavandi@gmail.com> wrote:
> Hi all,
>
>   I ma not able to read the USB descriptor and speeed, while I can
> read and write into the storage device..
>
> What might be the reason for that ?

Where is the code ?

>
> regards,
> Prabhu
> --
> To unsubscribe from this list: send the line "unsubscribe linux-usb" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>

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

* Re: Not able to read USB speed and descriptor
  2009-06-23 13:27 Not able to read USB speed and descriptor Prabhu Chawandi
  2009-06-23 14:14 ` Rajaram R
@ 2009-06-24  7:21 ` Prabhu Chawandi
  2009-06-24 15:01   ` Alan Stern
  1 sibling, 1 reply; 4+ messages in thread
From: Prabhu Chawandi @ 2009-06-24  7:21 UTC (permalink / raw)
  To: linux-usb, linux-kernel

In the devio.c,

  I have added  a case to return the speed and other descriptors,

call :
 ret = usb_control_msg(pRootHub, usb_sndctrlpipe(pRootHub, 0),
               USB_REQ_CLEAR_FEATURE, USB_RT_PORT, USB_PORT_FEAT_POWER,
               port_num + 1, NULL, 0, HZ);

The above call is returning err : -32 EPIPE.

The above call is working file for the rear port while the same is not
working for the fromt port.


Anythig am I missing ? I am testing it for mass stoage device...


Any inputs ? ,,,,,

On Tue, Jun 23, 2009 at 6:57 PM, Prabhu
Chawandi<prabhu.chavandi@gmail.com> wrote:
> Hi all,
>
>   I ma not able to read the USB descriptor and speeed, while I can
> read and write into the storage device..
>
> What might be the reason for that ?
>
> regards,
> Prabhu
>

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

* Re: Not able to read USB speed and descriptor
  2009-06-24  7:21 ` Prabhu Chawandi
@ 2009-06-24 15:01   ` Alan Stern
  0 siblings, 0 replies; 4+ messages in thread
From: Alan Stern @ 2009-06-24 15:01 UTC (permalink / raw)
  To: Prabhu Chawandi; +Cc: linux-usb, linux-kernel

On Wed, 24 Jun 2009, Prabhu Chawandi wrote:

> In the devio.c,
> 
>   I have added  a case to return the speed and other descriptors,
> 
> call :
>  ret = usb_control_msg(pRootHub, usb_sndctrlpipe(pRootHub, 0),
>                USB_REQ_CLEAR_FEATURE, USB_RT_PORT, USB_PORT_FEAT_POWER,
>                port_num + 1, NULL, 0, HZ);
> 
> The above call is returning err : -32 EPIPE.
> 
> The above call is working file for the rear port while the same is not
> working for the fromt port.

Is this question related to $SUBJECT?  I don't see any connection...

> Anythig am I missing ? I am testing it for mass stoage device...

In most host controllers for personal computers, the hardware does not
support turning off port power.

Alan Stern


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

end of thread, other threads:[~2009-06-24 15:01 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-06-23 13:27 Not able to read USB speed and descriptor Prabhu Chawandi
2009-06-23 14:14 ` Rajaram R
2009-06-24  7:21 ` Prabhu Chawandi
2009-06-24 15:01   ` Alan Stern

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox