Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp680338ybp; Wed, 9 Oct 2019 02:30:52 -0700 (PDT) X-Google-Smtp-Source: APXvYqw8yFqJtB1tdCQtBxmlzna9G/f1uUDMtKwUpp1rXHPT+DNS8EnghCz1bP3ctiyAfBkYdiXr X-Received: by 2002:aa7:d884:: with SMTP id u4mr1930236edq.207.1570613452514; Wed, 09 Oct 2019 02:30:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570613452; cv=none; d=google.com; s=arc-20160816; b=aG8PZyr0DmGrjLyodvbBsUxTBjzbhc2cvCCgW1vC4N/r2XKnRpR335KQ2Yuvt7Q33B UzJq76bw+nxrfu7afUwpZDJ4zsMSmnMjPmle1BLE2N8Hy2tF2iCb4w8M+YQRuMjnm2G+ MqGgCM3LOPAYM8AJB8ew0PU242pOfJJNHhVenfLc09NyEDkQhXzMcTrpjpYhKC+bWhHR Cu/ZMzN2Xqu56Jot+XGxu5Pdfl9b/OaJ0O4ijsOAQppMe/t+2crJWaHN+SptmEiVaRoT F7JrNvHI2ok9T85AH4LJKtRKhY5WXsL9uGZl6Cu1X1hbHf7KHftmUTD3HOGaMnOpYYsU tPpg== 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=0afvuZCqtYbvvG2Ae69074/OE2PFLLIe27Jew65/Uas=; b=CKFYDv+EdKs2ec0nJm16+OhRqibHvo/yfarUG+aifx7HdBydGhERzy10cRVDE8VCfq 0jvk+RAllcusj25POjghBX0TuVjpWLZusUWCHOmQN8EQvenIs+p4JeT1SI6a0AR/Mn77 dbnTz6FbfkWdVTYCwcFfOa/kezqgVETi15uZE6mFjSdWuQdPMdwiDkYIWXnAQpknFUi8 8oVzL+9fOuuHIYPXVOxgSUZmbEwQbYQDi9VPo5UUeHTsf/gS/KEi/4Tu+jfUBqWQ7Igv wJdUFgVXn41huhp9jjpukvle+kq8QiSkAIV9gfHp8TMVaH+XNJGg3RTKrWAmCK56+EZp zbAA== 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 d10si830119edk.115.2019.10.09.02.30.28; Wed, 09 Oct 2019 02:30:52 -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 S1730383AbfJIJaH (ORCPT + 99 others); Wed, 9 Oct 2019 05:30:07 -0400 Received: from metis.ext.pengutronix.de ([85.220.165.71]:55575 "EHLO metis.ext.pengutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725914AbfJIJaH (ORCPT ); Wed, 9 Oct 2019 05:30:07 -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 1iI8IA-00039Q-DI; Wed, 09 Oct 2019 11:29:58 +0200 Received: from ukl by pty.hi.pengutronix.de with local (Exim 4.89) (envelope-from ) id 1iI8I6-0000CY-DP; Wed, 09 Oct 2019 11:29:54 +0200 Date: Wed, 9 Oct 2019 11:29:54 +0200 From: Uwe =?iso-8859-1?Q?Kleine-K=F6nig?= To: Andy Shevchenko Cc: Anson Huang , Stephen Boyd , Greg Kroah-Hartman , Jiri Slaby , Shawn Guo , Sascha Hauer , Sascha Hauer , Fabio Estevam , "open list:SERIAL DRIVERS" , linux-arm Mailing List , Linux Kernel Mailing List , dl-linux-imx , "Rafael J. Wysocki" Subject: Re: [PATCH] tty: serial: imx: Only get second/third IRQ when there is more than one IRQ Message-ID: <20191009092954.srlx5wjaqueps7nz@pengutronix.de> References: <1570601911-9162-1-git-send-email-Anson.Huang@nxp.com> <20191009065315.wgdvmkv6skteyul4@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 11:12:20AM +0300, Andy Shevchenko wrote: > On Wed, Oct 9, 2019 at 9:53 AM Uwe Kleine-K?nig > 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 > > today. Then the imx driver would just call platform_get_irq_nowarn > > without having to check the number of available irqs first. > > It's being discussed in parallel thread about > platform_get_irq_optional() which won't issue a warning. This is even already in 5.4-rc1 as 8973ea47901c81a1912bd05f1577bed9b5b52506. Best regards Uwe -- Pengutronix e.K. | Uwe Kleine-K?nig | Industrial Linux Solutions | http://www.pengutronix.de/ |