pinctrl: renesas: Remove unneeded locking around sh_pfc_read() calls
authorGeert Uytterhoeven <geert+renesas@glider.be>
Wed, 17 Nov 2021 09:59:32 +0000 (10:59 +0100)
committerGeert Uytterhoeven <geert+renesas@glider.be>
Fri, 19 Nov 2021 09:55:21 +0000 (10:55 +0100)
commit7c50a407b8687ae3589c740d2347d9ae73887889
tree9da243b23df732d1f66aa8727c128c39e5f9f5d0
parentadb613f84a9e3638dfcc85975c7d58a4e80eef02
pinctrl: renesas: Remove unneeded locking around sh_pfc_read() calls

There is no need to acquire the spinlock when reading from a pin
controller register:
  1. Reading a single MMIO register is an atomic operation,
  2. While sh_pfc_phys_to_virt() inside sh_pfc_read() has to traverse
     all mapped windows to find the appropriate virtual address, this
     does not need any locking, as the window mappings are never
     changed.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Link: https://lore.kernel.org/r/2008ca99f0079fd5d4e640b7ef78710c98cc9f77.1637143108.git.geert+renesas@glider.be
drivers/pinctrl/renesas/pinctrl.c