]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
bus: ti-sysc: Handle devices with no control registers
authorTony Lindgren <tony@atomide.com>
Wed, 1 May 2019 21:24:57 +0000 (14:24 -0700)
committerTony Lindgren <tony@atomide.com>
Thu, 2 May 2019 13:29:46 +0000 (06:29 -0700)
commite4f50c8d1047e2c3b6fcf9edc22a26469f72eeb7
treece9f0df10bfc2a9ac96bdf78b5741c825e3a205b
parent516f1117d0fb375830dea715a3f890a76ff1ffef
bus: ti-sysc: Handle devices with no control registers

Some interconnect target modules have no module control registers at
all, such as d_can on am335x and am437x.

The d_can register offset at 0 is CTL register with 0x401 as the default
value. I guess I mistook the 0x401 value for a revision register as the
value happens to look similar to what the revision registers typically
have for other modules.

To handle modules with no control registers, we need to improve the
ti-sysc driver a bit to bail out with errors on no control registers,
and then we can remove the bogus revision registers for d_can.

Cc: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Tested-by: Keerthy <j-keerthy@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/boot/dts/am33xx-l4.dtsi
arch/arm/boot/dts/am437x-l4.dtsi
drivers/bus/ti-sysc.c