On 09/10/2018, Stanislaw Gruszka <sgruszka@xxxxxxxxxx> wrote: > There is dupliceted 'if (rt2x00_rt(rt2x00dev, RT6352))' entry that couses > we do not perform proper register initaliztion for RT6352 (MT7620 SOCs). > > Reported-by: Tomislav Požega <pozega.tomislav@xxxxxxxxx> > Signed-off-by: Stanislaw Gruszka <sgruszka@xxxxxxxxxx> > --- > drivers/net/wireless/ralink/rt2x00/rt2800lib.c | 3 +-- > 1 file changed, 1 insertion(+), 2 deletions(-) > > diff --git a/drivers/net/wireless/ralink/rt2x00/rt2800lib.c > b/drivers/net/wireless/ralink/rt2x00/rt2800lib.c > index daf20d7424ac..170e7c87f7bc 100644 > --- a/drivers/net/wireless/ralink/rt2x00/rt2800lib.c > +++ b/drivers/net/wireless/ralink/rt2x00/rt2800lib.c > @@ -5451,8 +5451,7 @@ static int rt2800_init_registers(struct rt2x00_dev > *rt2x00dev) > 0x00000000); > } > } else if (rt2x00_rt(rt2x00dev, RT5390) || > - rt2x00_rt(rt2x00dev, RT5392) || > - rt2x00_rt(rt2x00dev, RT6352)) { > + rt2x00_rt(rt2x00dev, RT5392)) { > rt2800_register_write(rt2x00dev, TX_SW_CFG0, 0x00000404); > rt2800_register_write(rt2x00dev, TX_SW_CFG1, 0x00080606); > rt2800_register_write(rt2x00dev, TX_SW_CFG2, 0x00000000); > -- > 2.7.5 > > have you got chance to test https://github.com/psyborg55/linux/commit/24b46d482590a87553df1de0b5c8032f363cb7cf ? using this code to determine 7620 soc if (rt == RT5390 && rt2x00_is_soc(rt2x00dev)) rt = RT6352; somehow did not work in rt2800_init_registers routine. i could verify that by removing tx_sw_cfg registers from rt6352 and the wifi would still work, unless removed them from rt5390 also