]> git.itanic.dy.fi Git - linux-stable/commit
ath9k: fetch calibration data via nvmem subsystem
authorChristian Lamparter <chunkeey@gmail.com>
Mon, 13 Sep 2021 12:40:35 +0000 (15:40 +0300)
committerKalle Valo <kvalo@codeaurora.org>
Thu, 16 Sep 2021 08:07:41 +0000 (11:07 +0300)
commiteb3a97a69be83ea961bf4a164c54e1c989a57850
tree131094e75bd6c6091a312ff1754c2bfd2945a681
parent6880fa6c56601bb8ed59df6c30fd390cc5f6dd8f
ath9k: fetch calibration data via nvmem subsystem

On most embedded ath9k devices (like range extenders,
routers, accesspoints, ...) the calibration data is
stored in a MTD partitions named "ART", or "caldata"/
"calibration".

Since commit 4b361cfa8624 ("mtd: core: add OTP nvmem provider support"):
All MTD partitions are all automatically available through
the nvmem subsystem.

This feature - together with an nvmem cell definition either
in the platform data or via device-tree allows drivers to get
the data necessary for initializing the WIFI, without having
to wait around for the filesystem and userspace to do
the extractions.

Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/f9b732b50a3453fadf3923cc75d365bae3505fe7.1630157099.git.chunkeey@gmail.com
drivers/net/wireless/ath/ath9k/eeprom.c
drivers/net/wireless/ath/ath9k/hw.h
drivers/net/wireless/ath/ath9k/init.c