From patchwork Tue Oct 27 17:39:40 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Daniel_Gonz=C3=A1lez_Cabanelas?= X-Patchwork-Id: 1388829 X-Patchwork-Delegate: ynezz@true.cz Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.openwrt.org (client-ip=2001:8b0:10b:1231::1; helo=merlin.infradead.org; envelope-from=openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; secure) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=merlin.20170209 header.b=oxTE4RBd; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20161025 header.b=SpTRnM3T; dkim-atps=neutral Received: from merlin.infradead.org (merlin.infradead.org [IPv6:2001:8b0:10b:1231::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4CLJvF6qJbz9s0b for ; Wed, 28 Oct 2020 04:42:48 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:List-Subscribe:List-Help:List-Post:List-Archive:List-Unsubscribe :List-Id:MIME-Version:Message-ID:Date:Subject:To:From:Reply-To:Cc:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Owner; bh=q0MKkiKB6ATAw/f3VwbqhhbURgJ20jhekYdXC55LnmU=; b=oxTE4RBd4WyRkdUi7TgiAaPris lcGJCEMOh4mX+UESKe6nHCvVez7Hxxo18ultNrrxcbL3PRe5qRrUqf1MhS0orY4lJbECTm43SsCCe n1qegGVT96oOk7RhcZnQpdJNpehioSs2GzzWeRcP7CXaVqQMJ+V3cStm9up4kSOc6jwxxq9e3BY0o PS2b14+nyAkrflAUNr6YcJlXEnEnF+bnjHeAkPdZ4zd9MiOk7uFXxRD/iMkFqQ1Hm5Px/OIrci4dv x++zWvkM52nRLM816q+D2FAATUYk1wZZGvPeTuvCbqogYaEg9a5CJvwnSriOOefo4Z2SihzsubBDd c8d0cTaQ==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kXSxU-0001g8-9T; Tue, 27 Oct 2020 17:40:32 +0000 Received: from mail-wm1-x344.google.com ([2a00:1450:4864:20::344]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kXSxR-0001f3-Fh for openwrt-devel@lists.openwrt.org; Tue, 27 Oct 2020 17:40:30 +0000 Received: by mail-wm1-x344.google.com with SMTP id d3so2321902wma.4 for ; Tue, 27 Oct 2020 10:40:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=Vhu29tVdPLJOWgIRgISnUIWIoKNVhWkGdEwAO38rpJY=; b=SpTRnM3T/AaEDHWl33lKn8LgIcLux+7NqpfrHo8bFJv7YLca8gCdTkBEoHnD2c+a6m 75zCFKoBnByMsDztZzt7SD6WLnttL9PiZI5JhFmYKWk6o9O/pBnKbNBRAFw0qVPFaKq0 4e97Zir/0ZAiu8jCYDKIu2F0utVjjlZkuqnspbT8mnE69GAVoXkOSdyJIa/uyY4RJpkt /vCZvUZcV4w692f3g7Q6E6p3+XYgGb4dWeyt8bwTADbPWH/yWZDQI6YOjyLsleQ7YzXB bkQKFkf32DlgK9TS+93pajDPO2935yS/HpN64Khf8hPSQrzElNg7ZUhc+2G0HapTl+9+ BX6g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=Vhu29tVdPLJOWgIRgISnUIWIoKNVhWkGdEwAO38rpJY=; b=eAw6dzTN0DEBt8qPLtQWkkvKtu38JnquLpFJdDYkFmjI1+09Lj+mHaw0tEnxTDuuH9 8YZYbmH6yY2CqQ5NSbUP450g6500quE8JJxS8ee1Sgw+X5iLTExT9CgbLjWWBEYIeRD9 fJ790pFW+cKRhnRp+nMSGzf0Mkuppl0BD9vCc2hNa8e9SYtsrM/Ac+JO8ct8DHGNzbd2 0t0r42v8aFDmDGWh77WsFOzg/2eeA36wgRk4TiWB4xsPqgD+PfwRGn4FC4OpeAd6nlSZ Tlg814XopYfTjIe7pObnF7XjRlxonBKXOEbsIXktHQa3JibFr2aVAWzl87lFvMSA6olX wF4Q== X-Gm-Message-State: AOAM530ZmNkn/qGsjtqF9jjAxJws8oTp+kwOYtEjjO6e20O7pJy4GQJo +6jDBVDlfv6zl426l/p1vvBF9UPSqgo= X-Google-Smtp-Source: ABdhPJzREXX1sr0FJHkHE/+5haDGCos5dfq3R29OeTDK1NFEd2hEt6tnkQt0BrM+QnHgq2zpkwj/Aw== X-Received: by 2002:a7b:c350:: with SMTP id l16mr4017401wmj.135.1603820426697; Tue, 27 Oct 2020 10:40:26 -0700 (PDT) Received: from tool.localnet ([213.177.199.100]) by smtp.gmail.com with ESMTPSA id 130sm2738961wmd.18.2020.10.27.10.40.25 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 27 Oct 2020 10:40:25 -0700 (PDT) From: Daniel =?iso-8859-1?q?Gonz=E1lez?= Cabanelas To: openwrt-devel@lists.openwrt.org Subject: [PATCH] mvebu: gpio-mvebu IRQ index error kernel backport Date: Tue, 27 Oct 2020 18:39:40 +0100 Message-ID: <2166673.ZEYSXjvfhm@tool> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20201027_134029_539831_F36F885B X-CRM114-Status: GOOD ( 16.17 ) X-Spam-Score: -0.2 (/) X-Spam-Report: SpamAssassin version 3.4.4 on merlin.infradead.org summary: Content analysis details: (-0.2 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2a00:1450:4864:20:0:0:0:344 listed in] [list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider [dgcbueu[at]gmail.com] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain X-BeenThere: openwrt-devel@lists.openwrt.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: OpenWrt Development List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "openwrt-devel" Errors-To: openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org Backport the upstream kernel fix 525b0858ff to get rid of the kernel messages: mvebu-gpio xxxxxx.gpio: IRQ index 3 not found Signed-off-by: Daniel González Cabanelas --- ...avoid_error_message_for_optional_IRQ.patch | 33 +++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 target/linux/mvebu/patches-5.4/007-gpio-mvebu-avoid_error_message_for_optional_IRQ.patch diff --git a/target/linux/mvebu/patches-5.4/007-gpio-mvebu-avoid_error_message_for_optional_IRQ.patch b/target/linux/mvebu/patches-5.4/007-gpio-mvebu-avoid_error_message_for_optional_IRQ.patch new file mode 100644 index 0000000..8ef2897 --- /dev/null +++ b/target/linux/mvebu/patches-5.4/007-gpio-mvebu-avoid_error_message_for_optional_IRQ.patch @@ -0,0 +1,33 @@ +From 525b0858ff2fdb78defec2d4d6d63baaa423d5fd Mon Sep 17 00:00:00 2001 +From: Chris Packham +Date: Fri, 13 Mar 2020 16:42:44 +1300 +Subject: [PATCH] gpio: mvebu: avoid error message for optional IRQ + +platform_get_irq() will generate an error message if the requested irq +is not present + + mvebu-gpio f1010140.gpio: IRQ index 3 not found + +use platform_get_irq_optional() to avoid the error message being +generated. + +Signed-off-by: Chris Packham +Acked-by: Uwe Kleine-König +Signed-off-by: Bartosz Golaszewski +--- + drivers/gpio/gpio-mvebu.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/drivers/gpio/gpio-mvebu.c b/drivers/gpio/gpio-mvebu.c +index d2b999c7987f1..3c9f4fb3d5a28 100644 +--- a/drivers/gpio/gpio-mvebu.c ++++ b/drivers/gpio/gpio-mvebu.c +@@ -1245,7 +1245,7 @@ static int mvebu_gpio_probe(struct platform_device *pdev) + * pins. + */ + for (i = 0; i < 4; i++) { +- int irq = platform_get_irq(pdev, i); ++ int irq = platform_get_irq_optional(pdev, i); + + if (irq < 0) + continue;