Re: [PATCH] ath9k: introduce endian_check module parameter

2018-04-10 Thread Bas Vermeulen
On 14-03-18 15:34, Kalle Valo wrote: Bas Vermeulen <bverm...@blackstar.nl> writes: --- a/drivers/net/wireless/ath/ath9k/init.c +++ b/drivers/net/wireless/ath/ath9k/init.c @@ -67,6 +67,9 @@ static int ath9k_ps_enable; module_param_named(ps_enable, ath9k_ps_enable, int

Re: [PATCH] ath9k: introduce endian_check module parameter

2018-03-14 Thread Bas Vermeulen
On 26-02-18 15:52, Kalle Valo wrote: Bas Vermeulen <bverm...@blackstar.nl> writes: On 26-02-18 10:54, Kalle Valo wrote: Bas Vermeulen <bverm...@blackstar.nl> writes: A random (little endian eeprom'd) ar9278 card didn't work on my PowerMac G5 without allowing the driver

Re: [PATCH] mt7601u: remove a warning in mt7601u_efuse_physical_size_check()

2018-03-01 Thread Bas Vermeulen
Nevermind. round_up instead of DIV_ROUND_UP. Bas Vermeulen On 01-03-18 11:22, Bas Vermeulen wrote: On 28-02-18 15:26, Lorenzo Bianconi wrote: Fix the following sparse warning in mt7601u_efuse_physical_size_check: - drivers/net/wireless/mediatek/mt7601u/eeprom.c:77:27: warning:    Variable

Re: [PATCH] mt7601u: remove a warning in mt7601u_efuse_physical_size_check()

2018-03-01 Thread Bas Vermeulen
ZE, 16)]; Shouldn't this be u8 data[round_up(MT_EFUSE_USAGE_MAP_SIZE,16)*16]; to get the same array size as before? Bas Vermeulen -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean.

Re: [PATCH] ath9k: introduce endian_check module parameter

2018-02-26 Thread Bas Vermeulen
On 26-2-2018 18:42, Dan Williams wrote: On Mon, 2018-02-26 at 17:44 +0100, Bas Vermeulen wrote: On 26-02-18 17:32, Larry Finger wrote: On 02/26/2018 04:07 AM, Bas Vermeulen wrote: On 26-02-18 10:54, Kalle Valo wrote: Bas Vermeulen <bverm...@blackstar.nl> writes: A random (little

Re: [PATCH] ath9k: introduce endian_check module parameter

2018-02-26 Thread Bas Vermeulen
On 26-02-18 17:32, Larry Finger wrote: On 02/26/2018 04:07 AM, Bas Vermeulen wrote: On 26-02-18 10:54, Kalle Valo wrote: Bas Vermeulen <bverm...@blackstar.nl> writes: A random (little endian eeprom'd) ar9278 card didn't work on my PowerMac G5 without allowing the driver to byt

Re: [PATCH] ath9k: introduce endian_check module parameter

2018-02-26 Thread Bas Vermeulen
On 26-02-18 12:30, Sebastian Gottschall wrote: Am 26.02.2018 um 11:07 schrieb Bas Vermeulen: On 26-02-18 10:54, Kalle Valo wrote: Bas Vermeulen <bverm...@blackstar.nl> writes: A random (little endian eeprom'd) ar9278 card didn't work on my PowerMac G5 without allowing the driver to byt

Re: [PATCH] ath9k: introduce endian_check module parameter

2018-02-26 Thread Bas Vermeulen
On 26-02-18 12:28, Sebastian Gottschall wrote: Am 26.02.2018 um 10:54 schrieb Kalle Valo: Bas Vermeulen <bverm...@blackstar.nl> writes: A random (little endian eeprom'd) ar9278 card didn't work on my PowerMac G5 without allowing the driver to byte-swap the eeprom. Introduce a

Re: [PATCH] ath9k: introduce endian_check module parameter

2018-02-26 Thread Bas Vermeulen
On 26-02-18 10:54, Kalle Valo wrote: Bas Vermeulen <bverm...@blackstar.nl> writes: A random (little endian eeprom'd) ar9278 card didn't work on my PowerMac G5 without allowing the driver to byte-swap the eeprom. Introduce a module parameter endian_check to allow this to happen, and th

[PATCH] ath9k: introduce endian_check module parameter

2018-02-26 Thread Bas Vermeulen
A random (little endian eeprom'd) ar9278 card didn't work on my PowerMac G5 without allowing the driver to byte-swap the eeprom. Introduce a module parameter endian_check to allow this to happen, and the PCIe card to function correctly on BE powerpc. Signed-off-by: Bas Vermeulen <bv

ath9k: AR9287 device with little endian eeprom doesn't work on powerpc

2018-02-22 Thread Bas Vermeulen
art working correctly. Is there a better way of doing this? If not, what would be the best way to allow byte-swapping the eeprom on big endian machines? Bas Vermeulen -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean.