Message ID | 20170825113828.GA3959@redhat.com (mailing list archive) |
---|---|
State | Changes Requested |
Delegated to: | Kalle Valo |
Headers | show |
Hi Stanislaw, On Fri, Aug 25, 2017 at 01:38:29PM +0200, Stanislaw Gruszka wrote: > Since commit 41977e86c984 ("rt2x00: add support for MT7620") we do not > initialize TX_PIN_CFG setting. This cause breakage at least on some > RT3573 devices. To fix the problem patch restores previous behaviour > for non MT7620 chips. > > Fixes: 41977e86c984 ("rt2x00: add support for MT7620") > Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=1480829 > Reported-and-tested-by: Jussi Eloranta <jussi.eloranta@csun.edu> > Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com> > --- > drivers/net/wireless/ralink/rt2x00/rt2800lib.c | 5 ++++- > 1 file changed, 4 insertions(+), 1 deletion(-) > > diff --git a/drivers/net/wireless/ralink/rt2x00/rt2800lib.c b/drivers/net/wireless/ralink/rt2x00/rt2800lib.c > index d11c7b2..5672aec 100644 > --- a/drivers/net/wireless/ralink/rt2x00/rt2800lib.c > +++ b/drivers/net/wireless/ralink/rt2x00/rt2800lib.c > @@ -3699,7 +3699,10 @@ static void rt2800_config_channel(struct rt2x00_dev *rt2x00dev, > if (rt2x00_rt(rt2x00dev, RT3572)) > rt2800_rfcsr_write(rt2x00dev, 8, 0); > > - rt2800_register_read(rt2x00dev, TX_PIN_CFG, &tx_pin); > + if (rt2x00_rt(rt2x00dev, RT6352)) > + rt2800_register_read(rt2x00dev, TX_PIN_CFG, &tx_pin); should be tx_pin = rt2800_register_read(rt2x00dev, TX_PIN_CFG); since the calling convention of rt2800_register_read was changed in commit eebd68e782 rt2x00: convert rt2800_register_read return type. Probably you based the patch on an outdated tree...? > + else > + tx_pin = 0; > > switch (rt2x00dev->default_ant.tx_chain_num) { > case 3: > -- > 2.7.5 >
On Fri, Aug 25, 2017 at 02:15:08PM +0200, Daniel Golle wrote: > Hi Stanislaw, > > On Fri, Aug 25, 2017 at 01:38:29PM +0200, Stanislaw Gruszka wrote: > > Since commit 41977e86c984 ("rt2x00: add support for MT7620") we do not > > initialize TX_PIN_CFG setting. This cause breakage at least on some > > RT3573 devices. To fix the problem patch restores previous behaviour > > for non MT7620 chips. > > > > Fixes: 41977e86c984 ("rt2x00: add support for MT7620") > > Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=1480829 > > Reported-and-tested-by: Jussi Eloranta <jussi.eloranta@csun.edu> > > Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com> > > --- > > drivers/net/wireless/ralink/rt2x00/rt2800lib.c | 5 ++++- > > 1 file changed, 4 insertions(+), 1 deletion(-) > > > > diff --git a/drivers/net/wireless/ralink/rt2x00/rt2800lib.c b/drivers/net/wireless/ralink/rt2x00/rt2800lib.c > > index d11c7b2..5672aec 100644 > > --- a/drivers/net/wireless/ralink/rt2x00/rt2800lib.c > > +++ b/drivers/net/wireless/ralink/rt2x00/rt2800lib.c > > @@ -3699,7 +3699,10 @@ static void rt2800_config_channel(struct rt2x00_dev *rt2x00dev, > > if (rt2x00_rt(rt2x00dev, RT3572)) > > rt2800_rfcsr_write(rt2x00dev, 8, 0); > > > > - rt2800_register_read(rt2x00dev, TX_PIN_CFG, &tx_pin); > > + if (rt2x00_rt(rt2x00dev, RT6352)) > > + rt2800_register_read(rt2x00dev, TX_PIN_CFG, &tx_pin); > > should be > > tx_pin = rt2800_register_read(rt2x00dev, TX_PIN_CFG); > > since the calling convention of rt2800_register_read was changed in > commit eebd68e782 rt2x00: convert rt2800_register_read return type. > Probably you based the patch on an outdated tree...? Yes, is was on 4.12. Will post v2. Thanks Stanislaw
diff --git a/drivers/net/wireless/ralink/rt2x00/rt2800lib.c b/drivers/net/wireless/ralink/rt2x00/rt2800lib.c index d11c7b2..5672aec 100644 --- a/drivers/net/wireless/ralink/rt2x00/rt2800lib.c +++ b/drivers/net/wireless/ralink/rt2x00/rt2800lib.c @@ -3699,7 +3699,10 @@ static void rt2800_config_channel(struct rt2x00_dev *rt2x00dev, if (rt2x00_rt(rt2x00dev, RT3572)) rt2800_rfcsr_write(rt2x00dev, 8, 0); - rt2800_register_read(rt2x00dev, TX_PIN_CFG, &tx_pin); + if (rt2x00_rt(rt2x00dev, RT6352)) + rt2800_register_read(rt2x00dev, TX_PIN_CFG, &tx_pin); + else + tx_pin = 0; switch (rt2x00dev->default_ant.tx_chain_num) { case 3:
Since commit 41977e86c984 ("rt2x00: add support for MT7620") we do not initialize TX_PIN_CFG setting. This cause breakage at least on some RT3573 devices. To fix the problem patch restores previous behaviour for non MT7620 chips. Fixes: 41977e86c984 ("rt2x00: add support for MT7620") Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=1480829 Reported-and-tested-by: Jussi Eloranta <jussi.eloranta@csun.edu> Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com> --- drivers/net/wireless/ralink/rt2x00/rt2800lib.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)