soc: mediatek: reuse read[l,x]_poll_timeout helpers
authorSean Wang <sean.wang@mediatek.com>
Tue, 3 Apr 2018 07:15:53 +0000 (15:15 +0800)
committerMatthias Brugger <matthias.bgg@gmail.com>
Wed, 18 Apr 2018 15:04:35 +0000 (17:04 +0200)
commit4a58732c7c41c5a33b23556a2481d8a989060b4e
treebe223c57e288ba50d771d6bb8df5bb28756adee2
parent38d19752a7807392e4517a14c21e7cf1cdddbd2d
soc: mediatek: reuse read[l,x]_poll_timeout helpers

Reuse the common helpers read[l,x]_poll_timeout provided by Linux core
instead of an open-coded handling. The name of the local variable
sram_pdn_ack in scpsys_power_on is renamed to pdn_ack in order to be
consistent with the one used in scpsys_power_off.

Signed-off-by: Sean Wang <sean.wang@mediatek.com>
Cc: Matthias Brugger <matthias.bgg@gmail.com>
Cc: Ulf Hansson <ulf.hansson@linaro.org>
Cc: Weiyi Lu <weiyi.lu@mediatek.com>
Signed-off-by: Matthias Brugger <matthias.bgg@gmail.com>
drivers/soc/mediatek/mtk-scpsys.c