From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from smtp.codeaurora.org ([198.145.29.96]:33162 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933013AbdA0LtR (ORCPT ); Fri, 27 Jan 2017 06:49:17 -0500 From: Kalle Valo To: Pali =?utf-8?Q?Roh=C3=A1r?= Cc: Arend Van Spriel , Ming Lei , "Luis R. Rodriguez" , Greg Kroah-Hartman , David Gnedt , Michal Kazior , Daniel Wagner , Tony Lindgren , Sebastian Reichel , Pavel Machek , Ivaylo Dimitrov , Aaro Koskinen , Grazvydas Ignotas , linux-kernel@vger.kernel.org, linux-wireless@vger.kernel.org, netdev@vger.kernel.org Subject: Re: [PATCH 2/6] wl1251: Use request_firmware_prefer_user() for loading NVS calibration data References: <1482598381-16513-1-git-send-email-pali.rohar@gmail.com> <1482598381-16513-3-git-send-email-pali.rohar@gmail.com> <87tw8lnei3.fsf@codeaurora.org> <20170127094342.GC24223@pali> <20170127101043.GD24223@pali> <20170127103408.GG24223@pali> Date: Fri, 27 Jan 2017 13:49:03 +0200 In-Reply-To: <20170127103408.GG24223@pali> ("Pali \=\?utf-8\?Q\?Roh\=C3\=A1r\=22'\?\= \=\?utf-8\?Q\?s\?\= message of "Fri, 27 Jan 2017 11:34:08 +0100") Message-ID: <87bmus7mfk.fsf@kamboji.qca.qualcomm.com> (sfid-20170127_124938_432518_B15225BA) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Sender: linux-wireless-owner@vger.kernel.org List-ID: Pali Roh=C3=A1r writes: >> So >> for those other platforms there will be a delay waiting for user-mode >> helper to fail, before trying to get nvs file from /lib/firmware. > > Yes, there will be. But there is no easy way to fix this problem that > kernel is trying to use default/example NVS data... Kernel is doing correctly and requesting NVS data as expected, the problem here is that linux-firmware claims that the example NVS data is real calibration data (which it is not). Distros should not use that, only developers for testing purposes. We should not courage users using example calibration data. The simple fix is to rename the NVS file in linux-firmware to something like wl1251-nvs.bin.example, no need to workaround this in kernel. If you send a patch to linux-firmware I'm happy to ack that. --=20 Kalle Valo