From: Daniel Schultz Date: Fri, 22 Nov 2019 08:48:00 +0000 (+0100) Subject: UBUNTU: SAUCE: mfd: rk808: Fix RK818 ID template X-Git-Tag: Ubuntu-4.15.0-73.82~9 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=92862d7c6e3008f466aa6609967e92a8ab91bf6f;p=mirror_ubuntu-bionic-kernel.git UBUNTU: SAUCE: mfd: rk808: Fix RK818 ID template BugLink: https://bugs.launchpad.net/bugs/1853192 The Rockchip PMIC driver can automatically detect connected component versions by reading the ID_MSB and ID_LSB registers. The probe function will always fail with RK818 PMICs because the ID_MSK is 0xFFF0 and the RK818 template ID is 0x8181. This patch changes this value to 0x8180. Fixes: 9d6105e19f61 ("mfd: rk808: Fix up the chip id get failed") Cc: stable@vger.kernel.org Cc: Elaine Zhang Cc: Joseph Chen Signed-off-by: Daniel Schultz Signed-off-by: Heiko Stuebner Signed-off-by: Lee Jones (backported from commit 37ef8c2c15bdc1322b160e38986c187de2b877b2) [PHLin: content adjustment to skip RK817/RK809, which belongs to 586c1b41] Signed-off-by: Po-Hsu Lin Acked-by: You-Sheng Yang Acked-by: Stefan Bader Signed-off-by: Kleber Sacilotto de Souza --- diff --git a/include/linux/mfd/rk808.h b/include/linux/mfd/rk808.h index d3156594674c..338e0f6e2226 100644 --- a/include/linux/mfd/rk808.h +++ b/include/linux/mfd/rk808.h @@ -443,7 +443,7 @@ enum { enum { RK805_ID = 0x8050, RK808_ID = 0x0000, - RK818_ID = 0x8181, + RK818_ID = 0x8180, }; struct rk808 {