aboutsummaryrefslogtreecommitdiff
path: root/lib/string_helpers.c
diff options
context:
space:
mode:
authorGeert Uytterhoeven <geert+renesas@glider.be>2021-11-17 10:59:32 +0100
committerGeert Uytterhoeven <geert+renesas@glider.be>2021-11-19 10:55:21 +0100
commit7c50a407b8687ae3589c740d2347d9ae73887889 (patch)
tree9da243b23df732d1f66aa8727c128c39e5f9f5d0 /lib/string_helpers.c
parentadb613f84a9e3638dfcc85975c7d58a4e80eef02 (diff)
downloadlinux-7c50a407b8687ae3589c740d2347d9ae73887889.tar.gz
linux-7c50a407b8687ae3589c740d2347d9ae73887889.tar.bz2
linux-7c50a407b8687ae3589c740d2347d9ae73887889.zip
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
Diffstat (limited to 'lib/string_helpers.c')
0 files changed, 0 insertions, 0 deletions