Received: by 2002:a89:2c3:0:b0:1ed:23cc:44d1 with SMTP id d3csp442231lqs; Tue, 5 Mar 2024 06:39:42 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCU+zaEJb0GmaWvz/PpXkK9YOf/uqEoQ7lcMPvmUQrTjOBvSjhqMTCEwqsUTAKS7f+HHXXzLeNcVJSYQOissq82+JsqCZNtWxVQTzTwMJA== X-Google-Smtp-Source: AGHT+IEWv3NnA4uXmX5ryTKgAFPjYO/0XSqkaxeWktGFHo/1bFy5PseXjp5BS9/dHM3gkcXqLK++ X-Received: by 2002:a17:906:4148:b0:a44:f89:a04e with SMTP id l8-20020a170906414800b00a440f89a04emr9355123ejk.35.1709649582328; Tue, 05 Mar 2024 06:39:42 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709649582; cv=pass; d=google.com; s=arc-20160816; b=sZdaT8YheOQKCUuDCYHy9lradA1tugdgw/+i1hPGostghe8Y5ijreCnQhdnnoL672v 8v6FqLpGxsWMz6MvklF6Nchur+hE/DZ31Yf3Vw0mHK5EXz64wXbAgo+oO/Il2JnhrU03 WaVT5QmsvCOZIOZq76NmBppueoO+UvSBOZYHH5sbo5vh7VJKH8KJERedlcAzCXY/Igh3 dQkeU8U9+30/OsMQ7YE8ulhoJoIOS4aS4l/Ga00G1qNfthJo5IAKYW5o4pCJUHhCsTJ8 /FbpTY7LsLaH5Y1fpcWBLRO4Ic9KajQ6ODc7CzNcTG07QJ4W0FkvLpUsbMCoMiBCJtg6 haTw== 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:message-id:date:subject:cc:to :from; bh=3QqrszyGEpTkJb29r2w8yiadIVs/q40ypcJ27+lIWpw=; fh=vYrcg76bD47gnBgI4RFMtz3+LchJI27lOZLoD2lRzXc=; b=ypOGjYIV6zDPCS8TV3AIOyFZBUbnEjP5G1wgEl66WdquML6v4Rvg2q+pk9x7T1oeiO 1q3ODcV3X3BjxrLTCrx00uHhShvFUcEVtKGaB1g+cKxdcPGxbFwqsw7Ic2doFjA5QFdB wQ5D2t2JWPYLPsVvBbdi26vIZV4NuAHQbIcdkgcD8Uuohvps5iPKV2TV2fjbAcYCefOL Mr4SjAofaJME96ci6FWIjQauk7pfPjq+zNwDTJRgxiWqysombEuRXp74kekqEFEyLJ6f cpnwdeNWQrsiQ+3k+//FkvuVOVyw9XWK/UI3ObtQX6v+BFsEFzG6qIzmHdfN3KaCKNlR ZXiA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=arm.com dmarc=pass fromdomain=arm.com); spf=pass (google.com: domain of linux-kernel+bounces-92530-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-92530-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id gb38-20020a170907962600b00a449fe19459si4068793ejc.539.2024.03.05.06.39.42 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Mar 2024 06:39:42 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-92530-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=arm.com dmarc=pass fromdomain=arm.com); spf=pass (google.com: domain of linux-kernel+bounces-92530-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-92530-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com 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 am.mirrors.kernel.org (Postfix) with ESMTPS id 0F26E1F231DC for ; Tue, 5 Mar 2024 14:39:42 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9FE5D126F0D; Tue, 5 Mar 2024 14:39:15 +0000 (UTC) Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7AECA126F04; Tue, 5 Mar 2024 14:39:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.140.110.172 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709649555; cv=none; b=DOdthM2Br7zfWoQKB75HBXix+H4kkR0xjKGkI6YIyRGpKPr7aMF2lrGKoqGKE05ihsibGkAY0jfIL4WBGTmRQY9skqkzpwcR8w/5vyX4pbI0xTMo0VziqLYv8PH35uaM3LRpG5aYLgtVE5PU/cXbfScZsTsCPBhmI9urPuZjfWM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709649555; c=relaxed/simple; bh=HHbVbOWDDOboNAEyisylzv0ctsMjCcsB4yqz0U8ueOc=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=SWu1Fmue2QoARDhTZ1vSLEDR/3yTOtfzJ750y3EhmkQFWfobE+A1LvzRAiUkmoEP00nsHbyk7fiq5XEwngoi8JCJ77IbWUXt39m8/O7aWDFl0mC4wQotCKL/egKNGs6gDvf3ngsugLDl8/ZPXuzvOE1B3h9tXK3W07fkylvlzw0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com; spf=pass smtp.mailfrom=arm.com; arc=none smtp.client-ip=217.140.110.172 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=arm.com Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 45E381FB; Tue, 5 Mar 2024 06:39:49 -0800 (PST) Received: from donnerap.arm.com (donnerap.manchester.arm.com [10.32.100.28]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id C986F3F73F; Tue, 5 Mar 2024 06:39:11 -0800 (PST) From: Andre Przywara To: Linus Walleij Cc: linux-gpio@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH] pinctrl: pinmux: Suppress error message for -EPROBE_DEFER Date: Tue, 5 Mar 2024 14:38:59 +0000 Message-Id: <20240305143859.2449147-1-andre.przywara@arm.com> X-Mailer: git-send-email 2.25.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit EPROBE_DEFER error returns are not really critical, since they cancel the probe process, but the kernel will return later and retry. However, depending on the probe order, this might issue quite some verbatim and scary, though pointless messages: [ 2.388731] 300b000.pinctrl: pin-224 (5000000.serial) status -517 [ 2.397321] 300b000.pinctrl: could not request pin 224 (PH0) from group PH0 on device 300b000.pinctrl Replace dev_err() with dev_err_probe(), which not only drops the priority of the message from error to debug, but also puts some text into debugfs' devices_deferred file, for later reference. Signed-off-by: Andre Przywara --- drivers/pinctrl/pinmux.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/pinctrl/pinmux.c b/drivers/pinctrl/pinmux.c index 23d2da0b99b92..a6d2fd1658128 100644 --- a/drivers/pinctrl/pinmux.c +++ b/drivers/pinctrl/pinmux.c @@ -188,8 +188,8 @@ static int pin_request(struct pinctrl_dev *pctldev, } out: if (status) - dev_err(pctldev->dev, "pin-%d (%s) status %d\n", - pin, owner, status); + dev_err_probe(pctldev->dev, status, "pin-%d (%s)\n", + pin, owner); return status; } @@ -441,7 +441,7 @@ int pinmux_enable_setting(const struct pinctrl_setting *setting) pname = desc ? desc->name : "non-existing"; gname = pctlops->get_group_name(pctldev, setting->data.mux.group); - dev_err(pctldev->dev, + dev_err_probe(pctldev->dev, ret, "could not request pin %d (%s) from group %s " " on device %s\n", pins[i], pname, gname, -- 2.25.1