pinctrl: cherryview: Avoid duplicated I/O
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Fri, 6 Oct 2023 09:40:32 +0000 (12:40 +0300)
committerAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Fri, 6 Oct 2023 10:35:39 +0000 (13:35 +0300)
commitd3386552155c6e9128e49fff86d7acfe4b13f949
tree8ed96cb88871d82ba466e2bccb8632835d5b486b
parent3013c7f7780de32b950762f3a8904ef0da44ed63
pinctrl: cherryview: Avoid duplicated I/O

In some cases we already read the value from the register followed
by a reading of it again for other purposes, but the both reads
are under the lock and bits we are insterested in are not going
to change (they are not volatile from HW perspective). Hence, no
need to read the same register twice.

Acked-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
drivers/pinctrl/intel/pinctrl-cherryview.c