RE: Advise for adding Nuvoton BMC Synopsys USB 2.0 device controllers to Linux kernel USB Chipidea driver

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

 



Hi Peter,

Great, done and it works fine.

I will send a patch in Kernel 6.6.

Thanks a lot for your help,

Tomer

-----Original Message-----
From: Peter Chen <peter.chen@xxxxxxxxxx>
Sent: Monday, 11 September 2023 15:17
To: IS20 Tomer Maimon <tomer.maimon@xxxxxxxxxxx>
Cc: linux-usb@xxxxxxxxxxxxxxx
Subject: Re: Advise for adding Nuvoton BMC Synopsys USB 2.0 device controllers to Linux kernel USB Chipidea driver

CAUTION - External Email: Do not click links or open attachments unless you acknowledge the sender and content.


On 23-09-10 12:47:06, tomer.maimon@xxxxxxxxxxx wrote:
> Hi Peter,
>
>
>
> Thanks for your prompt response.
>
>
>
> Unfortunately soft connect didn't solve the problem, because the
> vbus_active is not active
>
> And this is why the ci_hdrc_gadget_connect<https://elixir.bootlin.com/linux/v6.5.2/C/ident/ci_hdrc_gadget_connect>(gadget<https://elixir.bootlin.com/linux/v6.5.2/C/ident/gadget>, 1) is not called.
>
> https://elix/
> ir.bootlin.com%2Flinux%2Fv6.5.2%2Fsource%2Fdrivers%2Fusb%2Fchipidea%2F
> udc.c%23L1950&data=05%7C01%7Ctomer.maimon%40nuvoton.com%7C63c0d3682253
> 4ac64b0308dbb2c105c9%7Ca3f24931d4034b4a94f17d83ac638e07%7C0%7C0%7C6383
> 00314351616432%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2l
> uMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=PkffCTYcl1KX
> %2F72Sn3zSCkyN2wmRrfh2%2FQeu43mYpPw%3D&reserved=0
>

Please use plain text for upstream email.

So, for your soc, the usb role is device-only, and there is no otgsc register. You may try to introduce a flag like CI_HDRC_FORCE_VBUS_ACTIVE_ALWAYS, and using it at ci_handle_vbus_change for (!ci->is_otg condition), when both conditions are satisfied, call usb_gadget_vbus_connect(&ci->gadget);

Thanks,
Peter

