Received: by 10.213.65.16 with SMTP id m16csp74168imf; Sun, 11 Mar 2018 16:12:03 -0700 (PDT) X-Google-Smtp-Source: AG47ELt7EO+d4gZKT5Id1z9COFCm+hLNWb9uonWT4W3ihWILOeD5u5ZgealagbO/l9k7b0H57byN X-Received: by 2002:a17:902:4c88:: with SMTP id b8-v6mr6173263ple.0.1520809923840; Sun, 11 Mar 2018 16:12:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1520809923; cv=none; d=google.com; s=arc-20160816; b=D1HMeeBXVUL1GyJHxCtNcIDzOr5i1tTyOL6Be2hNOHB1NCrbPSl0zR3LgiKxB5J+Nq eKAax8whZJc2KoejR3WeYnnXbD6dTKXjDvagvmilueD+7DHy7paUtVB44eLpoISqnw+g P0kUNVMvVjxB6w9Q8RK3aXqCETyzQSAN5zzJ6KbCMrpzsCO4JXNKr3gxWrb6bD0qyFSU +UQqyNK1Va6Q4OvnxYcwCR4tt8FZyW+yg4Rb0ySxgBf1/1WRrGkT+YMMicXCKuH/kDZC X+ndtNMrNbKjHNSHB+CdY14+syTvmc4BBflRzRzTNM44VNE1/UqdT0vO3MnTEC4ikLKP WrKQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:in-reply-to :mime-version:user-agent:date:message-id:from:cc:references:to :subject:dkim-signature:arc-authentication-results; bh=0vEeaUebrD6heg1gFA7HXnvI/bOzBEajc3Nhohcsp4w=; b=r44Irf9/u9PUa3M+r6dch3gnVz9O7Yw8HGc7KeekeBECMzAkFf7fjvOxZhl6eJo8ch Te95EQxYuwjp4fC6RPOC3wvJ+XreHw5t9SQSADMuShbdtQMaLvbl4hkKFCwOVSSJC2PV Unfia3P+EFVuQdl1nQDA25DG5CI8w/ElaLHsNquU1p8VbG1DixOE70yusafXWBOGL/7v Ow5n1c9LIzb8v6JuWxtPsAVznH8vwLYdqykauohnycahrWp04j0cGEhUIXptz1+vMk8V 3JN+6WOylwx6JoskyffvkzUxgSHwdBQeu0cfxY1RcvakHaa7xXb5FPhyl+7vOa91i0Cs A6xA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@broadcom.com header.s=google header.b=g+HCQV6W; 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; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=broadcom.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q3-v6si4862938pll.392.2018.03.11.16.11.47; Sun, 11 Mar 2018 16:12:03 -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; dkim=pass header.i=@broadcom.com header.s=google header.b=g+HCQV6W; 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; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=broadcom.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932414AbeCKXKt (ORCPT + 99 others); Sun, 11 Mar 2018 19:10:49 -0400 Received: from mail-wm0-f51.google.com ([74.125.82.51]:51141 "EHLO mail-wm0-f51.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932166AbeCKXKs (ORCPT ); Sun, 11 Mar 2018 19:10:48 -0400 Received: by mail-wm0-f51.google.com with SMTP id w128so13128684wmw.0 for ; Sun, 11 Mar 2018 16:10:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; h=subject:to:references:cc:from:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding; bh=0vEeaUebrD6heg1gFA7HXnvI/bOzBEajc3Nhohcsp4w=; b=g+HCQV6W8aoV1fqDmftbqa+w1RHuhqHO7jUFgqNkQJOxZV0WlkNwd3dMUf/UUlTxGM GfH05Q0g7tNNbmMBbZNSuHCVdEdz/TgMi91MkecVXCCe/lHPJrNJPc6m2XIRofTLkj27 AL1Ovm03fwRbwC+sxH3+d+X/y/UcslSZrdlcI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:cc:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=0vEeaUebrD6heg1gFA7HXnvI/bOzBEajc3Nhohcsp4w=; b=ukyl1Zn1egSqqkykJDDBc1mWnMIDjxkbmXqheSFSe5xnvwyQTQoH2ImY0sj2/tRcAH tVuCB/vvMWl9XCX+qmUcqM7HEY9ABCobRJxbW4d9BTNtcYqSvh215udA9HopMPLAwYcr yR8KBytt5xZwcXbvaIJz2r5FnuQDzF6e3O2Zr3Jv/7B12b6pnLUfekUPCZVMGB4XkDCs ZVQaZjU368YpfC+MnP/JfvfuDpYPgsiQWopWQnOtIkhDjeZNXq6MJK8+htdYlIOu/6zt nRKimLZ8YdXHQqUaNOAuLN86qp7bVNFq7FanJF3mYbiGJT6Ryw8rfo2nSay36ofehLcx 2d3w== X-Gm-Message-State: AElRT7FYIEKxBzBkkn7zmmOvD3RQdG3sxV/WrlJ8eRMSp4i39oU0Uvff c7EZHyh3OS30MAgIQeEGgadu/Q== X-Received: by 10.80.230.14 with SMTP id y14mr8327706edm.307.1520809846820; Sun, 11 Mar 2018 16:10:46 -0700 (PDT) Received: from [192.168.178.129] (f140230.upc-f.chello.nl. [80.56.140.230]) by smtp.gmail.com with ESMTPSA id v15sm4070439edl.12.2018.03.11.16.10.45 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 11 Mar 2018 16:10:46 -0700 (PDT) Subject: Re: [PATCH] firmware: add a function to load optional firmware v2 To: Andres Rodriguez , "Luis R. Rodriguez" References: <20180309221243.15489-2-andresx7@gmail.com> <20180309230925.3573-1-andresx7@gmail.com> Cc: "linux-kernel@vger.kernel.org" , Greg Kroah-Hartman , linux-wireless , Kalle Valo , Ilia Mirkin From: Arend van Spriel Message-ID: <5AA5B777.5020106@broadcom.com> Date: Mon, 12 Mar 2018 00:10:47 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.5.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. 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. Regards, Arend