Christian Lamparter <chunkeey@xxxxxxxxxxxxxx> writes: > On Sunday 01 September 2013 10:22:14 Kalle Valo wrote: >> ath10k doesn't support qca988x hw1.0 boards anymore. Unfortunately >> the PCI id is the same in hw1.0 and hw2.0 so ath10k tries to use >> hw1.0 boards anyway. But without hw1.0 workarounds in place >> ath10k just crashes horribly. >> >> To avoid using hw1.0 boards at all add a chip id detection >> and fail the probe if hw1.0 is detected: >> >> [ 5265.786408] ath10k: ERROR: qca988x hw1.0 is not supported >> [ 5265.786497] ath10k: Unsupported chip id 0x043202ff > > Wait a second... Isn't "0x043202ff" the id for v2.0? > Shouldn't this have worked? Hehe, you catched me cheating now :) Yesterday I was too lazy to switch to the v1 board I have, so I just temporarily switched id definitions in hw.h but then forgot the hack while copying the "screenshot". I'll change this in the commit log to 0x043000ff which it should have been. Good catch! > >> [ 5265.786574] ath10k: could not register driver core (-95) >> [ 5265.793191] ath10k_pci: probe of 0000:02:00.0 failed with error -95 >> >> Also add a warning if there's an unknown chip id but continue >> the boot process normally anyway. >> > > [22217.940000] ath10k_pci 0000:01:00.0: BAR 0: assigned [mem 0x12000000-0x121fffff 64bit] > [22217.950000] PCI: Enabling device 0000:01:00.0 (0000 -> 0002) > [22217.960000] ath10k: ERROR: qca988x hw1.0 is not supported > [22217.960000] ath10k: Unsupported chip id 0x043200ff > [22217.970000] ath10k: could not register driver core (-122) > [22217.970000] ath10k_pci: probe of 0000:01:00.0 failed with error -122 > > [ Ok. Although I wonder why the error code is -122 (-EDQUOT) and > not -95 (-EOPNOTSUPP)?! That is odd. I just rerun this (with the hw1.0 <-> hw2.0 id hack) and I got the -95 error code. No idea what happened before. So I will change the screenshot in commit log to this: [ 90.939484] ath10k: ERROR: qca988x hw1.0 is not supported [ 90.939663] ath10k: Unsupported chip id 0x043200ff [ 90.939818] ath10k: could not register driver core (-95) [ 90.952324] ath10k_pci: probe of 0000:02:00.0 failed with error -95 > Anyway, it still works. However I'm looking forward to run some more > tests, but first I'll need to get that 2.0 hw ;-) ]. Indeed! > Tested-by: Christian Lamparter <chunkeey@xxxxxxxxxxxxxx> Thanks, I'll add that. -- Kalle Valo -- To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html