Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp616911ybp; Wed, 9 Oct 2019 01:15:12 -0700 (PDT) X-Google-Smtp-Source: APXvYqxFg/YGyQIQF2MShkx8NzAn8ikMlX1JyhrlnhiVVA3v8djZMehIAREG+c6zHRULJ2sJGq7j X-Received: by 2002:a17:906:8488:: with SMTP id m8mr1580062ejx.15.1570608912875; Wed, 09 Oct 2019 01:15:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570608912; cv=none; d=google.com; s=arc-20160816; b=o2J7NiTUcOsJlM8ApK7aGH1j7ZY2AG0f2agAxZWZornWYXCx5Mpt0Na8p0LWzqs1Mp EoyLNfQckOroVqSJC81KvBzBHEzlX9lh8wWTVzv6z2Km/uskRlg2rHvDS3C40K8IfvRO Wk+tA5KnJBBHzx/Pm/Xzh1/s6QPd8SG6rTV7WW4D4jQtHL/o4iV5COfK3vVy832AItjH w2fEbGE74hM2SXXk7ZycVLHXtpukYyKDVSFOJRODB2PjL4A2drVuiho8J7LUk6DheX8X FGAMPRDlBshrpXD1AfFwRtyFZPiYyzwtg5F4wnEogaxC6UAFzhP2WH4lsgHey+uFIqRf dVlg== 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:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=11B75nSfpkiHSUA7kLDSZM9qo28NOGIlqXnAmtJunQI=; b=M1jKx71NtGZAKRQt+xEbF9h+QwfByHWBLhM1gmhll4SWujM9YaZ6ekLCnU6ylHg+1K QDdhnt0WiedRpzAO4I+EzY81MDWXwMfaxtffSzGifJuCFoCRS4x/C7zgw6sfiiUecLrS wocclVToywneKuf2eF0nXNpqDXY9LJzsTMTrWZZY2CPIYkCbmHqti3fu89+orh5ma8rP s9pSdvl30ZyrG0bVIs+knqOOxsE1XM6Twjg9QheJiKaxoZD5wLN4BfFmZcOGjWzIMVHw uai1QkxdkcPtIJQshrVLHUST2EduJalRiwDmRLcSYri+es901iAHdaX5I234n6i/9gdN enMQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="hyC/2ZbD"; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d58si865134eda.62.2019.10.09.01.14.47; Wed, 09 Oct 2019 01:15:12 -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=@gmail.com header.s=20161025 header.b="hyC/2ZbD"; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727035AbfJIIMd (ORCPT + 99 others); Wed, 9 Oct 2019 04:12:33 -0400 Received: from mail-pg1-f196.google.com ([209.85.215.196]:43431 "EHLO mail-pg1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725903AbfJIIMc (ORCPT ); Wed, 9 Oct 2019 04:12:32 -0400 Received: by mail-pg1-f196.google.com with SMTP id i32so899547pgl.10; Wed, 09 Oct 2019 01:12:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=11B75nSfpkiHSUA7kLDSZM9qo28NOGIlqXnAmtJunQI=; b=hyC/2ZbDrDifzE37Wh14howiTcK3yRDDklHrqOsMBCUi4Gvz1fB5e1Qwg3mtSMqQb+ ppKRaWCX2rOxI1qTJS0E49VuBxXP+2a4C2C86eBs993/2vt4lx1z20KvNcAEtBpMBv9H kDn36XlhsBDUA7szlV6MEMpKQVHx00bwVge8g6GssHCoVD6dVSxuSEa4e+sC/SyKsD/+ QlL17FjMFZxgnCooLGAlZYjmZGXMOHvGOaEzQpekTRM2MdThx3/u3lVMY9nT9arxBRS1 wWEsb6cL4u8RP2adDMpuxOHAQgF2jkv/sL3vO1qaE74ef8zOsotQXsDir8QYobskJ9UE dwMQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=11B75nSfpkiHSUA7kLDSZM9qo28NOGIlqXnAmtJunQI=; b=aGe1SpmByjFt77ZMz1zgIaoFosL8VU7en8HbiU/z+VfIcoAsxOBLZjMkNbNzKAYkJk COZjrghm3AIGO0oLTMfub9zi5W9ogiqAXSzCJVM0Zs0EFD9ovzkuT6HWNASRe7PfsYPJ 4SmqmFu/0VxPMvEyTNT4i96ZyJv3KqoirkoJcL2M2eHHju9Xzt7VvSGxH0l8NpmBlScV mCGHg6c6QbmQa7Dn7PxuXKuawdtGznNyGf2miKY5eD+DMpTtlnJrFVCjV5nf5C456k6g 7fHybInTCkw3fUUKofUcSR10cLxF+lifCqwz22fYPkAeGSm6vk21tASqVsxc++F9oEdk Y0jw== X-Gm-Message-State: APjAAAXhZO+YJY76lZpUI4s/7RRtINxDILISr52i3B+iEhpptTcfk77d N15YkRvmffVmGhEjCG4wXZQx6whGxCCzh7w2hnI= X-Received: by 2002:a65:5a08:: with SMTP id y8mr2996887pgs.4.1570608751808; Wed, 09 Oct 2019 01:12:31 -0700 (PDT) MIME-Version: 1.0 References: <1570601911-9162-1-git-send-email-Anson.Huang@nxp.com> <20191009065315.wgdvmkv6skteyul4@pengutronix.de> In-Reply-To: <20191009065315.wgdvmkv6skteyul4@pengutronix.de> From: Andy Shevchenko Date: Wed, 9 Oct 2019 11:12:20 +0300 Message-ID: Subject: Re: [PATCH] tty: serial: imx: Only get second/third IRQ when there is more than one IRQ To: =?UTF-8?Q?Uwe_Kleine=2DK=C3=B6nig?= 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" Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Oct 9, 2019 at 9:53 AM Uwe Kleine-K=C3=B6nig 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. --=20 With Best Regards, Andy Shevchenko