| From 4c0b052bb2f76f15f9548a945544099c9a4d5357 Mon Sep 17 00:00:00 2001 |
| From: YueHaibing <yuehaibing@huawei.com> |
| Date: Thu, 26 Mar 2020 11:26:18 +0800 |
| Subject: [PATCH] misc: rtsx: set correct pcr_ops for rts522A |
| |
| commit 10cea23b6aae15e8324f4101d785687f2c514fe5 upstream. |
| |
| rts522a should use rts522a_pcr_ops, which is |
| diffrent with rts5227 in phy/hw init setting. |
| |
| Fixes: ce6a5acc9387 ("mfd: rtsx: Add support for rts522A") |
| Signed-off-by: YueHaibing <yuehaibing@huawei.com> |
| Cc: stable <stable@vger.kernel.org> |
| Link: https://lore.kernel.org/r/20200326032618.20472-1-yuehaibing@huawei.com |
| Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> |
| Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com> |
| |
| diff --git a/drivers/misc/cardreader/rts5227.c b/drivers/misc/cardreader/rts5227.c |
| index 4feed296a327..9d8fe08dbc75 100644 |
| --- a/drivers/misc/cardreader/rts5227.c |
| +++ b/drivers/misc/cardreader/rts5227.c |
| @@ -395,6 +395,7 @@ void rts522a_init_params(struct rtsx_pcr *pcr) |
| { |
| rts5227_init_params(pcr); |
| |
| + pcr->ops = &rts522a_pcr_ops; |
| pcr->reg_pm_ctrl3 = RTS522A_PM_CTRL3; |
| |
| pcr->option.ocp_en = 1; |
| -- |
| 2.7.4 |
| |