mmc: tmio: introduce mask for 'always 1' bits
authorWolfram Sang <wsa+renesas@sang-engineering.com>
Mon, 19 Nov 2018 13:13:57 +0000 (14:13 +0100)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 17 Dec 2018 07:26:24 +0000 (08:26 +0100)
commit1970701f808095d28289c4add99a81be4ddd3790
tree2ca7b954bdb4baa3d7561425779d8c82e4534c31
parent0f4e2054c971c827dc9463ff14c7f8f90972eb52
mmc: tmio: introduce mask for 'always 1' bits

Some variants (namely Renesas SDHI) have bits in the STATS and IRQ_MASK
registers which are 'always 1' and should be written as such. Introduce
a seperate mask for this and apply it whenever such a register is
written.

Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Reviewed-by: Simon Horman <horms+renesas@verge.net.au>
Reviewed-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/renesas_sdhi_core.c
drivers/mmc/host/tmio_mmc.h