Received: by 2002:ab2:2441:0:b0:1f3:1f8c:d0c6 with SMTP id k1csp215510lqe; Thu, 4 Apr 2024 04:53:09 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVXQZraY5IRzHCzzT1YK/Np21M8GAP0VOtGyj7JhKH4G9ydg0lnzGAUxBa+dtvPirOk6poSq8Q3iTe+rizXZ0o7XF7VJ7qQKLcjmA02Zg== X-Google-Smtp-Source: AGHT+IFJw0VU7QecAtAJliiX+HVhs9KimKjBTTJ133Xl8p/76D92Ib+K2MqAVnajVZff2RoTODPA X-Received: by 2002:a50:9f6b:0:b0:56e:241c:3f3d with SMTP id b98-20020a509f6b000000b0056e241c3f3dmr170846edf.25.1712231589068; Thu, 04 Apr 2024 04:53:09 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712231589; cv=pass; d=google.com; s=arc-20160816; b=B3J49m+IkVPAkvUJWsVXBS0jj2LVBMT++kJot3w5FcjM850fzZrC/aKjrdPn7zzj+7 d4Do8jUL/iWHRZmrPGwo3vnMq82Bponxkzi+45vPC673J1YAHbsYQkxD24oAL1V8AmVt andre+8eJZtBSK6QzccFR/9ckI6+rX6PjGTfE44WlEtY6FQKMttPPux2fOfvJmGMK9YD E2/HZfJDFiThJdkGRuA5zYLwHuS3da3yPPNPYwmuC/ld6cG2hHM3gtQGIzbrfT5br8iX HmChOLwqlm1uVinArKfkHZS86PK41wtfPHS1FKKu2T2HcSMmyb9k1gJpmK0yIrUSLBEO Ls7Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=rdNenNQMt+7XONzUW/9kB2yS6/Tol2kmLB8BmO6OGLU=; fh=ApjWmHaBcZKhf9oyACyZ+htudfgCMGLDu8VGa4y0T2Y=; b=lh++Zqmv4U4YWhMtPOMO/3g8m1Y9rBjbiuxGzCzdlLzadJBtlYAIsf23itvkv110XL Fk/IIWifvGoeUQpq58tUqQZJH8JWqaH84waIsOY5CoiZ5h6ihBx0alz+3ezXGMxibs8C qn1osrscONxgPfbq84BSSouea1ftqGzbfqqAqOM2qagAfQ8CqUGa2QvslF3ESNQlj1pl VJD1DkMyD0V5GfpPksFZBxS91WqoSMeBg8KFj/LGT+9xR8xWp+bulGLZmiVIOfeo4v5W qtXCBM0yTIZ+5X/uWggLIvKEjqXSVrvTrUWi+7vuJj4ZQnv9Ui0EvFZjhEKiy6ghdPAT KaOQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=DVkYGhWF; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-131323-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-131323-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id f6-20020a056402354600b0056be12d0b2dsi8173464edd.558.2024.04.04.04.53.08 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Apr 2024 04:53:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-131323-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=DVkYGhWF; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-131323-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-131323-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.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 am.mirrors.kernel.org (Postfix) with ESMTPS id 636841F2B0B7 for ; Thu, 4 Apr 2024 11:45:14 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 26E0B84A23; Thu, 4 Apr 2024 11:45:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="DVkYGhWF" Received: from mail-yw1-f181.google.com (mail-yw1-f181.google.com [209.85.128.181]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A929B7F7C8 for ; Thu, 4 Apr 2024 11:45:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.181 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712231106; cv=none; b=NS/ztvrAIBeqxCzn+ZwpCO9dSz5oCkHUgGo8VpVzVXlQlQ0NLo3yaFZZn/VaPZ5ATxRj0VEpiedBQ/PJGpCcbRzl4pNfHA5r295vNbhB+/F5EEE5kKnNk85jfSSoc3L5cvY1zjaTJ9ofOcXz4hfzHO2r5vmp3RaMcaUKrrV/FrA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712231106; c=relaxed/simple; bh=/eLKtqRVMeBA+chi62xtVXaYNjNu3QL5M36nmn2NBgs=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=mh+IErJDzIOzw/efxM5p164UUMQJWzSArl2vZtrNHlfCICJHqgO8PqZgl67kjC0HaEs8xQpTZZG0TK1U1pW+QwJhCouqZwzb3A/m58gz17cEWaAwct/FCT0vWU67TWN6Ee97ZcKXk7BMk2M8MblBnLHNB4SERpjWHpuVGl0B9uQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=DVkYGhWF; arc=none smtp.client-ip=209.85.128.181 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-yw1-f181.google.com with SMTP id 00721157ae682-616909c32cdso5061807b3.0 for ; Thu, 04 Apr 2024 04:45:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1712231103; x=1712835903; 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=rdNenNQMt+7XONzUW/9kB2yS6/Tol2kmLB8BmO6OGLU=; b=DVkYGhWFfDN55ztook7u/m7XQt0/1DqgYEDQnuFZDO2f9sTQTLBrFr98sgJSAEPBTy CYDUBrddaT3BTeeVQRTNHoomuhfbL0h3ksiBLbYWOwRkpk0Tk8UduqsZI0hnh9URk3Vg XHCtdeiQw2W5IchOzIDCB6jlUZ/zutD7CWvoo+hqXzZS6AOTaSjDRhSRQwL2G+dVBalC s6d3hKXJiDE7l3BHaoYQ6gKQMhHAHA2TUjRFQEU79gotNDh5VHhpOvhyC8A+VZm527jM sFjPU+MfqQUo9YVqifBt9t30tT0EnkjMtQ1g4bHx2DXAQ+TsgVtqR6jiAdxPCgN5o7ln BA/w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712231103; x=1712835903; 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=rdNenNQMt+7XONzUW/9kB2yS6/Tol2kmLB8BmO6OGLU=; b=rtkm2IoI5vdrSz1aNO4OkEcFgaKN/OXv2lmyf656u1mW3077dqKE/b8EAiRRiPMfiG vAaE2gC8dmf7ohj07C1U+0eKFv9SiEvwEaUrFr8g1PMWZuDp5JXB/IWu12OFPmCUU7i9 Qz81Kemt8fVZLKSeHMYVxeOxiLDAjk1flcvMeF2Ho+UGKAROM5168RI9HH8UYJbtIh0w upKTVVp70IauW9nuZNUvyxzE7Mzejm+j+Q+XGPqQBBqzJJIyXVQBLInkZ0NTjv5V0bGf hpk6NomMgEv3PyKQ3RQFz5s+m5VBchP73DsIhcI4kEwMIB37JVJS73J4N1mNf8tGDbzr iW3w== X-Forwarded-Encrypted: i=1; AJvYcCWIJ04uzwRdWka6dPgCJgWosXLvciJvpFzBXD0jzKlqDM8u2DI/Kay2uRTYWr78L6MBzJYGWRWjIHy4Rx3G35lL76y3vC84AKuSaYRr X-Gm-Message-State: AOJu0YwlB43WJ019DP4o1QlMeKogWsIpPej+WC40uHulEbt543KD3r54 b6barYQZUcBgQzOP88J5tR7HxjJymkZ/kC8BcuxWXFUprOHrkMCxlgXscntZUSaVCWauyYy/Kqp av9EWaQ5I58xVkRgxNsqAxfPLZ6Fpic4WQBDNig== X-Received: by 2002:a0d:ca02:0:b0:615:8174:61a2 with SMTP id m2-20020a0dca02000000b00615817461a2mr2142897ywd.8.1712231102703; Thu, 04 Apr 2024 04:45:02 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240401141031.3106216-1-peng.fan@oss.nxp.com> In-Reply-To: <20240401141031.3106216-1-peng.fan@oss.nxp.com> From: Linus Walleij Date: Thu, 4 Apr 2024 13:44:50 +0200 Message-ID: Subject: Re: [PATCH] pinctrl: pinconf-generic: check error value EOPNOTSUPP To: "Peng Fan (OSS)" Cc: brgl@bgdev.pl, linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, cristian.marussi@arm.com, sudeep.holla@arm.com, Peng Fan Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Mon, Apr 1, 2024 at 4:02=E2=80=AFPM Peng Fan (OSS) wrote: > From: Peng Fan > > The SCMI error value SCMI_ERR_SUPPORT maps to linux error value > '-EOPNOTSUPP', so when dump configs, need check the error value > EOPNOTSUPP, otherwise there will be log "ERROR READING CONFIG SETTING". > > Signed-off-by: Peng Fan (...) > ret =3D pin_config_get_for_pin(pctldev, pin, &con= fig); > /* These are legal errors */ > - if (ret =3D=3D -EINVAL || ret =3D=3D -ENOTSUPP) > + if (ret =3D=3D -EINVAL || ret =3D=3D -ENOTSUPP || ret =3D= =3D -EOPNOTSUPP) TBH it's a bit odd to call an in-kernel API such as pin_config_get_for_pin(= ) and get -EOPNOTSUPP back. But it's not like I care a lot, so patch applied. Yours, Linus Walleij