android_kernel_motorola_sm6375/drivers/base
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Saravana Kannan 21cc8e2041 FROMGIT: BACKPORT: driver core: Add device links from fwnode only for the primary device
Sometimes, more than one (generally two) device can point to the same
fwnode.  However, only one device is set as the fwnode's device
(fwnode->dev) and can be looked up from the fwnode.

Typically, only one of these devices actually have a driver and actually
probe. If we create device links for all these devices, then the
suppliers' of these devices (with the same fwnode) will never get a
sync_state() call because one of their consumer devices will never probe
(because they don't have a driver).

So, create device links only for the device that is considered as the
fwnode's device.

One such example of this is the PCI bridge platform_device and the
corresponding pci_bus device. Both these devices will have the same
fwnode. It's the platform_device that is registered first and is set as
the fwnode's device. Also the platform_device is the one that actually
probes. Without this patch none of the suppliers of a PCI bridge
platform_device would get a sync_state() callback.

Cc: Bjorn Helgaas <[email protected]>
Cc: [email protected]
Reviewed-by: Rafael J. Wysocki <[email protected]>
Signed-off-by: Saravana Kannan <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
(cherry picked from commit 4dbe191c046e71d6ea1ba85365ecb33961b07c4f
 https: //git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core.git driver-core-next)
[fixed minor conflict due to missing fw_devlink_flags]
Bug: 151891594
Change-Id: Ife526b52d1e25c420d07dcf46ed466dc80f7f5eb
Signed-off-by: Saravana Kannan <[email protected]>
2020-03-21 21:22:42 +00:00
..
firmware_loader This is the 5.4.14 stable release 2020-01-23 08:37:43 +01:00
power This is the 5.4.19 stable release 2020-02-11 14:09:41 -08:00
regmap regmap: fix writes to non incrementing registers 2020-02-14 16:34:19 -05:00
test driver core: Fix test_async_driver_probe if NUMA is disabled 2020-02-01 09:34:36 +00:00
arch_topology.c ANDROID: cpufreq: arch_topology: implement max frequency capping 2019-10-01 10:36:33 +01:00
attribute_container.c
base.h driver/core: Convert to use built-in RCU list checking 2019-08-13 14:28:47 -07:00
bus.c drivers: Introduce device lookup variants by name 2019-07-30 13:07:41 +02:00
cacheinfo.c
class.c
component.c component: do not dereference opaque pointer in debugfs 2020-02-01 09:34:35 +00:00
container.c
core.c FROMGIT: BACKPORT: driver core: Add device links from fwnode only for the primary device 2020-03-21 21:22:42 +00:00
cpu.c x86/bugs: Add ITLB_MULTIHIT bug infrastructure 2019-11-04 12:22:01 +01:00
dd.c driver core: Print device when resources present in really_probe() 2020-02-24 08:36:47 +01:00
devcon.c Merge generic_lookup_helpers into usb-next 2019-09-03 17:11:07 +02:00
devcoredump.c devcoredump: fix typo in comment 2019-08-15 17:38:11 +02:00
devres.c
devtmpfs.c vfs: Convert ramfs, shmem, tmpfs, devtmpfs, rootfs to use the new mount API 2019-09-12 21:05:34 -04:00
driver.c
firmware.c
hypervisor.c
init.c
isa.c
Kconfig
Makefile
map.c
memory.c mm/memory_hotplug: fix try_offline_node() 2019-11-15 18:34:00 -08:00
module.c
node.c FROMLIST: scs: add accounting 2019-11-27 12:49:09 -08:00
pinctrl.c
platform-msi.c
platform.c driver code: clarify and fix platform device DMA mask allocation 2020-03-18 07:17:56 +01:00
property.c
soc.c UPSTREAM: base: soc: Handle custom soc information sysfs entries 2019-10-17 13:15:53 -07:00
swnode.c software node: Get reference to parent swnode in get_parent op 2020-01-26 10:01:04 +01:00
syscore.c
topology.c
transport_class.c