Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp588274ybp; Wed, 9 Oct 2019 00:40:39 -0700 (PDT) X-Google-Smtp-Source: APXvYqxg++0kM5WlznqcXUgGoQviqF2169YoMDNbTFmTp1GZWXplHsOD80NYElf88qNo8biMf7xw X-Received: by 2002:a17:906:670c:: with SMTP id a12mr1459296ejp.273.1570606839110; Wed, 09 Oct 2019 00:40:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570606839; cv=none; d=google.com; s=arc-20160816; b=jR9BEDLH0OozrYCMuAvvTmnzBtux84pSAGfxZa17vWUCtWYnhLYahmi0FuFdKcvf1g srqmGrn0RyE1anW9l2SB3h/zGQHgh9UCbyanY7co1xOHFu+4RNV57b/kRXCDqmVB5tq8 VyClq1Cl8pIBLxb38UuNG9nHTN93t0cReGAJ5FIRn6li4UOm8slnX4lorlJrOrhThb2z WEr/TCPNRbtopnAzZTbMmvqzd1R86k5kiZd7uJ2TBUY9azSWWhbh9h4G/byTKV3o783/ jCT3/pw/wzVVcQdZXPy7fRDy9uC51Sjzjx/O3dnuVGhVjm9UuMCB3ZhE3YBrd3ZNO7OT 1J2w== 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-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=x49x4lui6SllZy97TAdpiPf9MhPqCbemofpU8i5ZCTg=; b=HdFS6+Qx1t52NxE0ug8c3+qcC0BCABWIQ83QKVMTlD2BQz0C8I+qikU5IakQY7HDKc lUUPFsKkcNv2IOR/nrNZgXK+zfjib78m2ieXxogHhq745q6uzGRGeR9rthYLgbMx8+XJ vtjTZDaRuJyK3c2MR/PrSYHs59PqmVo+lMLlM1tXRHDrGmmHO9zL3XVv6XsuDqlU4nVy hOZp0uOGKGok4dKrrGx9gH8ExOhDWonMV2tybioekNHsbzmNqwfz3p/NOhUR5u14QnDK iVOLbcX80lE/PDZDLTXPZzayOTRZzFEAxkvLG1Opcy2U7/6piJFQo6vMRqd/i1H5FzSe nvOg== 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 gq15si697901ejb.209.2019.10.09.00.40.16; Wed, 09 Oct 2019 00:40:39 -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 S1729698AbfJIHh2 (ORCPT + 99 others); Wed, 9 Oct 2019 03:37:28 -0400 Received: from metis.ext.pengutronix.de ([85.220.165.71]:54119 "EHLO metis.ext.pengutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725440AbfJIHh2 (ORCPT ); Wed, 9 Oct 2019 03:37:28 -0400 Received: from pty.hi.pengutronix.de ([2001:67c:670:100:1d::c5]) by metis.ext.pengutronix.de with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1iI6XB-0003fs-8a; Wed, 09 Oct 2019 09:37:21 +0200 Received: from ukl by pty.hi.pengutronix.de with local (Exim 4.89) (envelope-from ) id 1iI6X7-0004RL-ER; Wed, 09 Oct 2019 09:37:17 +0200 Date: Wed, 9 Oct 2019 09:37:17 +0200 From: Uwe =?iso-8859-1?Q?Kleine-K=F6nig?= To: Anson Huang Cc: Stephen Boyd , Greg Kroah-Hartman , "jslaby@suse.com" , "shawnguo@kernel.org" , "s.hauer@pengutronix.de" , "kernel@pengutronix.de" , "festevam@gmail.com" , "linux-serial@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" , "linux-kernel@vger.kernel.org" , dl-linux-imx , "Rafael J. Wysocki" , Andy Shevchenko Subject: Re: [PATCH] tty: serial: imx: Only get second/third IRQ when there is more than one IRQ Message-ID: <20191009073717.qlr2svma5fiaf4ad@pengutronix.de> References: <1570601911-9162-1-git-send-email-Anson.Huang@nxp.com> <20191009065315.wgdvmkv6skteyul4@pengutronix.de> <20191009071403.ugd2wuac6ue5zsd6@pengutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: NeoMutt/20170113 (1.7.2) X-SA-Exim-Connect-IP: 2001:67c:670:100:1d::c5 X-SA-Exim-Mail-From: ukl@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Oct 09, 2019 at 07:24:57AM +0000, Anson Huang wrote: > > On Wed, Oct 09, 2019 at 06:58:24AM +0000, Anson Huang wrote: > > > > The patch is fine given the changed behaviour of platform_get_irq. I > > > > wonder if it is sensible to introduce a variant of platform_get_irq (say > > > > platform_get_irq_nowarn) that behaves like __platform_get_irq does t > > > > Then the imx driver would just call platform_get_irq_nowarn without > > > > having to check the number of available irqs first. > > > > > > Agreed, it would be nice if we can fix this from the API level, this > > > is to save many patches from various drivers side, let me know if > > > agreement is reached and I will do the patch. > > > > I wouldn't expect that most callers actually want an error message and so > > these need a different patch (i.e. dropping the error message by the caller). > > This type of patch is fine and the normal load when something is > > consolidated. > > > > Which other drivers do you have on your radar that don't want an error > > message if platform_get_irq() fails? > > I did NOT mean drivers don't want an error when getting irq failed, but I just > agree that introducing another API with nowarn as you mentioned upper, then > i.MX driver can call it. For now, the FEC driver also have many such error message, > we will fix later. > > So if the API with nowarn is added, then I can change the API call in some i.MX driver > instead of getting irq_count first. Do you think I should add the nowarn API and redo > this patch to call it? Having a patch (or a set of patches) is probably helpful to get forward here, yes. You have my blessing to create a suggestion. (Not that you actually need that :-) Best regards Uwe -- Pengutronix e.K. | Uwe Kleine-K?nig | Industrial Linux Solutions | http://www.pengutronix.de/ |