From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from smtp.duncanthrax.net ([2001:470:70c5:1111::170]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1WuHU9-0006lm-5H for ath10k@lists.infradead.org; Tue, 10 Jun 2014 08:32:50 +0000 Message-ID: <5396C299.5050900@stackframe.org> Date: Tue, 10 Jun 2014 10:32:25 +0200 From: Sven Schnelle MIME-Version: 1.0 Subject: Re: fetching calibration data from flash References: <5396B9F9.2070107@stackframe.org> <87ha3tcgo8.fsf@kamboji.qca.qualcomm.com> In-Reply-To: <87ha3tcgo8.fsf@kamboji.qca.qualcomm.com> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Sender: "ath10k" Errors-To: ath10k-bounces+kvalo=adurom.com@lists.infradead.org To: Kalle Valo Cc: ath10k@lists.infradead.org Am 10.06.2014 10:28, schrieb Kalle Valo: > Sven Schnelle writes: > >> currently ath10k fetches calibration data from the board.bin file via >> request_firmware(). Usually HW manufactures are using one flash >> partition for the calibration data (see ath9k for example). So we >> would end up reading the file from flash, and writing it into a >> ramdisk so that ath10k can fetch it. >> >> I would prefer to add support to ath10k to fetch that data directly >> from flash. IMHO there are two options to do so: >> >> a) Use platform data, like ath9k does. > I prefer this option. > >> b) add a module option to ath10k, and let ath10k fetch the files via >> mtd API. Has the downside of requiring MTD (maybe add a config option >> to disable that?) > This sounds like a hack to me. How to specify the exact location? Are we > sure devices will only use MTD to store the calibration data? > >> but i like that more than the ath9k way of reading an arbitrary memory >> region and circumventing the MTD layer. > Sorry, I didn't quite understand this comment. What do you mean exactly > with an arbitrary region? The memory location should be defined by the > platform data from which ath10k just copies data to the target. > Ok, let's do the first option. Ignore that comment - i'm fine with using platform data. Sven _______________________________________________ ath10k mailing list ath10k@lists.infradead.org http://lists.infradead.org/mailman/listinfo/ath10k