>
>
> In the log below we added debug print of the vbus_active status:
>
> # insmod usb_f_mass_storage.ko
>
> # insmod g_mass_storage.ko file=/tmp/backing_file removable=1
>
> Mass Storage Function, version: 2009/09/11
>
> LUN: removable file: (no medium)
>
> LUN: removable file: /tmp/backing_file
>
> Number of LUNs=1
>
> g_mass_storage gadget: Mass Storage Gadget, version: 2009/09/11
>
> g_mass_storage gadget: userspace failed to provide iSerialNumber
>
> g_mass_storage gadget: g_mass_storage ready
>
>         usb_gadget_udc_start
>
> ci_udc_start
>
> ci_udc_start ci->vbus_active 0
>
> # cd /sys/class/udc/ci_hdrc.0/
>
> # echo connect > soft_connect
>
> udc ci_hdrc.0: UDC had already started
>
> # echo disconnect > soft_connect
>
> ci_udc_stop ci->vbus_active 0
>
> # echo connect > soft_connect
>
>         usb_gadget_udc_start
>
> ci_udc_start
>
> ci_udc_start ci->vbus_active 0
>
>
>
> How can I active the vbus_active parameter?
>
>
>
> Thanks,
>
>
>
> Tomer
>
>
>
> -----Original Message-----
> From: Peter Chen <peter.chen@xxxxxxxxxx>
> Sent: Friday, 8 September 2023 13:26
> To: IS20 Tomer Maimon <tomer.maimon@xxxxxxxxxxx>
> Cc: linux-usb@xxxxxxxxxxxxxxx
> Subject: Re: Advise for adding Nuvoton BMC Synopsys USB 2.0 device
> controllers to Linux kernel USB Chipidea driver
>
>
>
> CAUTION - External Email: Do not click links or open attachments unless you acknowledge the sender and content.
>
>
>
>
>
> On 23-09-07 14:33:29, tomer.maimon@xxxxxxxxxxx<mailto:tomer.maimon@xxxxxxxxxxx> wrote:
>
> > Hi Peter
>
> >
>
> > My name is Tomer I am working in Nuvoton system in the Linux kernel, our project developing BMC SoC for servers.
>
> > In Nuvoton BMC (NPCM) there are ten identical Synopsys USB 2.0 device controllers called NPCM UDC.
>
> >
>
> > Lately we started to work with USB Chipidea driver to add NPCM UDC as well.
>
> > The NPCM BMC using only the UDC and not the USB host.
>
> >
>
> > Using the default compatible<https://elixir.bootlin.com/linux/v5.15.130/C/ident/compatible<https://elixir.bootlin.com/linux/v5.15.130/C/ident/compatible>> = "chipidea,usb2<https://elixir.bootlin.com/linux/v5.15.130/B/ident/chipidea%2Cusb2<https://elixir.bootlin.com/linux/v5.15.130/B/ident/chipidea%2Cusb2>>" didn't work for us since:
>
> >
>
> > 1.       The USB_MODE should be set at boot or after reset since the reset The USB_MODE is incorrect (0x15002)
>
> >
>
> > [cid:image002.jpg@01D9E1B1.691030B0]
>
> >
>
> >
>
> > It solved by setting USB_MODE during NPCM reset
>
> > ci_hdrc_npcm_notify_event, now using unique npcm-udc compatible :)
>
> >
>
> >
>
> >
>
> > 2.      vbus_active parameter don't change, stay 0.
>
> >
>
> > The Device Control Capability Parameters Register (DCCPARAMS) is a
>
> > read only register that indicate the module is only DC (Device
>
> > Capable)
>
> >
>
> > This is why the driver didn't indicate the driver is OTG
>
> >
>
> > https://el/
> > ix%2F&data=05%7C01%7Ctomer.maimon%40nuvoton.com%7C63c0d36822534ac64b
> > 0308dbb2c105c9%7Ca3f24931d4034b4a94f17d83ac638e07%7C0%7C0%7C63830031
> > 4351616432%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luM
> > zIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=4%2BTkt%2FJC
> > n2kBrxH5iXzTy1rUq5Jop8v8aktT21VnAWs%3D&reserved=0<https://elix/>
>
> > ir.bootlin.com%2Flinux%2Fv6.5.2%2Fsource%2Fdrivers%2Fusb%2Fchipidea%
> > 2F
>
> > core.c%23L948&data=05%7C01%7Ctomer.maimon%40nuvoton.com%7C3cc95393cb
> > a4
>
> > 4903d9fa08dbb0561155%7Ca3f24931d4034b4a94f17d83ac638e07%7C0%7C0%7C63
> > 82
>
> > 97655985408934%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV
> > 2l
>
> > uMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=%2B5yqPLl4
> > FS
>
> > YUF2Wr0fnNEGgHETE7FTmmSxVm8HCAaQ4%3D&reserved=0
>
> >
>
> >
>
> > ci<https://apc01.safelinks.protection.outlook.com/?url=https%3A%2F%252
> > Fe%2F&data=05%7C01%7Ctomer.maimon%40nuvoton.com%7C63c0d36822534ac64b
> > 0308dbb2c105c9%7Ca3f24931d4034b4a94f17d83ac638e07%7C0%7C0%7C63830031
> > 4351616432%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luM
> > zIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=h%2BP7BtQic7
> > 7OW86RQuY77z%2F1CnDem3MQkST%2FmZuTGLk%3D&reserved=0
>
> > lixir.bootlin.com%2Flinux%2Fv6.5.2%2FC%2Fident%2Fci&data=05%7C01%7Ct
> > om
>
> > er.maimon%40nuvoton.com%7C3cc95393cba44903d9fa08dbb0561155%7Ca3f2493
> > 1d
>
> > 4034b4a94f17d83ac638e07%7C0%7C0%7C638297655985408934%7CUnknown%7CTWF
> > pb
>
> > GZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6M
> > n0
>
> > %3D%7C3000%7C%7C%7C&sdata=0l4NnlxNNGGLe%2BEG%2FXU%2B2bdMB5R%2FY%2BD3
> > Xv
>
> > ndUiAWUyE%3D&reserved=0>->is_otg<https://apc01.safelinks.protection/.
> > outlook.com/?url=https%3A%2F%2Fapc01.safelinks.protection.ou%2F&data
> > =05%7C01%7Ctomer.maimon%40nuvoton.com%7C63c0d36822534ac64b0308dbb2c1
> > 05c9%7Ca3f24931d4034b4a94f17d83ac638e07%7C0%7C0%7C638300314351616432
> > %7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI
> > 6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=bgAy5PJGGPzbSeJQ3pMD8k
> > 90fvLG6Zy%2FTNl3UflUpHo%3D&reserved=0
>
> > tlook.com/?url=https%3A%2F%2Felixir.bootlin.com%2Flinux%2Fv6.5.2%2FC
> > %2
>
> > Fident%2Fis_otg&data=05%7C01%7Ctomer.maimon%40nuvoton.com%7C3cc95393
> > cb
>
> > a44903d9fa08dbb0561155%7Ca3f24931d4034b4a94f17d83ac638e07%7C0%7C0%7C
> > 63
>
> > 8297655985408934%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjo
> > iV
>
> > 2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=rQIdSi2U
> > u%
>
> > 2Bss84SiVOlWQkdrPXPVgJvDqPheYtPcolM%3D&reserved=0> =
>
> > (hw_read<https://apc01.safelinks.protection.outlook.com/?url=https%253
> > A%
>
> > 2F%2Felixir.bootlin.com%2Flinux%2Fv6.5.2%2FC%2Fident%2Fhw_read&data=
> > 05
>
> > %7C01%7Ctomer.maimon%40nuvoton.com%7C3cc95393cba44903d9fa08dbb056115
> > 5%
>
> > 7Ca3f24931d4034b4a94f17d83ac638e07%7C0%7C0%7C638297655985408934%7CUn
> > kn
>
> > own%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haW
> > wi
>
> > LCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=HO%2F6v4XA2bQgU9jCrya2Y%2Fv8P5%
> > 2B
>
> > 3m%2Bn8ekJhtZLrq5A%3D&reserved=0>(ci<https://apc01.safelinks.protect/
> > ion.outlook.com/?url=https%3A%2F%2Fapc01.safelinks.protectio%2F&data
> > =05%7C01%7Ctomer.maimon%40nuvoton.com%7C63c0d36822534ac64b0308dbb2c1
> > 05c9%7Ca3f24931d4034b4a94f17d83ac638e07%7C0%7C0%7C638300314351616432
> > %7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI
> > 6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=CLgeG15MtjgRfkTE1SNSkY
> > 0vpkggEDvFN9Ak80gA6uw%3D&reserved=0
>
> > n.outlook.com/?url=https%3A%2F%2Felixir.bootlin.com%2Flinux%2Fv6.5.2
> > %2
>
> > FC%2Fident%2Fci&data=05%7C01%7Ctomer.maimon%40nuvoton.com%7C3cc95393
> > cb
>
> > a44903d9fa08dbb0561155%7Ca3f24931d4034b4a94f17d83ac638e07%7C0%7C0%7C
> > 63
>
> > 8297655985408934%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjo
> > iV
>
> > 2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=0l4NnlxN
> > NG
>
> > GLe%2BEG%2FXU%2B2bdMB5R%2FY%2BD3XvndUiAWUyE%3D&reserved=0>,
>
> > CAP_DCCPARAMS<http://ht/
> > tp%3A%2F%2Fhttp%2F&data=05%7C01%7Ctomer.maimon%40nuvoton.com%7C63c0d
> > 36822534ac64b0308dbb2c105c9%7Ca3f24931d4034b4a94f17d83ac638e07%7C0%7
> > C0%7C638300314351616432%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAi
> > LCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata
> > =JluPFVn6TZqPtn06KIOAWRx5HG7Nyhw81jwX%2BXzEeF4%3D&reserved=0
>
> > s%3A%2F%2Felixir.bootlin.com%2Flinux%2Fv6.5.2%2FC%2Fident%2FCAP_DCCP
> > AR
>
> > AMS&data=05%7C01%7Ctomer.maimon%40nuvoton.com%7C3cc95393cba44903d9fa
> > 08
>
> > dbb0561155%7Ca3f24931d4034b4a94f17d83ac638e07%7C0%7C0%7C638297655985
> > 40
>
> > 8934%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJ
> > BT
>
> > iI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=XmsVmw0t55YR0wcrcTng
> > kN
>
> > 6vyBCj5sR5GYT2I8lIq2A%3D&reserved=0>,
>
> >
>
> >
>
> > DCCPARAMS_DC<http://htt/
> > p%3A%2F%2Fhttps%2F&data=05%7C01%7Ctomer.maimon%40nuvoton.com%7C63c0d
> > 36822534ac64b0308dbb2c105c9%7Ca3f24931d4034b4a94f17d83ac638e07%7C0%7
> > C0%7C638300314351616432%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAi
> > LCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata
> > =sZFWiMb7iy1R4sT3q8t%2FmVfPkc0%2F5sRUs8sLjw6eliU%3D&reserved=0
>
> > %3A%2F%2Felixir.bootlin.com%2Flinux%2Fv6.5.2%2FC%2Fident%2FDCCPARAMS
> > _D
>
> > C&data=05%7C01%7Ctomer.maimon%40nuvoton.com%7C3cc95393cba44903d9fa08
> > db
>
> > b0561155%7Ca3f24931d4034b4a94f17d83ac638e07%7C0%7C0%7C63829765598540
> > 89
>
> > 34%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBT
> > iI
>
> > 6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=o9trybo5aT%2BF%2Bai6eH
> > eH
>
> > %2BeQTaY5l5Jzy53u8TlLg%2Fps%3D&reserved=0> |
>
> > DCCPARAMS_HC<http://htt/
> > p%3A%2F%2Fhttps%2F&data=05%7C01%7Ctomer.maimon%40nuvoton.com%7C63c0d
> > 36822534ac64b0308dbb2c105c9%7Ca3f24931d4034b4a94f17d83ac638e07%7C0%7
> > C0%7C638300314351616432%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAi
> > LCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata
> > =sZFWiMb7iy1R4sT3q8t%2FmVfPkc0%2F5sRUs8sLjw6eliU%3D&reserved=0
>
> > %3A%2F%2Felixir.bootlin.com%2Flinux%2Fv6.5.2%2FC%2Fident%2FDCCPARAMS
> > _H
>
> > C&data=05%7C01%7Ctomer.maimon%40nuvoton.com%7C3cc95393cba44903d9fa08
> > db
>
> > b0561155%7Ca3f24931d4034b4a94f17d83ac638e07%7C0%7C0%7C63829765598540
> > 89
>
> > 34%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBT
> > iI
>
> > 6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=5Zb%2BmrV2lcQwXlz93pJt
> > zF
>
> > eRNBxqiHEgD4ywW1ed4D4%3D&reserved=0>)
>
> >
>
> >                                   ==
>
> > (DCCPARAMS_DC<http://ht/
> > tp%3A%2F%2Fhttp%2F&data=05%7C01%7Ctomer.maimon%40nuvoton.com%7C63c0d
> > 36822534ac64b0308dbb2c105c9%7Ca3f24931d4034b4a94f17d83ac638e07%7C0%7
> > C0%7C638300314351616432%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAi
> > LCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata
> > =JluPFVn6TZqPtn06KIOAWRx5HG7Nyhw81jwX%2BXzEeF4%3D&reserved=0
>
> > s%3A%2F%2Felixir.bootlin.com%2Flinux%2Fv6.5.2%2FC%2Fident%2FDCCPARAM
> > S_
>
> > DC&data=05%7C01%7Ctomer.maimon%40nuvoton.com%7C3cc95393cba44903d9fa0
> > 8d
>
> > bb0561155%7Ca3f24931d4034b4a94f17d83ac638e07%7C0%7C0%7C6382976559854
> > 08
>
> > 934%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJB
> > Ti
>
> > I6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=o9trybo5aT%2BF%2Bai6e
> > He
>
> > H%2BeQTaY5l5Jzy53u8TlLg%2Fps%3D&reserved=0> |
>
> > DCCPARAMS_HC<http://htt/
> > p%3A%2F%2Fhttps%2F&data=05%7C01%7Ctomer.maimon%40nuvoton.com%7C63c0d
> > 36822534ac64b0308dbb2c105c9%7Ca3f24931d4034b4a94f17d83ac638e07%7C0%7
> > C0%7C638300314351616432%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAi
> > LCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata
> > =sZFWiMb7iy1R4sT3q8t%2FmVfPkc0%2F5sRUs8sLjw6eliU%3D&reserved=0
>
> > %3A%2F%2Felixir.bootlin.com%2Flinux%2Fv6.5.2%2FC%2Fident%2FDCCPARAMS
> > _H
>
> > C&data=05%7C01%7Ctomer.maimon%40nuvoton.com%7C3cc95393cba44903d9fa08
> > db
>
> > b0561155%7Ca3f24931d4034b4a94f17d83ac638e07%7C0%7C0%7C63829765598540
> > 89
>
> > 34%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBT
> > iI
>
> > 6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=5Zb%2BmrV2lcQwXlz93pJt
> > zF
>
> > eRNBxqiHEgD4ywW1ed4D4%3D&reserved=0>));
>
> >
>
> > Why otg is set only when DC and HC is set?
>
> >
>
> > By enabling ci<https://elixir.bootlin.com/linux/v6.5.2/C/ident/ci<https://elixir.bootlin.com/linux/v6.5.2/C/ident/ci>>->is_otg<https://elixir.bootlin.com/linux/v6.5.2/C/ident/is_otg<https://elixir.bootlin.com/linux/v6.5.2/C/ident/is_otg>> = true we see we need to set the extcon in the device tree, why we need extcon to handle the vbus? Can the vbus be permanent?
>
> >
>
> >
>
> >
>
> > Even after setting extcon vbus to dummy GPIO we succeed to modify the vbus_active parameter to is_active but it didn't worked in the end because it a dummy GPIO that not related to the USB vbus.
>
> >
>
> >
>
> >
>
> > BTW,
>
> >
>
> > If we adding ci->vbus_active = true at probe stage the UDC Chipidea driver works fine.
>
> >
>
> > https://el/
> > ix%2F&data=05%7C01%7Ctomer.maimon%40nuvoton.com%7C63c0d36822534ac64b
> > 0308dbb2c105c9%7Ca3f24931d4034b4a94f17d83ac638e07%7C0%7C0%7C63830031
> > 4351772660%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luM
> > zIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=Z4PZt7iDIPfz
> > Q8Es2S%2BEhDeyKmYSPQRktYlbyOwOrE8%3D&reserved=0<https://elix/>
>
> > ir.bootlin.com%2Flinux%2Fv6.5.2%2Fsource%2Fdrivers%2Fusb%2Fchipidea%
> > 2F
>
> > core.c%23L1123&data=05%7C01%7Ctomer.maimon%40nuvoton.com%7C3cc95393c
> > ba
>
> > 44903d9fa08dbb0561155%7Ca3f24931d4034b4a94f17d83ac638e07%7C0%7C0%7C6
> > 38
>
> > 297655985408934%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoi
> > V2
>
> > luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=O2JoKArqq
> > Y6
>
> > IaAvYAEFXrVhuPdsArba3MczPKSJsaIc%3D&reserved=0
>
> >
>
> >
>
> >
>
> > Appreciate if you could you advise how should we overcome this issue
>
>
>
> After loading the gadget driver, try to force "connect" udc using /sys
> entry. See the below code at file: drivers/usb/gadget/udc/core.c
>
>
>
> static ssize_t soft_connect_store(struct device *dev,
>
>                 struct device_attribute *attr, const char *buf, size_t
> n)
>
>
>
>
>
> Your issue is probably due to the UDC don't know it is connected, so DP is not pulled up.
>
>
>
> --
>
>
>
> Thanks,
>
> Peter Chen
>
> ________________________________
> The privileged confidential information contained in this email is intended for use only by the addressees as indicated by the original sender of this email. If you are not the addressee indicated in this email or are not responsible for delivery of the email to such a person, please kindly reply to the sender indicating this fact and delete all copies of it from your computer and network server immediately. Your cooperation is highly appreciated. It is advised that any unauthorized use of confidential information of Nuvoton is strictly prohibited; and any information in this email irrelevant to the official business of Nuvoton shall be deemed as neither given nor endorsed by Nuvoton.

--

Thanks,
Peter Chen
________________________________
________________________________
 The privileged confidential information contained in this email is intended for use only by the addressees as indicated by the original sender of this email. If you are not the addressee indicated in this email or are not responsible for delivery of the email to such a person, please kindly reply to the sender indicating this fact and delete all copies of it from your computer and network server immediately. Your cooperation is highly appreciated. It is advised that any unauthorized use of confidential information of Nuvoton is strictly prohibited; and any information in this email irrelevant to the official business of Nuvoton shall be deemed as neither given nor endorsed by Nuvoton.




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

  Powered by Linux