Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp114487ybp; Thu, 3 Oct 2019 10:59:09 -0700 (PDT) X-Google-Smtp-Source: APXvYqyhK2hwNgkYShgY0boG1dezJGH0Ve1yA/mHjCKUwdTA/uI39pYjagnS/FGB/e/4c7MbY+gE X-Received: by 2002:a17:906:27cf:: with SMTP id k15mr8793787ejc.150.1570125549595; Thu, 03 Oct 2019 10:59:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570125549; cv=none; d=google.com; s=arc-20160816; b=erBX4ym+dbAQxZilGAsZZ2KwPo3RP3ZQZI1+w3+5x6Qi/xO1pWZZg5JvBB9DSxgbkz 8WaHEyokL+H6pAwvrtVoomkgcl6gu9IQ0ckynfJ9eI+S9Ghg4YJuBQlax4vmt3wfEf9J D6K4YXuA4TMeLLEZR5kUuFMQfbyhMLV41DbIexZHmO03Mg68frZ0QvyW2k80pjVpK5LI 62BK1Hmk420QqOe86x2TfPYm17ZqT5FzecEETIHG4Uaj+ztaw0HWv3hbqTrQ5XEoS3Sr CKjzP+1E3RC0+onacMc5gDrp/+EpxhBT3Yfap6IPrfI9K2lpOQqZGVrMxvRXHOu3wwlj GXCQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:date:user-agent:subject:cc:to:from :references:in-reply-to:content-transfer-encoding:mime-version :message-id:dkim-signature; bh=v9Xix4ukYpxBHBe1n3DXedqcwTHB0Vaz/YT0zLakIIo=; b=DBqW6koR2JveruZQ8MWECDTfNY99P9+7/3GQ4tfdy6yabnhDqBGay3jIkyMuRpmW2/ uTD6EZKfaPNe489UIFEerIJok3Orw8Hil6BsPOHK3p4letMoZfTlrXAXKcEHrs3z7Z/x ArPjNnZFcA+lk7vOsd0S4kBtldkTVYvv46HfICIEH13YUDwhCk139Vk+TWU0VUpMpeF0 7OhFlx5fVB68jnCKmlHMYGQT3oLRb0wEXUmJT+qeBAOEV0gYM73sDxj22amD71L0AkNM nT9WowYBg8cs6fxnpRaMV/M4zFcNSnLi9I2P1vKnVAruTWirCFiT2mc9EEs5Jj5AhNy6 SgTw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=EvjKgRek; 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=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f15si1950806edm.414.2019.10.03.10.58.44; Thu, 03 Oct 2019 10:59:09 -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=@chromium.org header.s=google header.b=EvjKgRek; 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=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387622AbfJCQKX (ORCPT + 99 others); Thu, 3 Oct 2019 12:10:23 -0400 Received: from mail-pl1-f193.google.com ([209.85.214.193]:33808 "EHLO mail-pl1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387601AbfJCQKT (ORCPT ); Thu, 3 Oct 2019 12:10:19 -0400 Received: by mail-pl1-f193.google.com with SMTP id k7so1752572pll.1 for ; Thu, 03 Oct 2019 09:10:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=message-id:mime-version:content-transfer-encoding:in-reply-to :references:from:to:cc:subject:user-agent:date; bh=v9Xix4ukYpxBHBe1n3DXedqcwTHB0Vaz/YT0zLakIIo=; b=EvjKgRekrDRXydliKainNvs1EDKpTaQC9hbAsmM3L4SgVhnCamPwwGeWgzLCmD/6ZN YJihKrj4Aua03JcGiXSnnv9gCPNFzimjX/dj6do1v8Tarr4QDToU5Y7qaBlDo7r0dOjB 7MqZGdDBTEaz9H1tW70rmHCyl63UhJarLzgIk= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:mime-version :content-transfer-encoding:in-reply-to:references:from:to:cc:subject :user-agent:date; bh=v9Xix4ukYpxBHBe1n3DXedqcwTHB0Vaz/YT0zLakIIo=; b=CPELijN4UdoJQOBVp46+sZe/+On1Tce9Twss9HSO1zD7n03OJRBM/0xvz3AtP+TX3Z bQlJ5JR451e+7AgXOdTudOB26N8j2FToeZ/S+czUUScPObn3oSXGi4CXKDu902fBTqc/ tx7SZzOOUKHvknVI+JvvYz5/ToP/aDQ81PRKowdYy/zIECL+JiIy6gmcz4IeE4LotkV9 kkyWhBq0P9tU/HMyXrFOBy9FsbcacXWY8SOJenqehnf5ODl39q+J/kBQTIjtW0Aac/Tn 5D9kYsc0ACkrGM7s6I19+qRNltSjuhZr1vQeGSbdOuZC9pL+CTNkgvXIx4lU4vwwKivf pIQA== X-Gm-Message-State: APjAAAWZQEplBN1jivHmKQLGAGtNmJh19Nmx1LVdJGuBQGa7BdmCgpeV Ng2J7fbzux3OgeSsZwYZnWpBpw== X-Received: by 2002:a17:902:ba82:: with SMTP id k2mr9926433pls.293.1570119017817; Thu, 03 Oct 2019 09:10:17 -0700 (PDT) Received: from chromium.org ([2620:15c:202:1:fa53:7765:582b:82b9]) by smtp.gmail.com with ESMTPSA id b69sm3516011pfb.132.2019.10.03.09.10.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 03 Oct 2019 09:10:17 -0700 (PDT) Message-ID: <5d961d69.1c69fb81.43b1b.addf@mx.google.com> Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable In-Reply-To: <20191001180743.1041-1-geert+renesas@glider.be> References: <20191001180743.1041-1-geert+renesas@glider.be> From: Stephen Boyd To: Geert Uytterhoeven , Greg Kroah-Hartman , Jiri Slaby Cc: linux-renesas-soc@vger.kernel.org, linux-serial@vger.kernel.org, linux-kernel@vger.kernel.org, Geert Uytterhoeven Subject: Re: [PATCH] serial: sh-sci: Use platform_get_irq_optional() for optional interrupts User-Agent: alot/0.8.1 Date: Thu, 03 Oct 2019 09:10:16 -0700 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Quoting Geert Uytterhoeven (2019-10-01 11:07:43) > As platform_get_irq() now prints an error when the interrupt does not > exist, scary warnings may be printed for optional interrupts: >=20 > sh-sci e6550000.serial: IRQ index 1 not found > sh-sci e6550000.serial: IRQ index 2 not found > sh-sci e6550000.serial: IRQ index 3 not found > sh-sci e6550000.serial: IRQ index 4 not found > sh-sci e6550000.serial: IRQ index 5 not found >=20 > Fix this by calling platform_get_irq_optional() instead for all but the > first interrupts, which are optional. >=20 > Fixes: 7723f4c5ecdb8d83 ("driver core: platform: Add an error message to = platform_get_irq*()") > Signed-off-by: Geert Uytterhoeven > --- Reviewed-by: Stephen Boyd