bus: ti-sysc: Handle some devices in omap_device compatible way
authorTony Lindgren <tony@atomide.com>
Thu, 22 Feb 2018 22:03:48 +0000 (14:03 -0800)
committerTony Lindgren <tony@atomide.com>
Mon, 26 Feb 2018 22:16:11 +0000 (14:16 -0800)
commita885f0fe209f262efa2c1cac9278a5774e5f7a80
tree58e72236564523bc944d3c3f57332544f193f593
parentef70b0bdeaf893dd6d9c3a8d05d9b65d395506c0
bus: ti-sysc: Handle some devices in omap_device compatible way

Now that ti-sysc can manage child devices, we must also be backwards
compatible with the current omap_device code. With omap_device, we
assume that the child device manages the interconnect target module
directly.

The drivers needing special handling are the ones that still set
pm_runtime_irq_safe(). In the long run we want to update those drivers
as otherwise they will cause problems with genpd as a permanent PM
runtime usage count is set on the parent device.

We can handle omap_device these devices by improving the ti-sysc quirk
handling to detect the devices needing special handling based on
register map and revision register if usable. We also need to implement
dev_pm_domain for these child devices just like omap_device does.

Signed-off-by: Tony Lindgren <tony@atomide.com>
drivers/bus/ti-sysc.c
include/linux/platform_data/ti-sysc.h