Adding usb gadget support
Also here we are using phy_reset
https://www.codeaurora.org/gitweb/quic/la/?p=kernel/msm.git;a=blob;f=drivers/usb/gadget/msm72k_udc.c;h=f3669507bcd929b043e573d08e600171cc0c87de;hb=refs/heads/aosp/android-msm-2.6.32
Its needed for cable plug/unplug event recognition as it looks like.
So we realy seem to need phy_reset.
In the android branch phy_reset() was declared inside a second devices.c file called devices_htc.c
I considered it a bit confusing, and I'm not sure, where to actually introduce it now. Could QuIC take a look please?
Thx. ^^
best regards
leviathan
Quoted 9 lines · David Lanzendörfer
Also here we are using
phy_reset
https://www.codeaurora.org/gitweb/quic/la/?p=kernel/msm.git;a=blob;f=drivers/usb/gadget/msm72k_udc.c;h=f3669507bcd929b043e573d08e600171cc0c87de;hb=refs/heads/aosp/android-msm-2.6.32Its needed for cable plug/unplug event recognition as it looks like.
So we realy seem to needphy_reset.
In the android branchphy_reset()was declared inside a seconddevices.cfile calleddevices_htc.c
I considered it a bit confusing, and I'm not sure, where to actually introduce it now. Could QuIC take a look please?
Look at the file you mentioned for an example of how to connect the phy reset function:
You just need to:
1. Make an instance of the msm_hsusb_platform_data.
2. Assign the 'phy_reset' pointer to your added function.
3. Assign that msm_device_hsusb platform_data to your pdata struct.
4. Register the platform device.
Michael
Signature · 2 lines
Employee of Qualcomm Innovation Center, Inc. Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum