Skip to contentSkip to conversation

usb_create_hcd calls dev_set_drvdata

DISCUSSION Tigran Grigoryan 2 participants 3 messages Dec 27, 2008 – Dec 28, 2008

lore
Share & tools
lore
#0 lore raw

Hi,

Why usb_create_hcd calls dev_set_drvdata and never uses that data. OTG device drivers may want to set their own data.

Thanks,
Tigran

#1 lore raw
Quoted 3 lines · Tigran Grigoryan

Hi,

Why usb_create_hcd calls dev_set_drvdata and never uses that data.

Are you sure about that?

Quoted 1 line

OTG device drivers may want to set their own data.

Yes, and is this a problem?

I'm confused to what exactly is wrong here. Does the new OTG drivers not work for you, or are you writing a new one?

thanks,

greg k-h

#2 lore raw
Quoted 4 lines
Quoted 3 lines

Hi,

Why usb_create_hcd calls dev_set_drvdata and never uses that data.

Quoted 8 lines

Are you sure about that?

Quoted 1 line

OTG device drivers may want to set their own data.

Yes, and is this a problem?

I'm confused to what exactly is wrong here. Does the new OTG drivers not work for you, or are you writing a new one?

Actually it is not a problem, just OTG driver have to overwrite driver data set by usb_create_hcd.

Thanks,
Tigran