]> git.baikalelectronics.ru Git - kernel.git/commit
PCI: mobiveil: Make some register updates more readable
authorHou Zhiqiang <Zhiqiang.Hou@nxp.com>
Fri, 5 Jul 2019 09:56:42 +0000 (17:56 +0800)
committerLorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Mon, 8 Jul 2019 11:28:44 +0000 (12:28 +0100)
commit709f6cb96ff3673fe004ddda3b1dace794a260ff
tree8ffc0dac9f3bcadca4369be58b164f2412ecd41a
parentfac608bdaebf2ca567eeb8d57ac16304714f11a3
PCI: mobiveil: Make some register updates more readable

To make some register updates more readable use a temporary
value to hold the register value and carry out the update.

Change the register update sequence to:

- Read out the original value from the target register
- Update the value
- Program the updated value back to the register

Signed-off-by: Hou Zhiqiang <Zhiqiang.Hou@nxp.com>
Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Reviewed-by: Minghuan Lian <Minghuan.Lian@nxp.com>
drivers/pci/controller/pcie-mobiveil.c