Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp5398937ybx; Sun, 10 Nov 2019 12:24:38 -0800 (PST) X-Google-Smtp-Source: APXvYqzyevtvN/sctNb/fLOyqJXCFaNuXsi4Rh4z0L0KFt9S1H8hlKgdd2v8GA036rSmVgPXqzG/ X-Received: by 2002:a17:906:4d58:: with SMTP id b24mr19235529ejv.277.1573417478374; Sun, 10 Nov 2019 12:24:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573417478; cv=none; d=google.com; s=arc-20160816; b=zaJpZ5RQEvCFl4/F4F37CmxwEmLQBGKkmce9lwh1K9F1LR5iE7oLNr15koRidqmAqY /eIZDsBAvb0KBRkhNu2UzLnletoZrsL7g371ngB1aSe2Qy0cG7dTLth/7UqTZ5XT2U+0 aV0NBREKhWO/ERS8x8zcds9e8FMnXtDjrZfyNjFlu3hNg/nFSWQGx24+0RnGjeW4feFZ dbDmoEeHjo3ArStTapS9pC+REKMSpgfdlvFJLj21sHi+4S62/Xj+Xc/m0tx11Dew/5It 0ZZpLn3pJVFdb5JZ+8IiwwYeKgTkyZzXq8cXae5NpqKzGbehvfuDsrga/X4X+HJ7OpWF fpBQ== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:autocrypt:from:references:cc:to:subject:dkim-signature; bh=Jg0ky2iRvbPWB2jD5swuaQZV83rOO1qppabnhyJNYlE=; b=dHOja+VwrbL69DNGwcDwSetRBOG9BmKELBKFC6fj9Ya7uXWeC2cF+CtDq2O6iPLYSp 0yLiLdys9Q5cUhrqJ4RaQIKH95NVtPIPrFlivFHOaprOP6G+pQ6l9wpiVqq0tB5skQ2a 4SA9zsUOy/b9UZIUek4oOZfGxyGEOHip73r1cg7XB18RaFPrvhDdEO6oejqJOAsH3EJc mVvA8sxbQmF52Zbyp9uSOFEVmbSvL+ORRDUgu/tmF0k7ALloccDCqg0AAmHsplu+tmHn MArfGQl8+gE2af59yGvuNsEsocB4r7RUslTHd5jRNMbPx6EjTQCh5Yy7IiaOoPnUi97g 0pCA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=TbXE0jNK; 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 m33si9562051edc.126.2019.11.10.12.24.14; Sun, 10 Nov 2019 12:24:38 -0800 (PST) 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=TbXE0jNK; 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 S1726995AbfKJUXa (ORCPT + 99 others); Sun, 10 Nov 2019 15:23:30 -0500 Received: from mail-wm1-f65.google.com ([209.85.128.65]:38400 "EHLO mail-wm1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726800AbfKJUX3 (ORCPT ); Sun, 10 Nov 2019 15:23:29 -0500 Received: by mail-wm1-f65.google.com with SMTP id z19so11191572wmk.3; Sun, 10 Nov 2019 12:23:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:autocrypt:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=Jg0ky2iRvbPWB2jD5swuaQZV83rOO1qppabnhyJNYlE=; b=TbXE0jNKdTIxtedDxj3crBUpdRvfpWoAceDICQyUGLe3Y2Fy1eQaUH9kxIjsnzFeU8 34mEv0wn4XbUm3vbmAKzvUDJw+YVpWsWHxtaUjtQeW8iodCSXo1PtJY8dRfBosrz1mfB M1831IJe1yregFzFOBkEyqyGdNojM03upWxiePZNoLOh6rSHKrNKViu5lmDvAzJafVgi E/b5ukDe4h/M9leKjNfa78BqJox5Nr+Bt35NQ1wy5FY39d5ldK2rOjpWO/2wGkjGaV8b FSjSxZ0FGIUvgTAaxtEU+wpEdnHDqO/My2lcNxItuYGRQHpGl9Jh0bMwcxMMNJsv6Ijv S9Fg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:autocrypt :message-id:date:user-agent:mime-version:in-reply-to :content-language:content-transfer-encoding; bh=Jg0ky2iRvbPWB2jD5swuaQZV83rOO1qppabnhyJNYlE=; b=icEQWBVvgFXkTSg9xvPp8Mpk2Pdt+MfockqZazsva9SpXRJESitAu3juvwfSxUT3Zy 9WcVi4y7V9/96HKf4o6F9mu7KQgQgOFA012X/lVlJPb+c7rCZysTkb3UsPIh4TtVgtdS PPNAJ+RVtNdhExNLg8XzXCmvssyWzPtvBey/kUynMNAPZHFXTgANT33plcZX3+c1GPmj UF6hS0zHLatY9DVOx7QPtP5EJxDNx8dqrorrfHYZDvwLud3CC+uMGNwJRJJs9itvxrqE AK/G884AtrL2RKrb/vRMkQSxWJo1jPuT06LT5pSNmB2p/O+tgEFO5RN7g4p5x07d908P 1C4A== X-Gm-Message-State: APjAAAWqpweg9SpiLGGfdikdyeR92kXkpNQ2Bg7vcEnypoo9l/23oXZw EbFsEFX31EEmmt9iRSVPM3cgn2hOaLE= X-Received: by 2002:a1c:5fc4:: with SMTP id t187mr18437872wmb.142.1573417406188; Sun, 10 Nov 2019 12:23:26 -0800 (PST) Received: from ziggy.stardust ([95.169.226.39]) by smtp.gmail.com with ESMTPSA id f13sm12738958wrq.96.2019.11.10.12.23.24 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 10 Nov 2019 12:23:25 -0800 (PST) Subject: Re: [PATCH] serial: 8250-mtk: Use platform_get_irq_optional() for optional irq To: Frank Wunderlich , linux-mediatek@lists.infradead.org Cc: Greg Kroah-Hartman , linux-serial@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org References: <20191027062117.20389-1-frank-w@public-files.de> From: Matthias Brugger Autocrypt: addr=matthias.bgg@gmail.com; prefer-encrypt=mutual; keydata= mQINBFP1zgUBEAC21D6hk7//0kOmsUrE3eZ55kjc9DmFPKIz6l4NggqwQjBNRHIMh04BbCMY fL3eT7ZsYV5nur7zctmJ+vbszoOASXUpfq8M+S5hU2w7sBaVk5rpH9yW8CUWz2+ZpQXPJcFa OhLZuSKB1F5JcvLbETRjNzNU7B3TdS2+zkgQQdEyt7Ij2HXGLJ2w+yG2GuR9/iyCJRf10Okq gTh//XESJZ8S6KlOWbLXRE+yfkKDXQx2Jr1XuVvM3zPqH5FMg8reRVFsQ+vI0b+OlyekT/Xe 0Hwvqkev95GG6x7yseJwI+2ydDH6M5O7fPKFW5mzAdDE2g/K9B4e2tYK6/rA7Fq4cqiAw1+u EgO44+eFgv082xtBez5WNkGn18vtw0LW3ESmKh19u6kEGoi0WZwslCNaGFrS4M7OH+aOJeqK fx5dIv2CEbxc6xnHY7dwkcHikTA4QdbdFeUSuj4YhIZ+0QlDVtS1QEXyvZbZky7ur9rHkZvP ZqlUsLJ2nOqsmahMTIQ8Mgx9SLEShWqD4kOF4zNfPJsgEMB49KbS2o9jxbGB+JKupjNddfxZ HlH1KF8QwCMZEYaTNogrVazuEJzx6JdRpR3sFda/0x5qjTadwIW6Cl9tkqe2h391dOGX1eOA 1ntn9O/39KqSrWNGvm+1raHK+Ev1yPtn0Wxn+0oy1tl67TxUjQARAQABtClNYXR0aGlh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mlI FZ6fsEKIAN5hxlbNvNb9V2Zo5bFZjPWPFTxOteM0omUAS+QopwU0yPLLGJVf2iCmItHcUXI+ r2JwH1CJjrHWeQEI2ucSKsNa8FllDmG/fQ== Message-ID: <1e18621e-fa29-eae8-8720-45d6f75caf7c@gmail.com> Date: Sun, 10 Nov 2019 21:23:24 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.1.1 MIME-Version: 1.0 In-Reply-To: <20191027062117.20389-1-frank-w@public-files.de> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 27/10/2019 07:21, Frank Wunderlich wrote: > As platform_get_irq() now prints an error when the interrupt does not > exist, this warnings are printed on bananapi-r2: > > [ 4.935780] mt6577-uart 11004000.serial: IRQ index 1 not found > [ 4.962589] 11002000.serial: ttyS1 at MMIO 0x11002000 (irq = 202, base_baud = 1625000) is a ST16650V2 > [ 4.972127] mt6577-uart 11002000.serial: IRQ index 1 not found > [ 4.998927] 11003000.serial: ttyS2 at MMIO 0x11003000 (irq = 203, base_baud = 1625000) is a ST16650V2 > [ 5.008474] mt6577-uart 11003000.serial: IRQ index 1 not found > > Fix this by calling platform_get_irq_optional() instead. > > now it looks like this: > > [ 4.872751] Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled > > Fixes: 7723f4c5ecdb8d83 ("driver core: platform: Add an error message to platform_get_irq*()") > > Signed-off-by: Frank Wunderlich Reviewed-by: Matthias Brugger > --- > changes since v1: > https://patchwork.kernel.org/patch/11213813/ > change from platform_irq_count to platform_get_irq_optional > --- > drivers/tty/serial/8250/8250_mtk.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/tty/serial/8250/8250_mtk.c b/drivers/tty/serial/8250/8250_mtk.c > index b411ba4eb5e9..4d067f515f74 100644 > --- a/drivers/tty/serial/8250/8250_mtk.c > +++ b/drivers/tty/serial/8250/8250_mtk.c > @@ -544,7 +544,7 @@ static int mtk8250_probe(struct platform_device *pdev) > pm_runtime_set_active(&pdev->dev); > pm_runtime_enable(&pdev->dev); > > - data->rx_wakeup_irq = platform_get_irq(pdev, 1); > + data->rx_wakeup_irq = platform_get_irq_optional(pdev, 1); > > return 0; > } >