Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp7106290imm; Wed, 27 Jun 2018 20:29:27 -0700 (PDT) X-Google-Smtp-Source: AAOMgpdH2lUSw/FriGg2euL8Gn2WcdHJ045hKQCGZH2NsxFjtV9U9ShItN4ugSzSh5+302U12O6C X-Received: by 2002:a62:8d5:: with SMTP id 82-v6mr8499359pfi.154.1530156567351; Wed, 27 Jun 2018 20:29:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530156567; cv=none; d=google.com; s=arc-20160816; b=tEfhGBLWQIjzZ/Ir/e/oEzwXrqkChaBrk+bXU2Ey2xPd4LgtDoXI1hDJKvjF75ep0e 0WYhahSo8Nn8Qax0h8/iokO53TRbE4T+nc/3bUxDYH2SuAoZZAUxC71uOha4rlKkoHAj JUJgMbPAQhL4AwhaDdE4eHev/D+zad5U+AfcCyaO37fZ071wBxOKHfCzuWTREsZEuFqw Y3fAPQBxLdqP9ihEqAULuVBVjRVCQS8ju3TMgQ/7MbT5Ppu0gnm65khpk8hsKpMOR6kI ScNBIZzj7whgQJSDbZ7TviPNdEn0S2w6ARRJ4RTBTCwZ7wmH1RAo3y6vErytcnD6ij8M pRTg== 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=GLoE3RMCPEviHkYrgsWWLRmlNroX5ehQ7001BY56hb4=; b=rFHik95FtA8NxQkEIE7/hF/dxP8sAF42gft3ToD2h8nS0EHCMR1MgWwM7tyD66+382 f2/ab9ghLbBmOCNXddQ6KJ1DwQzScwV5Gb/VYtYmJaCWTyPMoFB7QuBLxXNb+2b/UFYW 1RNY+ZUrEbDv4Kppsgq3zWhdXsKa3fr1YddwsKlpkX+UEOG8Q8A0VPF3WKi5q8yktmFL 8APLRpm6QCgXdRKAa5cpt5weyrkxqM4qHyYFVltg12MVc/RJkSf7HuSMni3L4n3Be4+k Gi+Kb4Q/hyV2Gej6tYuc9ccjKqoJ2B2iV0H/KcOf26QhHrcqF3/5EGx5pdCH9PltdI55 iNRg== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b1-v6si5779254pld.323.2018.06.27.20.29.13; Wed, 27 Jun 2018 20:29:27 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932837AbeF1DNg (ORCPT + 99 others); Wed, 27 Jun 2018 23:13:36 -0400 Received: from mx2.suse.de ([195.135.220.15]:58288 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753060AbeF1DNe (ORCPT ); Wed, 27 Jun 2018 23:13:34 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (charybdis-ext-too.suse.de [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 31F05ACA8; Thu, 28 Jun 2018 03:13:33 +0000 (UTC) Date: Thu, 28 Jun 2018 05:13:32 +0200 From: "Luis R. Rodriguez" To: Sebastian Reichel , Kees Cook , Hans de Goede , andresx7@gmail.com, torvalds@linux-foundation.org Cc: "Luis R. Rodriguez" , Greg Kroah-Hartman , Dan Williams , Vinod Koul , dmaengine@vger.kernel.org, linux-kernel@vger.kernel.org, =?utf-8?B?UmFmYcWCIE1pxYJlY2tp?= Subject: Re: [PATCH 0/2] Avoid firmware warning in imx-sdma Message-ID: <20180628031332.GE21242@wotan.suse.de> References: <20180622144951.17464-1-sebastian.reichel@collabora.co.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180622144951.17464-1-sebastian.reichel@collabora.co.uk> 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 Fri, Jun 22, 2018 at 04:49:49PM +0200, Sebastian Reichel wrote: > Subject: Avoid firmware warning in imx-sdma > > Hi, > > I grabbed the first patch from patchwork from an 2017 patch series. As far as I > could see, their usecase vanished due to switching to sync FW API (that already > supports NOWARN). This series fixes a kernel warning in imx-sdma driver, which > works fine with ROM firmware (and already prints an info message about ROM > firmware being used due to missing firmware file). This has been tested on > arch/arm/boot/dts/imx53-ppd.dts. Please read these threads about the state of affairs with respect to data driven Vs functional API evolution on the firmware API [0] and my latests recommendation for what to do for the async firmware API [1]. Then, recently I've come to realize that perhaps the best thing actually is to *break* the cycle for the async API and make it more functional driven. For instance the call to not use the uevent should be made a separate call as only two drivers use it: o CONFIG_LEDS_LP55XX_COMMON o CONFIG_DELL_RBU Using a struct would make it data driven. A flags approach would make it more flexible and I although I think this is reasonable, if we wanted to match the sync API, we'd have one call per variation. It is therefore subjective whether or not to keep a flags based mechanism for the async API or not. If we at least use flags, we'd just break away from the sync approach. I'll let Kees and Greg pick and choose how they would prefer to see this broken down now as I am off on vacation today and won't be back until the middle of next month. [0] https://lkml.kernel.org/r/20180421173650.GW14440@wotan.suse.de [1] https://lkml.kernel.org/r/20180422202609.GX14440@wotan.suse.de Luis