linux/drivers/extcon
Tao Huang 2158ab7bba extcon: Create named extcon link nowarn
Avoid warning:

[    0.366122] sysfs: cannot create duplicate filename '/class/extcon/usb2-phy'
[    0.366821] CPU: 2 PID: 1 Comm: swapper/0 Not tainted 4.19.154 #120
[    0.367385] Hardware name: Rockchip RK3566 EVB1 DDR4 V10 Board (DT)
[    0.367945] Call trace:
[    0.368186]  dump_backtrace+0x0/0x15c
[    0.368520]  show_stack+0x14/0x1c
[    0.368830]  dump_stack+0xb8/0xf0
[    0.369139]  sysfs_warn_dup+0x68/0x80
[    0.369469]  sysfs_do_create_link_sd+0x90/0xc8
[    0.369870]  sysfs_create_link+0x2c/0x40
[    0.370227]  extcon_dev_register+0x5a4/0x6fc
[    0.370614]  devm_extcon_dev_register+0x44/0x84
[    0.371030]  rockchip_usb2phy_probe+0x26c/0xba4
[    0.371444]  platform_drv_probe+0x7c/0xb4
[    0.371813]  really_probe+0x488/0x520
[    0.372145]  driver_probe_device+0x60/0xf8
[    0.372520]  device_driver_attach+0x68/0xa4
[    0.372896]  __driver_attach+0xc0/0x13c
[    0.373249]  bus_for_each_dev+0x78/0xc0
[    0.373601]  driver_attach+0x20/0x28
[    0.373930]  bus_add_driver+0xfc/0x1dc
[    0.374271]  driver_register+0x74/0x108
[    0.374621]  __platform_driver_register+0x40/0x48
[    0.375049]  rockchip_usb2phy_driver_init+0x18/0x20
[    0.375486]  do_one_initcall+0x90/0x26c
[    0.375840]  do_initcall_level+0xbc/0x160
[    0.376203]  do_basic_setup+0x30/0x48
[    0.376533]  kernel_init_freeable+0xb0/0x134
[    0.376923]  kernel_init+0x14/0x290
[    0.377242]  ret_from_fork+0x10/0x18
[    0.377610] extcon extcon1: failed to create extcon usb2-phy link

Fixes: 513c60a1ba ("extcon: Add named extcon link")
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: Ieac0e071b5bae8613aaf829a0aeed64ff6524ea2
2020-11-09 15:39:02 +08:00
..
devres.c
extcon-adc-jack.c extcon: adc-jack: Fix an error handling path in 'adc_jack_probe()' 2020-06-25 15:33:01 +02:00
extcon-arizona.c extcon: arizona: Disable mic detect if running when driver is removed 2019-05-31 06:46:23 -07:00
extcon-axp288.c extcon: axp288: Add wakeup support 2020-04-13 10:45:03 +02:00
extcon-gpio.c extcon: gpio: Convert to fully use GPIO descriptor 2018-03-21 13:58:09 +09:00
extcon-intel-cht-wc.c extcon: cht-wc: Return from default case to avoid warnings 2019-11-20 18:45:26 +01:00
extcon-intel-int3496.c extcon: int3496: Use proper GPIO include 2018-07-12 09:06:30 +09:00
extcon-max3355.c extcon: max3355: include mod_devicetable.h 2018-07-11 18:17:56 +02:00
extcon-max8997.c extcon: max8997: Fix lack of path setting in USB device mode 2019-12-13 08:51:15 +01:00
extcon-max14577.c
extcon-max77693.c extcon: max77693: Delete unneeded initialization in max77693_muic_set_path() 2017-11-27 10:23:47 +09:00
extcon-max77843.c
extcon-palmas.c
extcon-qcom-spmi-misc.c headers: separate linux/mod_devicetable.h from linux/platform_device.h 2018-07-07 17:52:26 +02:00
extcon-rt8973a.c
extcon-rt8973a.h
extcon-sm5502.c extcon: sm5502: Reset registers during initialization 2019-12-31 16:35:11 +01:00
extcon-sm5502.h extcon: sm5502: Reset registers during initialization 2019-12-31 16:35:11 +01:00
extcon-usb-gpio.c
extcon-usbc-cros-ec.c extcon: usbc-cros-ec: Switch to SPDX identifier. 2018-07-12 09:06:31 +09:00
extcon.c extcon: Create named extcon link nowarn 2020-11-09 15:39:02 +08:00
extcon.h ANDROID: GKI: extcon: Add extcon_register_blocking_notifier API. 2020-03-23 12:21:04 -07:00
Kconfig extcon: axp288: Set USB role where necessary 2018-03-22 13:49:28 +01:00
Makefile