Skip to content
Commit 0ef8e3bb authored by Tony Lindgren's avatar Tony Lindgren
Browse files

bus: ti-sysc: Fix module register ioremap for larger offsets

We can have the interconnect target module control registers pretty
much anywhere within the module range. The current code attempts an
incomplete optimization of the ioremap size but does it wrong and
it only works for registers at the beginning of the module.

Let's just use the largest control register to calculate the ioremap
size. The ioremapped range is for most part cached anyways so there
is no need for size optimization. Let's also update the comments
accordingly.

Fixes: 0eecc636

 ("bus: ti-sysc: Add minimal TI sysc interconnect
target driver")
Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
parent 1dbcb97c
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment