Re: nokia n810 UDC

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

 



>> Because of this, I think my enumeration is not happening correctly
>> since the rest of the
>> descriptors are not advertised at all!
>>
>> Is my understanding correct?
>>
>> What should I set the UDC too? CONFIG_USB_GADGET_OMAP?
>
> no, it's Inventra HDRC USB Peripheral

Ok, so I found the fo0llowing set:

# CONFIG_USB_MUSB_HOST is not set
CONFIG_USB_MUSB_PERIPHERAL=y
# CONFIG_USB_MUSB_OTG is not set
CONFIG_USB_GADGET_MUSB_HDRC=y

With this set, DEV_CONFIG_CDC is also set!

So I'll explain my problem further...I'm using the ether gadget on my n810
to connect to a host running a proprietary OS. This host supports the ASIX 88772
USB-Ethernet bridge.

When I connect my device to the host I see the following strange
behaviour during the
enumeration phase (with my debugs):

[ 3647.828125] __________USB control req___________
[ 3647.828125]   bRequest(06) - Get descriptor
[ 3647.828125]   bRequestType(80) - IN
[ 3647.828125]   wValue(0200) - Configuration
[ 3647.828125]   wLength(0009)
[ 3647.828125] ____________________________________

This shows the host asking for the config descriptor with a length of
9 bytes. To this the gadget
replies with a "wTotalLength" value of 9! Shouldn't this be the total
length of the config descriptor
+ all the subordinate descriptors (interface, endpoints etc)???

After this the host sends another req with the following details:

[16594.835937] __________USB control req___________
[16594.835937]   bRequest(06) - Get descriptor
[16594.835937]   bRequestType(80) - IN Standard
[16594.835937]   wValue(0200) - Configuration
[16594.835937]   wLength(0009)
[16594.835937] ____________________________________

I think this is causing a problem, where the host is not seeing all
the descriptor properly.

I put some more debugs in config.c ( usb_gadget_config_buf() &
usb_descriptor_fillbuf() ).
They showed that hs_eth_function doesn't have anything in it! This is
why I suspected that
DEV_CONFIG_CDC might not be set

Any clues as what might be going wrong?

-mandeep

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

[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux