Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp142440rdg; Tue, 10 Oct 2023 06:36:20 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHGIS4twV652NbzmBc1SMYz2QBpjNHap8Ha6rTs3NjgESNTlwqDVtBtrYXUNs4wqpcUhCms X-Received: by 2002:a17:902:db06:b0:1c4:2ca5:8b7c with SMTP id m6-20020a170902db0600b001c42ca58b7cmr17523989plx.61.1696944980264; Tue, 10 Oct 2023 06:36:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696944980; cv=none; d=google.com; s=arc-20160816; b=jG+Rp/YDUX69Y9bV+eHdyg+qIl+gy72/g938B/BbHoQNlfFNsBU2uhTjkf6wIxt9ZW OssZrW0cmSFIPhmsOi4chbHIQYoRS6bX8kn1A4bKjM5ZILL54AeL4EAZbDROfCM/85Lp g3sBaoL/bzqr0UUWt+4yqANKI2PBZwJrBLcK2QBvgJmBNfrq9D+r4VfRqrfpvhu5LvqE WeszpoIsFVABcqfkkRKW/yaoHj2lo3RddL68gWpeKojEWe561SDU5rqr9XSWJFMoxTiP eD8nu6v7/w5ARPv4VxBy96oPraSMQhnPTGpDwubFOJL1kVWcBUVFHqIQvgmqMzLo7h/+ pCIw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=lwaODl/6SngYIesq4fd26Zf7cKEGOc6/vuChneskjdc=; fh=z3yIbHqlXrK7ICNZ2LrrZM1zm3kjyXmlizl38wTJng0=; b=n/+aHC2LGHzZq/9o+N/6IB2hHrkvHMpI6OUMDLOgHZfY/ozY6Ng9N9RdbAv/exZdlG I+LkbY6p4+NaMlfQDsW1Z9F3zu+LjuPUZZ3wVol62yJiNC5omM0+GZufZ3hPJVFMjHY9 D0zblDeIIb+RnW1QUg++3mUYeKO7y+OhMeV4UKLaRPUvB+GZwbjE8+MDHC2tdXG8Rk30 S1o309Tashzk6WuM6AIy90bOcVPehnaF+dOikX3fSc5bS4HeBJjmR5BaMfmC1KqsKPA8 7r4BML8Xt9c+F5HLP2DyumLc4K1wsyYWacuXUAL8lTkTWasx3zVuJFH6mWMj8PM/8at1 eUZA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=TK7X8dOd; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id b16-20020a170903229000b001c6249a387esi12820971plh.531.2023.10.10.06.36.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Oct 2023 06:36:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=TK7X8dOd; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id 2EF9A8023E2A; Tue, 10 Oct 2023 06:36:18 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232255AbjJJNf7 (ORCPT + 99 others); Tue, 10 Oct 2023 09:35:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50580 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232269AbjJJNf5 (ORCPT ); Tue, 10 Oct 2023 09:35:57 -0400 Received: from mail-yw1-x112b.google.com (mail-yw1-x112b.google.com [IPv6:2607:f8b0:4864:20::112b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 96000DA for ; Tue, 10 Oct 2023 06:35:53 -0700 (PDT) Received: by mail-yw1-x112b.google.com with SMTP id 00721157ae682-5a7c7262d5eso5154027b3.1 for ; Tue, 10 Oct 2023 06:35:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1696944953; x=1697549753; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=lwaODl/6SngYIesq4fd26Zf7cKEGOc6/vuChneskjdc=; b=TK7X8dOdEsESKx8042hUKWzOw0x5zA3eiw59WcPmrCoaEDsT7MmpVGSK2kQ7B6+/jF Vw/bLol6Dtv0H5dBDfOCOvtcuvCgwid6pokEFJQWFIZngrUQ9Sd1FzCSBmL74ocmh17P F0utXAIHCZhi5mR1frIktCqs50HhHpYS5hiYYfBAugU85FSRGcvdUGF32XtBjw0KTWhC eGF5uN+3E7BsTf++aDvo5kywIm74fIVGk1M+7yYMphNaLTgvCnPmzvAf0nEOQL85lvLL cooEvDiLgGHVfyt3CJQv1CZHcfMTxSeeq+uhEgVhztDiBtz7pr8opCuXv5fyL/CpwMQ6 jr0g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696944953; x=1697549753; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=lwaODl/6SngYIesq4fd26Zf7cKEGOc6/vuChneskjdc=; b=AOs6Nolwt2UZ4GwuCS2WaLd8W9QSvCd+MFiLwQxAx3pyWhYZiKtXj93XoDaPiK7Sxs 9sz/W9Hkynr0kSq44a+Q2lRRMJSfR2qI+ioeRn/nC9RB2PvxzDw9StkhXHLo86h2mYnc 0xNYpebtQDG1YDHaMnwefdmpQ3pIPcAMbd6gFCk1HPIFkRHDvw0hBfKVNOmmnuJxTDgg TzX2xY6VW0reu+jnGoVgNGZrWb1u6tKDD68l6JuQ1ZrzIJaMQEhu//9utOgvyb8ligD8 DCybTb3Ma2djZmkSewJcnFS2vRxIzWuGNtx1eZN2pkzF2NvMAUMCIILg2d2BQbTMgzlO kYkQ== X-Gm-Message-State: AOJu0Yzi4hxWxbrYQp8uJCx3moImRZIm6xyBrLe1JUemjaLX48ucB7QV LxXQaqkjpng45ZpDZEAYRu1minokxNieIM0RYNw1cg== X-Received: by 2002:a81:5cd5:0:b0:595:2094:f87 with SMTP id q204-20020a815cd5000000b0059520940f87mr19266136ywb.47.1696944952747; Tue, 10 Oct 2023 06:35:52 -0700 (PDT) MIME-Version: 1.0 References: <20231009083856.222030-1-u.kleine-koenig@pengutronix.de> <20231009083856.222030-2-u.kleine-koenig@pengutronix.de> In-Reply-To: <20231009083856.222030-2-u.kleine-koenig@pengutronix.de> From: Linus Walleij Date: Tue, 10 Oct 2023 15:35:41 +0200 Message-ID: Subject: Re: [PATCH 01/20] pinctrl: stmfx: Improve error message in .remove()'s error path To: =?UTF-8?Q?Uwe_Kleine=2DK=C3=B6nig?= Cc: Maxime Coquelin , Alexandre Torgue , linux-gpio@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=2.7 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, RCVD_IN_SBL_CSS,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Tue, 10 Oct 2023 06:36:18 -0700 (PDT) X-Spam-Level: ** On Mon, Oct 9, 2023 at 11:22=E2=80=AFAM Uwe Kleine-K=C3=B6nig wrote: > The driver core has no handling for errors returned by the .remove() > callback. The only action on error is a dev_warn() with generic error > message that the returned value is returned. > > Replace it by a more specific and useful message. Then returning zero is > the right thing to do, the only effect is to suppress the core's > warning. > > This prepares the driver for the conversion to .remove_new(). > > Signed-off-by: Uwe Kleine-K=C3=B6nig Patch applied. Yours, Linus Walleij