diff options
author | Stanislaw Gruszka <stf_xl@wp.pl> | 2013-05-18 08:03:39 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2013-05-24 13:18:15 -0400 |
commit | aef9f38b8d1d729935fab916b4581af669baa849 (patch) | |
tree | 7682b9fc894bad31e564f7fea60d563a210d73bd /drivers/net/wireless/rt2x00/rt2800lib.c | |
parent | 3c20a1229dce70b16f7e0f444d23f9b16e15a7e2 (diff) |
rt2800: initialize BBP_R86 on all subroutines (except 5592)
Signed-off-by: Stanislaw Gruszka <stf_xl@wp.pl>
Acked-by: Helmut Schaa <helmut.schaa@googlemail.com>
Acked-by: Gertjan van Wingerde <gwingerde@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/rt2x00/rt2800lib.c')
-rw-r--r-- | drivers/net/wireless/rt2x00/rt2800lib.c | 24 |
1 files changed, 16 insertions, 8 deletions
diff --git a/drivers/net/wireless/rt2x00/rt2800lib.c b/drivers/net/wireless/rt2x00/rt2800lib.c index 2f14ede9e959..dafb52b349fb 100644 --- a/drivers/net/wireless/rt2x00/rt2800lib.c +++ b/drivers/net/wireless/rt2x00/rt2800lib.c | |||
@@ -3973,6 +3973,8 @@ static void rt2800_init_bbp_305x_soc(struct rt2x00_dev *rt2x00dev) | |||
3973 | rt2800_bbp_write(rt2x00dev, 83, 0x6a); | 3973 | rt2800_bbp_write(rt2x00dev, 83, 0x6a); |
3974 | 3974 | ||
3975 | rt2800_bbp_write(rt2x00dev, 84, 0x99); | 3975 | rt2800_bbp_write(rt2x00dev, 84, 0x99); |
3976 | |||
3977 | rt2800_bbp_write(rt2x00dev, 86, 0x00); | ||
3976 | } | 3978 | } |
3977 | 3979 | ||
3978 | static void rt2800_init_bbp_28xx(struct rt2x00_dev *rt2x00dev) | 3980 | static void rt2800_init_bbp_28xx(struct rt2x00_dev *rt2x00dev) |
@@ -4000,6 +4002,8 @@ static void rt2800_init_bbp_28xx(struct rt2x00_dev *rt2x00dev) | |||
4000 | rt2800_bbp_write(rt2x00dev, 84, 0x19); | 4002 | rt2800_bbp_write(rt2x00dev, 84, 0x19); |
4001 | else | 4003 | else |
4002 | rt2800_bbp_write(rt2x00dev, 84, 0x99); | 4004 | rt2800_bbp_write(rt2x00dev, 84, 0x99); |
4005 | |||
4006 | rt2800_bbp_write(rt2x00dev, 86, 0x00); | ||
4003 | } | 4007 | } |
4004 | 4008 | ||
4005 | static void rt2800_init_bbp_30xx(struct rt2x00_dev *rt2x00dev) | 4009 | static void rt2800_init_bbp_30xx(struct rt2x00_dev *rt2x00dev) |
@@ -4021,6 +4025,8 @@ static void rt2800_init_bbp_30xx(struct rt2x00_dev *rt2x00dev) | |||
4021 | rt2800_bbp_write(rt2x00dev, 83, 0x6a); | 4025 | rt2800_bbp_write(rt2x00dev, 83, 0x6a); |
4022 | 4026 | ||
4023 | rt2800_bbp_write(rt2x00dev, 84, 0x99); | 4027 | rt2800_bbp_write(rt2x00dev, 84, 0x99); |
4028 | |||
4029 | rt2800_bbp_write(rt2x00dev, 86, 0x00); | ||
4024 | } | 4030 | } |
4025 | 4031 | ||
4026 | static void rt2800_init_bbp_3290(struct rt2x00_dev *rt2x00dev) | 4032 | static void rt2800_init_bbp_3290(struct rt2x00_dev *rt2x00dev) |
@@ -4053,6 +4059,8 @@ static void rt2800_init_bbp_3290(struct rt2x00_dev *rt2x00dev) | |||
4053 | rt2800_bbp_write(rt2x00dev, 83, 0x7a); | 4059 | rt2800_bbp_write(rt2x00dev, 83, 0x7a); |
4054 | 4060 | ||
4055 | rt2800_bbp_write(rt2x00dev, 84, 0x9a); | 4061 | rt2800_bbp_write(rt2x00dev, 84, 0x9a); |
4062 | |||
4063 | rt2800_bbp_write(rt2x00dev, 86, 0x38); | ||
4056 | } | 4064 | } |
4057 | 4065 | ||
4058 | static void rt2800_init_bbp_3352(struct rt2x00_dev *rt2x00dev) | 4066 | static void rt2800_init_bbp_3352(struct rt2x00_dev *rt2x00dev) |
@@ -4087,6 +4095,8 @@ static void rt2800_init_bbp_3352(struct rt2x00_dev *rt2x00dev) | |||
4087 | rt2800_bbp_write(rt2x00dev, 83, 0x6a); | 4095 | rt2800_bbp_write(rt2x00dev, 83, 0x6a); |
4088 | 4096 | ||
4089 | rt2800_bbp_write(rt2x00dev, 84, 0x99); | 4097 | rt2800_bbp_write(rt2x00dev, 84, 0x99); |
4098 | |||
4099 | rt2800_bbp_write(rt2x00dev, 86, 0x38); | ||
4090 | } | 4100 | } |
4091 | 4101 | ||
4092 | static void rt2800_init_bbp_3390(struct rt2x00_dev *rt2x00dev) | 4102 | static void rt2800_init_bbp_3390(struct rt2x00_dev *rt2x00dev) |
@@ -4108,6 +4118,8 @@ static void rt2800_init_bbp_3390(struct rt2x00_dev *rt2x00dev) | |||
4108 | rt2800_bbp_write(rt2x00dev, 83, 0x6a); | 4118 | rt2800_bbp_write(rt2x00dev, 83, 0x6a); |
4109 | 4119 | ||
4110 | rt2800_bbp_write(rt2x00dev, 84, 0x99); | 4120 | rt2800_bbp_write(rt2x00dev, 84, 0x99); |
4121 | |||
4122 | rt2800_bbp_write(rt2x00dev, 86, 0x00); | ||
4111 | } | 4123 | } |
4112 | 4124 | ||
4113 | static void rt2800_init_bbp_3572(struct rt2x00_dev *rt2x00dev) | 4125 | static void rt2800_init_bbp_3572(struct rt2x00_dev *rt2x00dev) |
@@ -4131,6 +4143,8 @@ static void rt2800_init_bbp_3572(struct rt2x00_dev *rt2x00dev) | |||
4131 | rt2800_bbp_write(rt2x00dev, 83, 0x6a); | 4143 | rt2800_bbp_write(rt2x00dev, 83, 0x6a); |
4132 | 4144 | ||
4133 | rt2800_bbp_write(rt2x00dev, 84, 0x99); | 4145 | rt2800_bbp_write(rt2x00dev, 84, 0x99); |
4146 | |||
4147 | rt2800_bbp_write(rt2x00dev, 86, 0x00); | ||
4134 | } | 4148 | } |
4135 | 4149 | ||
4136 | static void rt2800_init_bbp_53xx(struct rt2x00_dev *rt2x00dev) | 4150 | static void rt2800_init_bbp_53xx(struct rt2x00_dev *rt2x00dev) |
@@ -4162,6 +4176,8 @@ static void rt2800_init_bbp_53xx(struct rt2x00_dev *rt2x00dev) | |||
4162 | rt2800_bbp_write(rt2x00dev, 83, 0x7a); | 4176 | rt2800_bbp_write(rt2x00dev, 83, 0x7a); |
4163 | 4177 | ||
4164 | rt2800_bbp_write(rt2x00dev, 84, 0x9a); | 4178 | rt2800_bbp_write(rt2x00dev, 84, 0x9a); |
4179 | |||
4180 | rt2800_bbp_write(rt2x00dev, 86, 0x38); | ||
4165 | } | 4181 | } |
4166 | 4182 | ||
4167 | static void rt2800_init_bbp_5592(struct rt2x00_dev *rt2x00dev) | 4183 | static void rt2800_init_bbp_5592(struct rt2x00_dev *rt2x00dev) |
@@ -4280,14 +4296,6 @@ static void rt2800_init_bbp(struct rt2x00_dev *rt2x00dev) | |||
4280 | return; | 4296 | return; |
4281 | } | 4297 | } |
4282 | 4298 | ||
4283 | if (rt2x00_rt(rt2x00dev, RT3290) || | ||
4284 | rt2x00_rt(rt2x00dev, RT3352) || | ||
4285 | rt2x00_rt(rt2x00dev, RT5390) || | ||
4286 | rt2x00_rt(rt2x00dev, RT5392)) | ||
4287 | rt2800_bbp_write(rt2x00dev, 86, 0x38); | ||
4288 | else | ||
4289 | rt2800_bbp_write(rt2x00dev, 86, 0x00); | ||
4290 | |||
4291 | if (rt2x00_rt(rt2x00dev, RT3352) || | 4299 | if (rt2x00_rt(rt2x00dev, RT3352) || |
4292 | rt2x00_rt(rt2x00dev, RT5392)) | 4300 | rt2x00_rt(rt2x00dev, RT5392)) |
4293 | rt2800_bbp_write(rt2x00dev, 88, 0x90); | 4301 | rt2800_bbp_write(rt2x00dev, 88, 0x90); |