Received: by 10.213.65.68 with SMTP id h4csp457705imn; Tue, 13 Mar 2018 09:40:23 -0700 (PDT) X-Google-Smtp-Source: AG47ELtiLkrqOKE49zGVuCIncuJN8K49MpgxCMPTxWYAoI8vnL+d8jJknMJn6RKoOkOJ9TuKpTAl X-Received: by 10.99.64.3 with SMTP id n3mr1032643pga.316.1520959223102; Tue, 13 Mar 2018 09:40:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1520959223; cv=none; d=google.com; s=arc-20160816; b=MKtbM0ey8XW3NoasNALBSvEplhUi7qCVVkTAoPSW2Xhdcns9LXOx0hAMmfbEtLSz2L aX8hUPZJ9jKbip2QRwcrMxjNV6POFlM0fsiJ4VLq1re9ILHIc0Qq+eMCyu8oBiAauZhu IX7lVR9QxFCGBqypOcHaAoauXlvu08da3EdSnWeBj9VdcremtWvFGrQLkLxUVY9fBs5e Ja0dkvG7qs7rnExuaWGDOUpHDUQJCwdjL0SURNAouULEw4ywogtU+E26kLP/KB6zOKtO Ay2wmbpjwIK8bfSFN7wF0MqpawCIHG6sY+qg9xh35J66BAdTeqc9wrBLh+2ul5ltT49c uPtw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=Ic7yZyNAdEQ2Ge9XNVrb2WXoVG2vUZwPV5LxihI2IPg=; b=JNUR4y/1Zfy/22DeT9/ku8nww/AfWN2Mx7bQT7QjEPqDl3HFWAydquOxT4A79x/mak G3zdIUrYOb5sYF/lO/ZZDrsSj3qbQUAMIp+K/uPOYKSgULcVs8sY9wByAjetc9jP84eP 2yI1wpS9J5V0XIvs/u0Af6QnfXii+fgo144wVyV0BSr1h7Ejg4EccEGMJMVNg7XsiXuY pchl3gZ1Vl/ZkAeFlW50Jy435F/vR6HqaeaR4/zHtDLUdM5A/sYjQKeltQQGSgIj43jU gFqnd2+KQ4GA2ARI7ysYrU4n8HstX0DUqMYPSeJTxWSsE45vkNtA7DbAirSAy2eibRNo 1uUQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y22si288060pfm.357.2018.03.13.09.40.08; Tue, 13 Mar 2018 09:40:23 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933469AbeCMQir (ORCPT + 99 others); Tue, 13 Mar 2018 12:38:47 -0400 Received: from mx2.suse.de ([195.135.220.15]:43691 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751711AbeCMQio (ORCPT ); Tue, 13 Mar 2018 12:38:44 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (charybdis-ext.suse.de [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 3A73FAF92; Tue, 13 Mar 2018 16:38:43 +0000 (UTC) Date: Tue, 13 Mar 2018 16:38:42 +0000 From: "Luis R. Rodriguez" To: Kalle Valo Cc: "Luis R. Rodriguez" , Arend van Spriel , Andres Rodriguez , "linux-kernel@vger.kernel.org" , Greg Kroah-Hartman , linux-wireless , Ilia Mirkin Subject: Re: [PATCH] firmware: add a function to load optional firmware v2 Message-ID: <20180313163842.GF4449@wotan.suse.de> References: <20180309221243.15489-2-andresx7@gmail.com> <20180309230925.3573-1-andresx7@gmail.com> <5AA5B777.5020106@broadcom.com> <20180312192704.GX4449@wotan.suse.de> <87r2oo9jsk.fsf@kamboji.qca.qualcomm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87r2oo9jsk.fsf@kamboji.qca.qualcomm.com> User-Agent: Mutt/1.6.0 (2016-04-01) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Mar 13, 2018 at 03:39:23PM +0200, Kalle Valo wrote: > "Luis R. Rodriguez" writes: > > > On Mon, Mar 12, 2018 at 12:10:47AM +0100, Arend van Spriel wrote: > >> On 3/11/2018 5:05 PM, Andres Rodriguez wrote: > >> > > Your patch series then should also have the driver callers who you > >> > > want to modify to use this new API. Collect from the 802.11 folks the > >> > > other drivers which I think they wanted changed as well. > >> > > >> > Arend, Kalle, would love to hear your feedback. > >> > >> I am not sure if it was ath10k, but Kalle will surely know. The other driver > >> firing a whole batch of firmware requests is iwlwifi. These basically try to > >> get latest firmware version and if not there try an older one. > > > > Ah I recall now. At least for iwlwifi its that it requests firmware with a > > range of api files, and we don't need information about files in the middle > > not found, given all we need to know if is if at lest one file was found > > or not. > > > > I have future code to also enable use of a range request which would replace > > the recursive nature of iwlwifi's firmware API request, so it simplifies it > > considerably. > > > > Once we get this flag to be silent in, this can be used later. Ie, the new > > API I'd add would replace the complex api revision thing for an internal set. > > TBH I doubt we would use this kind of "range" request in ath10k, Well it doesn't have the form to use a range either so it wouldn't make sense. > the > current code works just fine only if we can get rid of the annoying > warning from request_firmware(). Unless if it's significantly faster or > something. Thanks, I see ath10k uses the sync request_firmware() call, so indeed it would be a trivial conversion. Andres can you roll that in for your patch series? Luis