Skip to content

Commit 3f9ef77

Browse files
svanheuletsbogend
authored andcommitted
MIPS: ralink: manage low reset lines
Reset lines with indices smaller than 8 are currently considered invalid by the rt2880-reset reset controller. The MT7621 SoC uses a number of these low reset lines. The DTS defines reset lines "hsdma", "fe", and "mcm" with respective values 5, 6, and 2. As a result of the above restriction, these resets cannot be asserted or de-asserted by the reset controller. In cases where the bootloader does not de-assert these lines, this results in e.g. the MT7621's internal switch staying in reset. Change the reset controller to only ignore the system reset, so all reset lines with index greater than 0 are considered valid. Signed-off-by: Sander Vanheule <sander@svanheule.net> Acked-by: John Crispin <john@phrozen.org> Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
1 parent b83ba0b commit 3f9ef77

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

arch/mips/ralink/reset.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ static int ralink_assert_device(struct reset_controller_dev *rcdev,
2727
{
2828
u32 val;
2929

30-
if (id < 8)
30+
if (id == 0)
3131
return -1;
3232

3333
val = rt_sysc_r32(SYSC_REG_RESET_CTRL);
@@ -42,7 +42,7 @@ static int ralink_deassert_device(struct reset_controller_dev *rcdev,
4242
{
4343
u32 val;
4444

45-
if (id < 8)
45+
if (id == 0)
4646
return -1;
4747

4848
val = rt_sysc_r32(SYSC_REG_RESET_CTRL);

0 commit comments

Comments
 (0)