diff options
author | Tomer Maimon <tmaimon77@gmail.com> | 2022-09-22 18:38:56 +0300 |
---|---|---|
committer | Philipp Zabel <p.zabel@pengutronix.de> | 2022-09-22 17:48:35 +0200 |
commit | ae358d71d4623ed0a466a7498f8ce25c7fda22d1 (patch) | |
tree | fbb7f7c16a9a7bfd6bc142be8b2a3da0f16d702c /drivers/reset | |
parent | 51fd191422d987dfd75a711aae592069ebb03ec9 (diff) | |
download | linux-stable-ae358d71d4623ed0a466a7498f8ce25c7fda22d1.tar.gz linux-stable-ae358d71d4623ed0a466a7498f8ce25c7fda22d1.tar.bz2 linux-stable-ae358d71d4623ed0a466a7498f8ce25c7fda22d1.zip |
reset: npcm: fix iprst2 and iprst4 setting
In NPCM8XX USB reset sequence, iprst2 register was set with iprst4 value
and iprst4 register wasn´t set.
This fix sets the correct IP reset values in iprst2 and iprst4 registers
in NPCM8XX USB reset sequence.
Fixes: fc5d2a2f4aa5 ("reset: npcm: Add NPCM8XX support")
Signed-off-by: Tomer Maimon <tmaimon77@gmail.com>
Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
Link: https://lore.kernel.org/r/20220922153856.23326-1-tmaimon77@gmail.com
Diffstat (limited to 'drivers/reset')
-rw-r--r-- | drivers/reset/reset-npcm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/reset/reset-npcm.c b/drivers/reset/reset-npcm.c index 24c55efa98e5..f2333506b0a6 100644 --- a/drivers/reset/reset-npcm.c +++ b/drivers/reset/reset-npcm.c @@ -291,7 +291,7 @@ static void npcm_usb_reset_npcm8xx(struct npcm_rc_data *rc) iprst2 |= ipsrst2_bits; iprst3 |= (ipsrst3_bits | NPCM_IPSRST3_USBPHY1 | NPCM_IPSRST3_USBPHY2); - iprst2 |= ipsrst4_bits; + iprst4 |= ipsrst4_bits; writel(iprst1, rc->base + NPCM_IPSRST1); writel(iprst2, rc->base + NPCM_IPSRST2); |