Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp3873538pxj; Mon, 24 May 2021 17:28:36 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwgWe0UanTLu30afpqAY9DoqwXW60LHPebD8ThdXvrJTL1HzjGCQIf8WZXDdK56agfcZT4b X-Received: by 2002:aa7:db57:: with SMTP id n23mr28923221edt.229.1621902515883; Mon, 24 May 2021 17:28:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621902515; cv=none; d=google.com; s=arc-20160816; b=oWpHsE4UEArT01pkKbLIZ52b24DHQFl2RfDfkWFG9JuyGlfy28ZuQWItdFBHZYm55H LeCMm0Dg9rntR1+kSVAmsz0LK5WtDtQdHxzBGsnEhZqYC+rYTlFCLo1gHJYDKTt/locU ptqiKG3ke9cXNrt6CfKSo9Awcu9Y+wyW6vumfX67WC60NN/ne0O4ORKGLGGcRJLOt3Zd sFG4c7jRFAp32joBgDcG2CMikRqglP9uKrKD1FxEobQXiPBMHI/Uhw9cMHr97QHfqhFX ta1lbPe4eltwxmzlzT7g9abEi/Mai4VMh8+nv2WBAGIfJXyT4GtAH+ahTzH6v3/FvZER o1GQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=ggN1ZyfpjeoPcK+b5TpMOSXo8A025wCmUM01aYg2EFg=; b=aIfEAnxOxG8WQ5J9unDzsFAFB/cTTFvh9FusLehOx6xZjf97obGjzvcRdp6gd0XQoj b+MsW07hsYIQc7GEGe6fYb5FOw0eEwFC3bwwdnnGwQ02gHncpEDF9KvxB1978R6myIwh lBpNvwzqC73TfnM0fFwPUIyQarICoUCESm2wX4sYexQJeWiopc0EXK7rppDwYH1JprjY GAYvN3GHdEbchjVPX6MesSc+5o4nr60W9EaUIgKJm0hocqE/XyOyS4TcAOCwuOIAFM/o kyoVhLDXUms0eHDQectoNLshWTKCog6UG6Ag1ffeSpnAmjiWy32r9uneaAvpiK4oQ/Qc J/fQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=yOT2sHQJ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id cx12si14540022edb.17.2021.05.24.17.28.13; Mon, 24 May 2021 17:28:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=yOT2sHQJ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229540AbhEYA2o (ORCPT + 99 others); Mon, 24 May 2021 20:28:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55010 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229539AbhEYA2n (ORCPT ); Mon, 24 May 2021 20:28:43 -0400 Received: from mail-lf1-x12a.google.com (mail-lf1-x12a.google.com [IPv6:2a00:1450:4864:20::12a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1A6FAC061574 for ; Mon, 24 May 2021 17:27:13 -0700 (PDT) Received: by mail-lf1-x12a.google.com with SMTP id f30so6170897lfj.1 for ; Mon, 24 May 2021 17:27:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=ggN1ZyfpjeoPcK+b5TpMOSXo8A025wCmUM01aYg2EFg=; b=yOT2sHQJz8nvp4O5Q4NWuzU2gw8PBgy3p+S3aN5f0xs7BIpw9pWlTB5YBfiIhph5Gq 3e33psxLGjctQdgqQbZapy3ir0V8qNI8Hjjc0YzhqWOMydI9tBoaYv+LsXyzCHmMJG7y 3bzpcXma78Www3l4uL1lNF6jOMiRuS4OwYSzkY117QzTmLdGPIVMsQWdHnww5QxrwNxN Ulxqccg8A1YclQdQqkSYCME5+iV+SosXJAtPDM+vJqs2lj8beVe96oGlR0SY2QoklGvy CNIeUM5pZJodgZSHoa+B+0UDGT/lp6TjDK1VsxnDxZeBma79xT4cd3vOuzmRsk1H4iI5 sOqg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=ggN1ZyfpjeoPcK+b5TpMOSXo8A025wCmUM01aYg2EFg=; b=rqkd0MCHPEHIR24xm7EhDXXQ98nOBVd7OlOsi2f7Lyj4+ZSc3Zcb+1w+6jZyYWcZSV p08u4BztMPIxjnjHSABMjQzUAVbD1tHWjplyBVLnQxD2EBtUWpzUiIoWAOLWbHbpek7M 8jbveD8EFRykbwhjToIv/gOstVYKKtTdtSJcMSf3hw1CVYOuvoTiOqgKwV/aQUn5QwbY MhE5S0X+8Qo28p6NF+uruk2cMxfW1D/UOzjZGEMRKU4yvQEQwbO8MjfleWE/73Y2hHlt 5AyeewgKoOiCgra9ehPvJWAupZPClfqrhRpmG6OA8hUfdg1JTbvxhmW4KETcDwFp+D0Z Xowg== X-Gm-Message-State: AOAM533yPQbIlsna42sNyJmaHhOzfxIIdhwtcVrwdq9VNptnOIWfqTAG KOmtE0gz0a/EzZTQ3qNOeX8P29LD17uC33oQxCc6Lw== X-Received: by 2002:ac2:5145:: with SMTP id q5mr12322949lfd.529.1621902431406; Mon, 24 May 2021 17:27:11 -0700 (PDT) MIME-Version: 1.0 References: <20210518155013.45622-1-andriy.shevchenko@linux.intel.com> <20210518155013.45622-2-andriy.shevchenko@linux.intel.com> In-Reply-To: <20210518155013.45622-2-andriy.shevchenko@linux.intel.com> From: Linus Walleij Date: Tue, 25 May 2021 02:27:00 +0200 Message-ID: Subject: Re: [PATCH v1 2/2] gpiolib: Introduce gpiod_request_user() helper To: Andy Shevchenko Cc: Kent Gibson , Bartosz Golaszewski , "open list:GPIO SUBSYSTEM" , linux-kernel Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, May 18, 2021 at 5:50 PM Andy Shevchenko wrote: > The gpiod_request_user() is a special helper to avoid propagating stuff > to user space that should not be propagated, e.g. internal error codes. > > For now, hide EPROBE_DEFER with ENODEV. > > Signed-off-by: Andy Shevchenko This looks like a good solution. Reviewed-by: Linus Walleij Yours, Linus Walleij