android_kernel_xiaomi_sm8350/drivers/bus
Tony Lindgren 5aacb4de36 bus: ti-sysc: Fix iterating over clocks
commit 2c81f0f6d3f52ac222a5dc07a6e5c06e1543e88b upstream.

Commit d878970f6c ("bus: ti-sysc: Add separate functions for handling
clocks") separated handling of optional clocks from the main clocks, but
introduced an issue where we do not necessarily allocate a slot for both
fck and ick clocks, but still assume fixed slots for enumerating over the
clocks.

Let's fix the issue by ensuring we always have slots for both fck and ick
even if we don't use ick, and don't attempt to enumerate optional clocks
if not allocated.

In the long run we might want to simplify things a bit by only allocating
space only for the optional clocks as we have only few devices with
optional clocks.

Fixes: d878970f6c ("bus: ti-sysc: Add separate functions for handling clocks")
Signed-off-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2020-01-23 08:22:28 +01:00
..
fsl-mc bus: fsl-mc: remove explicit device_link_del 2019-08-16 14:17:35 -05:00
arm-cci.c
brcmstb_gisb.c
da8xx-mstpri.c
hisi_lpc.c bus: hisi_lpc: Add .remove method to avoid driver unbind crash 2019-08-13 14:54:34 +08:00
imx-weim.c bus: imx-weim: remove incorrect __init annotations 2019-09-04 17:59:32 +02:00
Kconfig bus: Add support for Moxtet bus 2019-08-14 15:30:35 +02:00
Makefile bus: Add support for Moxtet bus 2019-08-14 15:30:35 +02:00
mips_cdmm.c
moxtet.c bus: moxtet: fix unsigned comparison to less than zero 2019-09-04 17:30:16 +02:00
mvebu-mbus.c
omap_l3_noc.c
omap_l3_noc.h
omap_l3_smx.c
omap_l3_smx.h
omap-ocp2scp.c
qcom-ebi2.c
simple-pm-bus.c
sun50i-de2.c
sunxi-rsb.c bus: sunxi-rsb: Remove dev_err() usage after platform_get_irq() 2019-08-06 14:15:49 +08:00
tegra-aconnect.c
tegra-gmi.c
ti-sysc.c bus: ti-sysc: Fix iterating over clocks 2020-01-23 08:22:28 +01:00
ts-nbus.c
uniphier-system-bus.c bus: uniphier-system-bus: use devm_platform_ioremap_resource() 2019-09-05 17:57:18 +02:00
vexpress-config.c