Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp2564432lqp; Mon, 25 Mar 2024 02:46:20 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWQdafssmzf4Hj7g8M9N7m/72DR/x8cnYBI/GGnZD0d3XnQz5HG0Jotn8gXdbqfBG3xdG7lTwO9YtaAeI6o7vTFmIleizRejH3yoxuLaw== X-Google-Smtp-Source: AGHT+IHklklpU+/xhHz4KpkTFkiNhfazIHflpO/DB80cCH+OV5LGYCHunufG2+/IMvtqhvbOb1W9 X-Received: by 2002:a05:6a21:99a2:b0:1a3:69d6:d0f8 with SMTP id ve34-20020a056a2199a200b001a369d6d0f8mr6100053pzb.12.1711359980700; Mon, 25 Mar 2024 02:46:20 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711359980; cv=pass; d=google.com; s=arc-20160816; b=Oz/w6STTvE8E4DILkIQNes/r3gUnAOcDwcIEIFHM2f+z28/7TmXFHilYhZLik33FcQ Va4YyOfeRy50oAWHgcWPRG2H7GwBe5tXHmfK4sRTlHO8uJ8u4ZVuB80vfACvXAznq4NV 17Ki96AhgH4r3qtjn8zzSyKrMAGiZdgfwvviwgkewWS9HHB1mKObuGrETCWx9RUAPqkr kf05ojBXrUDQNAyzxn66BuVg7LHNkxbqf5Ly6U43/uP7naK7YAn/AXEX4YS66fJVS0Qo wiiJrVDRCNwNYNpQkEfLlB5RIIf5m9hAyY0/C9ndZu8j9AVKWFEdhGg5YPDpKLQNAlhV P+Rw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=q2Sb4JWHgIJk0pnW1mcPLUzlR8SDc0SN8BBl5TmewcU=; fh=lBVyy5K3/sUsFdbAUW0OkijFmeXJyA5R2hVdL1t8QVU=; b=ukm8aaCamAOBErGV5IjZ+ZL43XkcZ8cH2tKP61Mi/gRr1CmLLXNUKpS3MiPJVhSFbw RsAM/9kbet0GGPD963JpsrDxbqAHiYpFvHZM8ygC13HJx+fBqpChWx5AR1CWvAow+QgX WDorUhycZeXtEVl8WSxoRe8cyoP9pjACBVRlKP1B61hj5Ezbb18XAUxNoteKy1ELiPAC Cv338Qu8Xnbys+U0rRP6UO+aT/+XGLQzX6qpxGGjl38YlYo1zNKwzV0Gnn9CKfh8IZdD zZ2dHePcDJfWWN+RWnL/Xuc1SAt4xHQXV0XQPH5oAKZ4qxkAQO9ly5TXlPmu1oAYX+Le BdIg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Kp+72O3e; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-115789-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-115789-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id u9-20020a170903124900b001e0cb4f8a41si603757plh.249.2024.03.25.02.46.20 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Mar 2024 02:46:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-115789-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Kp+72O3e; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-115789-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-115789-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 84A0CB2ADBD for ; Mon, 25 Mar 2024 09:21:32 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 42A3926207E; Mon, 25 Mar 2024 03:00:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="Kp+72O3e" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id BA5A414533C; Sun, 24 Mar 2024 23:13:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711321982; cv=none; b=Mgw51c8fRhLryon0GdFz2/DpoIhEGKm1CUoz0DjOh9dWnUrveJkYlJUGRX/BLYh9ujj3I76YdUV5oa5k8f3ToDZQWV/At9ZsoTnGXLE2KH0Zd9XN59HIfsknPphBXJl87NeyD0H+U1qtefje+lF9ocOfFt6mTFqIdFV7QtxlWys= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711321982; c=relaxed/simple; bh=YEz4yne20Y+PXJLPWPogO6ruSXDx1kKR8hKUaO0QDu8=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=NNLDX0iVWvTVLd91kii76WUbXg2X4wRCSW6KPX1XWKYemO5KF+x3pVtwd9YwRbFZ/p4JUErB8nUlNzBFbpPnPRhsgI0+QBLYrMZDjTNK+kUpcbJTf/XL5XpqmQelg3a0JcRjX+Y4gA2AWBDnM7aJpT2W3uTcHz/Ef4LwTm0oaRM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=Kp+72O3e; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id DD9FBC433C7; Sun, 24 Mar 2024 23:13:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1711321981; bh=YEz4yne20Y+PXJLPWPogO6ruSXDx1kKR8hKUaO0QDu8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Kp+72O3ehbx2ec2ZvUYcY3reRlh7EdfLdgRBtpIksUEGPRAJe4rt96Cswv402E97E 10GBSx1N8SM7SEV17MouYcmKbGV1MQyfMsJQz04fOzuk9fQSmyecehHUQ6WR/9i/uV W/J+1t0FCcv7iAUmQRwOejWv+r7B64He9Bc+IOS9kTeXww051aC7XgdXscGstUwG6Y +Y8NakBIwHyj/u95RsMSngNXVGaSAWVKWz1PMhMvAK/UZFL1GtunHIijNHfJ6hOhxN /4p4IzPLpsbIYSXCNtBD0ML2IJEIoLqqbodVGJcyLgoGx/IsWeQEnDJiIWZgWAccyu Po7XlQi4rddzA== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: =?UTF-8?q?Uwe=20Kleine-K=C3=B6nig?= , Linus Walleij , Dmitry Torokhov , Sasha Levin Subject: [PATCH 6.1 054/451] Input: gpio_keys_polled - suppress deferred probe error for gpio Date: Sun, 24 Mar 2024 19:05:30 -0400 Message-ID: <20240324231207.1351418-55-sashal@kernel.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240324231207.1351418-1-sashal@kernel.org> References: <20240324231207.1351418-1-sashal@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit From: Uwe Kleine-König [ Upstream commit 963465a33141d0d52338e77f80fe543d2c9dc053 ] On a PC Engines APU our admins are faced with: $ dmesg | grep -c "gpio-keys-polled gpio-keys-polled: unable to claim gpio 0, err=-517" 261 Such a message always appears when e.g. a new USB device is plugged in. Suppress this message which considerably clutters the kernel log for EPROBE_DEFER (i.e. -517). Signed-off-by: Uwe Kleine-König Reviewed-by: Linus Walleij Link: https://lore.kernel.org/r/20240305101042.10953-2-u.kleine-koenig@pengutronix.de Signed-off-by: Dmitry Torokhov Signed-off-by: Sasha Levin --- drivers/input/keyboard/gpio_keys_polled.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/drivers/input/keyboard/gpio_keys_polled.c b/drivers/input/keyboard/gpio_keys_polled.c index c3937d2fc7446..a0f9978c68f55 100644 --- a/drivers/input/keyboard/gpio_keys_polled.c +++ b/drivers/input/keyboard/gpio_keys_polled.c @@ -319,12 +319,10 @@ static int gpio_keys_polled_probe(struct platform_device *pdev) error = devm_gpio_request_one(dev, button->gpio, flags, button->desc ? : DRV_NAME); - if (error) { - dev_err(dev, - "unable to claim gpio %u, err=%d\n", - button->gpio, error); - return error; - } + if (error) + return dev_err_probe(dev, error, + "unable to claim gpio %u\n", + button->gpio); bdata->gpiod = gpio_to_desc(button->gpio); if (!bdata->gpiod) { -- 2.43.0