]> git.karo-electronics.de Git - karo-tx-uboot.git/commit
drivers: spmi: msm: check PBL status before and after register accesses
authorLothar Waßmann <LW@KARO-electronics.de>
Tue, 14 Mar 2017 11:49:28 +0000 (12:49 +0100)
committerLothar Waßmann <LW@KARO-electronics.de>
Tue, 14 Mar 2017 16:41:29 +0000 (17:41 +0100)
commit8c0a96e1d6109b8b6fe5708912469eac880cb129
treef15446fea407f50b7a9a02cc3cdab8f8a6f5f330
parentd8b2a0df83dbecb70d8fdb7c264beb7f74e7f8e3
drivers: spmi: msm: check PBL status before and after register accesses

Some registers associated with the reset logic may not be written
to under certain circumstances (e.g. PON_SW_RESET_S2_CTL may not be
changed when PON_SW_RESET_S2_CTL2[SW_RESET_EN] is set).
The PON_PBL_STATUS register records errors when accessing those
registers. Check the PBL status before and after each SPMI register
access, to track invalid writes to the affected registers.
drivers/spmi/spmi-msm.c