Received: by 10.192.165.148 with SMTP id m20csp2714693imm; Sun, 22 Apr 2018 13:27:38 -0700 (PDT) X-Google-Smtp-Source: AIpwx49UfUhY2amNKScjT1UTFetLI40CUQ4gWiQnzPSMzCysgcrhlXp9s/D3xAiJ9p/GY+V4A72B X-Received: by 2002:a17:902:70c7:: with SMTP id l7-v6mr17887254plt.165.1524428858703; Sun, 22 Apr 2018 13:27:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524428858; cv=none; d=google.com; s=arc-20160816; b=UrHIb81iVbm+EybPSzNtYun+j//IaqRdmZCaHbpxaxKvAXvDPZNGj2RbBFy0MT0//1 16gVNZ8SXN/Kf5SncYQI6Pi2z9K9rZmpuGurCRmSPzl3WpSVo1QMmgpwYOywE5yMhP3j a8qTV9IaEV7NVHcFFraAccRnL2EUtvqmpBlKhDTfjHmWzs33oEaICcPOXwV/7yuYeWrM NGCYf1zg+rjgzZNUlgqnaj2j6Am+BaGDidX9rUweUWzpJ3MHkwTSFzyHk/ADBc1Ff8U2 AJUHdXlUuCpu740Adz2y2YLD3thSafiqMspDd0EO4Mvb8940iCPyGGDklO1n/3KbWgn7 oafA== 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=firKBt63lPxwYpTPi+JwDkKRKzWfV4HuTYbuQm1KMEA=; b=PWvlA8WG2US7ZBz0DVY8ZxwUEvmWt0S2gib4zpgPXBZQV3cIs8rvLAjq5WMB0DiXZq P2JwhOisn9SrTkqFFhF1LS1r1nTxY6pd8VqJXZSWRBKaFKAFd3pITsJmbfnt5gh5ff8U VM1hlGOFvh+i7EqKidEVHIspH4ZvgHPkHaOpvLtOge+OrAT0ikYF5myftlTmJ+UaLI4z sGthbhR4P0/+711XdcIc7ckZjNT/D65fppWF4GJqvCQmSxPeQiCUNPxathsyQW5ABTe6 Z6f53cZVEzoT1ghSy7uVH3yyMYtL6mRHRfSOZgN1ng+gcPmOC9MA4u2x7lhTxmHxAN2W PH9A== 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 j1si9455950pff.7.2018.04.22.13.27.24; Sun, 22 Apr 2018 13:27:38 -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 S1753696AbeDVU0N (ORCPT + 99 others); Sun, 22 Apr 2018 16:26:13 -0400 Received: from mx2.suse.de ([195.135.220.15]:57974 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753676AbeDVU0M (ORCPT ); Sun, 22 Apr 2018 16:26:12 -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 13547ABD9; Sun, 22 Apr 2018 20:26:11 +0000 (UTC) Date: Sun, 22 Apr 2018 22:26:09 +0200 From: "Luis R. Rodriguez" To: Andres Rodriguez Cc: Linus Torvalds , Kees Cook , Greg Kroah-Hartman , Hans de Goede , David Woodhouse , LKML , Alex Deucher , ckoenig.leichtzumerken@gmail.com, Kalle Valo , Arend van Spriel , "Luis R. Rodriguez" Subject: Re: [PATCH 5/9] firmware: add functions to load firmware without warnings v4 Message-ID: <20180422202609.GX14440@wotan.suse.de> References: <20180417153307.3693-1-andresx7@gmail.com> <20180417153307.3693-6-andresx7@gmail.com> <20180421143206.GQ14440@wotan.suse.de> <20180421144911.GV14440@wotan.suse.de> <20180421173650.GW14440@wotan.suse.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180421173650.GW14440@wotan.suse.de> 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 Sat, Apr 21, 2018 at 07:36:50PM +0200, Luis R. Rodriguez wrote: > On Sat, Apr 21, 2018 at 08:32:00AM -0700, Linus Torvalds wrote: > > they were nasty and illegible and pointless. > > Clearly request_firmware_nowait2() is *not* much better... right? So it illustrates > the problem I was hinting which we'd eventually cross... > > > Using some single flag field for an extended function, and leaving the > > existing functions alone so that you don't have to convert existing > > users - that would have been fine. That's not what was tried and > > rejected. > > Actually it was tried, however the divide was perhaps *too broad* and split > all possible *new* functionality into two calls, a sync and a async call. > > A flag based mechanism *is* reasonable to me given I have been an advocate > of such type of mechanism for a long while. It however is against what > Greg requested -- to have a new call *per functionality*. > > So feel free to advise... I really just want us to move on. Andres, Since we haven't heard back, and I don't want to leave you hanging here is what I recommend: Re-submit and ignore the new async call for now. Leave that or another series later. Note that Hans also has another series which we want to merge soon too, so I expect we can address this async call after Hans's work. What I recommend for advancing the API to support future async calls is first we make it clear the current flags are private, then see if we can stuff them into struct fw_priv, and pass that data structure around internally where possible instead of using really long set of arguments on tons of internal functions. That's at least one commit alone. Once that is done I'd add public API flags which reflect the existing custom use cases, the first flag would be the warn (or quiet) flag for now. We can then pass these public flags around internally to modify behaviour. That may be another commit. Instead of doing only two calls (one async and one syc) as I had done in prior submissions, we'd continue the ongoing practice of a new call per functionality as Greg has suggested, however the flags would enable to *slightly* modify behaviour. So you can add a new flexible async call which accepts the public flags argument. So new functionality per API but slight modifications are expressed via the new public flags. If you're up to try all all these changes please feel free to do so, I just expect more possible bikeshedding on it so don't expect this to go in right away. Luis