Received: by 10.213.65.68 with SMTP id h4csp246638imn; Mon, 12 Mar 2018 12:28:16 -0700 (PDT) X-Google-Smtp-Source: AG47ELt0EcyO6WzpYWv+6Kl3WcDLp48MYHfQVdOFi3kDQnQmJxQ5lvLSZBoLVpXx0A2rF1vBhpRN X-Received: by 10.98.10.219 with SMTP id 88mr9071425pfk.202.1520882896775; Mon, 12 Mar 2018 12:28:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1520882896; cv=none; d=google.com; s=arc-20160816; b=aDE8gdIk4AWYMacRrCkU9245O+eonm5NExQA+vjqUDspSPTnUPGXKi7afJDL4ZYS3y wexDqdBumE0x/pVkXiuhENes8VBPMCveEh1JaIgKwe9TixilecxnAJLIXCaF/bWRT8hn yMcxiT9x3zfnCB55ZNBsFxMvA3tyUYsw8RGkuBLFiSupdehXJ0p1O8SpL6koiYEiMR9R 30rUU+GXDtSLVa5GktoaJXU7oTM8r6ZZ77Z6oPiiMVsROqsMOVIjZzE59/2rkFBMvzuQ kXWLdAPmBBrhj9NZJQBVgK25no64Of1JM6Cxxy5pnC+w4Y7XxFG16B37etiPCY+WQme0 V6Og== 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=1kJVFWaaLquGoRpSAScB0OXuVt5+tnVI18TiK4wiEF8=; b=OaukA4WpvujiwB1vVy5ALt+k7hcM2JLMqeEMUD93KxIjTDrRCneQIUjFQnQ+nZ0ZlP P4DZvjBJ0KORchkaGseVdKpsRRe0FeVxPr1OTsbGxlmxFZcUbWGQYwiFo/e5ozRjKbF8 oX/0Ec4YnWq4vdHdkeZgBQakhk5B0ig22ZM6zo0+m1SsEcheIYgFFYl+51ry1e05EyA/ UXHtHrJctwGKb2lwAwyhkebbtq713VR1r1vNn6XYvgtTE0uqKBxGUllDHvkpQstyqgbh j3BZ9SDhqgBtt15+YW/Yl4U3KCS8Ex8AtT0ySSkETyejvF4ekIC+5apLTfnGX3bce+Bv fSWA== 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 c5si6065051pfn.386.2018.03.12.12.28.02; Mon, 12 Mar 2018 12:28:16 -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 S932311AbeCLT1J (ORCPT + 99 others); Mon, 12 Mar 2018 15:27:09 -0400 Received: from mx2.suse.de ([195.135.220.15]:42449 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751337AbeCLT1H (ORCPT ); Mon, 12 Mar 2018 15:27:07 -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 C01C3ADE0; Mon, 12 Mar 2018 19:27:04 +0000 (UTC) Date: Mon, 12 Mar 2018 19:27:04 +0000 From: "Luis R. Rodriguez" To: Arend van Spriel Cc: Andres Rodriguez , "Luis R. Rodriguez" , "linux-kernel@vger.kernel.org" , Greg Kroah-Hartman , linux-wireless , Kalle Valo , Ilia Mirkin Subject: Re: [PATCH] firmware: add a function to load optional firmware v2 Message-ID: <20180312192704.GX4449@wotan.suse.de> References: <20180309221243.15489-2-andresx7@gmail.com> <20180309230925.3573-1-andresx7@gmail.com> <5AA5B777.5020106@broadcom.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5AA5B777.5020106@broadcom.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 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. > The brcmfmac driver I maintain is slightly different. It downloads two > distinct pieces of firmware of which one is optional for certain > configurations. Currently, my driver does two asynchronous requests for it, > but I consider changing it and only make the first request asynchronous and > the second request synchronous. You can look at the current code in > drivers/net/wireless/broadcom/brcmfmac/firmware.c. However, I did quite some > restructuring last week. Anyway, I probably will end up using the "optional" > api where appropriate. Thanks for the details. Luis