Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp2911396rdb; Tue, 12 Sep 2023 16:45:32 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFxp6nolsqsIvMII3NSHfUjWEWZIErpWL8RUB9mtOdcr4hirmHLS/0kmlkEyV+7JhpzJPIA X-Received: by 2002:a05:6a00:23d5:b0:68f:f26c:e2a with SMTP id g21-20020a056a0023d500b0068ff26c0e2amr1428454pfc.18.1694562331980; Tue, 12 Sep 2023 16:45:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694562331; cv=none; d=google.com; s=arc-20160816; b=tEhgyH4LSgZ/Ofe23y9yBysL09WDV9bSWu37fJtmmByZGmImILYUDhncxRjDv3S2NU uOjcdP1QjRsbL+Uwp+O2Uhsa6c1IFd2sV58XelWb8hnWeDDDSwCjcMe7vPLjqMp8Ttmk 4RkkPcXepJMdHYyoZ1AkntYs/46eETJiaeB13k+B10z/358upJ7JG7fZ05GpmM3zQiPJ GvkhQaV4iBqwGx13mqam1mc/3ZSshgJazG2eGLtWNIf4dX8oOesvArT9k+CbpDu/1c6d Q13JvkAjdXyJEZEX7hL2IDXMtTbjjWGJfziHgZksVtJCHFBWqlKUqv5NZc9hrOg8C1R2 pVpg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=tQtE0noGpi8t4F+aYH7KnUIfvefZ2UQLdZn5htKQJvI=; fh=F4bs7feh0kNPfpkxC+XiThUexV96iac3bkIm5iNd+h4=; b=lUs7n1wKWfJTNrBn2nOApZb3qm5RjAJFolhVFT80NSYX9GIRBaM7qbdx8ddig142op c7vexuRinn7iyOCn2W11ufpxUzri3v7VH/jBPeX79Re2TU0+EoEsQ//sqQRBpDWZI6Wq 5aaV4o4Pq3lfM81bJkNnqxkyut39mkgdvJFLNrgQLnMIhizK8bNQdr/vkX/xpHIIuV+y bWuHzxzbjPkqDE6PK7lxZihLVsMuVy4nX7nA13t8CQtE713Rbhq2l7WpkH+/KMzg/YCs WIjVU8P72K4OTyup8BP2X4FIrY2jLpiEj7UIGBgy5ZPFKyfsqVCMRGMilvHrgOwfn3Rw /T7g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=P8Va6E1q; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [23.128.96.33]) by mx.google.com with ESMTPS id o185-20020a62cdc2000000b0068a5752a049si41425pfg.96.2023.09.12.16.45.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Sep 2023 16:45:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) client-ip=23.128.96.33; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=P8Va6E1q; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id 9776581BB3F9; Tue, 12 Sep 2023 08:52:44 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235701AbjILPwo (ORCPT + 99 others); Tue, 12 Sep 2023 11:52:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48504 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230442AbjILPwn (ORCPT ); Tue, 12 Sep 2023 11:52:43 -0400 Received: from mail-lf1-x12d.google.com (mail-lf1-x12d.google.com [IPv6:2a00:1450:4864:20::12d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D0B2D10DE; Tue, 12 Sep 2023 08:52:38 -0700 (PDT) Received: by mail-lf1-x12d.google.com with SMTP id 2adb3069b0e04-502b0d23f28so4873504e87.2; Tue, 12 Sep 2023 08:52:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1694533957; x=1695138757; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=tQtE0noGpi8t4F+aYH7KnUIfvefZ2UQLdZn5htKQJvI=; b=P8Va6E1qQeSUBPX1tWZChQLY9xC7jXyhRFv5HnXDke0dRbHvr53tJHbABCSWAgzsxZ 9bI+kCJhFXIdPrA6ypYGRGEfinxDDaEFj6DO+nCjgSr0bO4f2Jl85QWh4qaatdDw5Swp 7W9tFkTIxc9ZpktNnm67gSx8OtE1u9xgyRKi1KotGAyYHbivO2qsxaQHqEHg/Z17O83h 2s4Iaas6SAuGkCdPyU9xOZBkTeNj0EeWwZNsNDUIByBSACt8uNXK7Uo1C9JrDiQG9e9T xCYvKOgU87Ev/x7M30z2U6suDMgOw6zd+PZdP1cDeUxhCLvxJ6y5vfu+VddTc2xuCt+T Y03A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694533957; x=1695138757; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=tQtE0noGpi8t4F+aYH7KnUIfvefZ2UQLdZn5htKQJvI=; b=FzOeGAuVpKot8oei9d6M6wayI2Aa9CBJonUNVvSZ80Mr2ua3Eo+BuccuZhRAi0J0eM ExTSa1AWOJcNIpTO64N0kFdMAHbNBo1yIYnxaRYEBbjBCoahT4GyfVHVvc3eOXCQZY3w B4YS9xhT2naF+/7vy/EjCvqRD4AKFMzmi/MOlBgsGEtUt45Dsp7JLUCr8yBWx3IHNtRh sJoHEHdBQLunhH2fFv2pw1C8pgcKDTAre6Pcq3kog9sOg/PPaeBqKEuczGwe3z+RgPq5 w1ZNb3ZgCI7rOMW7hZFu/Yq2NYfNEcbBpVjaPHSwh/el48/3bSzSgWIQwhQzf4nyxgOP WzNQ== X-Gm-Message-State: AOJu0Yxc4KSaF03FsqDE7Bl6VOOFgG1LlU7vKOad6IsidTCe67wl1BBh dhlrm9BzqKIcu2YCM98Cbco= X-Received: by 2002:ac2:4c94:0:b0:500:94c5:6e06 with SMTP id d20-20020ac24c94000000b0050094c56e06mr9173435lfl.56.1694533956701; Tue, 12 Sep 2023 08:52:36 -0700 (PDT) Received: from jernej-laptop.localnet (82-149-12-148.dynamic.telemach.net. [82.149.12.148]) by smtp.gmail.com with ESMTPSA id n3-20020a1709061d0300b0099bd046170fsm7046720ejh.104.2023.09.12.08.52.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Sep 2023 08:52:36 -0700 (PDT) From: Jernej =?utf-8?B?xaBrcmFiZWM=?= To: Linus Walleij Cc: linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 2/2] pinctrl: pinmux: Use dev_err_probe() in pin_request() Date: Tue, 12 Sep 2023 17:52:35 +0200 Message-ID: <7566964.EvYhyI6sBW@jernej-laptop> In-Reply-To: References: <20230909063613.2867-1-jernej.skrabec@gmail.com> <20230909063613.2867-3-jernej.skrabec@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" 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 (lipwig.vger.email [0.0.0.0]); Tue, 12 Sep 2023 08:52:44 -0700 (PDT) X-Spam-Status: No, score=-0.6 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email Dne torek, 12. september 2023 ob 10:15:31 CEST je Linus Walleij napisal(a): > Hi Jenej, >=20 > thanks for your patch! >=20 > On Sat, Sep 9, 2023 at 8:36=E2=80=AFAM Jernej Skrabec =20 wrote: > > Use dev_err_probe() when printing error message in pin_request() since > > it may fail with -EPROBE_DEFER. > >=20 > > Signed-off-by: Jernej Skrabec >=20 > (...) >=20 > > if (status) > >=20 > > - dev_err(pctldev->dev, "pin-%d (%s) status %d\n", > > - pin, owner, status); > > + dev_err_probe(pctldev->dev, "pin-%d (%s) status %d\n", > > + pin, owner, status); > >=20 > > return status; >=20 > That's not how you use dev_err_probe() >=20 > Just replace all of the lines above with return dev_err_probe(...) I already send v2 of this patch soon after I got report from kernel test=20 robot. Best regards, Jernej >=20 > Yours, > Linus Walleij