Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp3282853pxb; Mon, 9 Nov 2020 07:18:46 -0800 (PST) X-Google-Smtp-Source: ABdhPJzcyn2Uk5BM6VbAGTj3xEitoGggZlD3SeYHo5zf+r9a5+mZmWE/dYuZuhbXas2eEoGqtoQd X-Received: by 2002:aa7:cf90:: with SMTP id z16mr16590122edx.174.1604935126475; Mon, 09 Nov 2020 07:18:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604935126; cv=none; d=google.com; s=arc-20160816; b=YfykwH14TzErWhUGLhE1EmjLE7x63IRxVc4UU49KnFJWJocfmyxGV2YsOpzpwioCsv ixEEIKhkHzdaqzz4LKC2iHcURx7s6LElAFgwraEpHBPVR0pvQfFMBZDNTRvqFQdmS+KR 6b0qzRp+IC8t9rCdF40yZa+uytnWnSXDxhwJ8CdAiKY9PLqIxRxUVquWCINaN98x76OQ Ylosy7BLx37O0A91IlkkB0J35blf5iPXpkJyR89HJGnPZ2L5Edr4TxHe1gOjH63IVNRz aj6gfbMZJuySZv65xihCIkrBupDTZvxRC/QzQG+hAmL8j99WXR71Ku0C/tBkDCYPdjFi N12A== 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=oOLvQx8+HhSWGqiuawsD+ABNE4D1RR1lEjjhwW8+Rxo=; b=sH4WVFgSEEodnrb9aQgrqVRdZbg3WQTlHeNMkzMvj5Cwr/g1KGqbV7V1vI9nnn/PyN cSHPNTX1TsvHp/U1OQsOrlT09KhcMnVuI1QP42j1dMV9wBmFHEH3Z/joFVmT1bd5yoYo snNkqAP5peTQ/4CCUyio36znSBm657N9Gu0nRyyFY38Hy0JzRLfiTs6mLVXa29MmyRfg bJnz7FTMLEDHT2yUv5gBY6ONa1eISzYfVodQIoNKi0OY9710cmrlJALyhvq4LtAG+ydE XIn93DPJPNswQNRb4EEuVmf6LSpc7xY7YgmRBJxZecAjZ/PH4IULUTlLtnDgGXH4sqJ0 T4/w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=g6Yrncnv; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ca10si6898737edb.170.2020.11.09.07.18.22; Mon, 09 Nov 2020 07:18:46 -0800 (PST) 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=@gmail.com header.s=20161025 header.b=g6Yrncnv; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731161AbgKIPQB (ORCPT + 99 others); Mon, 9 Nov 2020 10:16:01 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42022 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729776AbgKIPQB (ORCPT ); Mon, 9 Nov 2020 10:16:01 -0500 Received: from mail-pg1-x542.google.com (mail-pg1-x542.google.com [IPv6:2607:f8b0:4864:20::542]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6F299C0613CF; Mon, 9 Nov 2020 07:16:01 -0800 (PST) Received: by mail-pg1-x542.google.com with SMTP id w4so7376935pgg.13; Mon, 09 Nov 2020 07:16:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=oOLvQx8+HhSWGqiuawsD+ABNE4D1RR1lEjjhwW8+Rxo=; b=g6YrncnvAMsicaX2OYez16D1w1HqSBMixXeMziDFCAg1c3YaHBYggDb5xCzhrT9lWh lLlZj8EYeJP2ImsdekcPsZebITx2wywrJ+izecmAwicqXDmWsvU4F9fd4RRz0Rdu/6cs WRy95Hj9lcZtZz5JLL4XvbTz+VLinqmNrFV+ENb28a1FS5VHCLqvuiPDQgJPQ3zidiHj PJ0OOIKmcqnt0PW7eCPfGyef2bUo+Sya2hFKU4fxyfZ+OIhc0xnlCuVr6XNaNKrX8EQB a8EqmUYJ791bzyfE6zud+Mhtveq7u6s6cNHMTpVdyVH8EXKPqY9n+ZNObjMvn/xgalOA bhSQ== 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=oOLvQx8+HhSWGqiuawsD+ABNE4D1RR1lEjjhwW8+Rxo=; b=slwfK95xtjHSLXe+vEnMh6L2Oj1UZVYqhPo+EUgoZrAhOGuTvV2oYEqLRCfYnFENS3 RMnHeZVJvLzIchrO3iodQoRKthurPxNwLeJHwmAkfmC3sAmCBdP+Pm5JN+GiLoLZnTOt YM7IydKvWlAIyayUP2/HVjlmRnGJg66V7yG2ov1EZqdSCMnyUQwNVgVqUDJjmBGRsUmr 8JBzqX+wAgVzHSc1LAlI+RoHoov0IOewvJY968u/B32dcb2GDrY0kuGzJYw150nTACvU ecHm64wvTeGtYLXurEIvodccQBhdwFMHGlio8scQ1q1Oe9YoWA2DKHoIV5dE5K66Cj/W O/tw== X-Gm-Message-State: AOAM532BPbiDfZKAdXjcl+9h8RUilHyfzbMgyNrXQnOWvs97nUA6f4XV EpsVH0cY63xr8Dp90bmCdSh83szSKMvPrs/J3vA= X-Received: by 2002:a63:4511:: with SMTP id s17mr13187246pga.4.1604934961034; Mon, 09 Nov 2020 07:16:01 -0800 (PST) MIME-Version: 1.0 References: <20201109132643.457932-1-lars.povlsen@microchip.com> <20201109132643.457932-3-lars.povlsen@microchip.com> <20201109143237.GJ1257108@piout.net> In-Reply-To: <20201109143237.GJ1257108@piout.net> From: Andy Shevchenko Date: Mon, 9 Nov 2020 17:16:49 +0200 Message-ID: Subject: Re: [PATCH v8 2/3] pinctrl: pinctrl-microchip-sgpio: Add pinctrl driver for Microsemi Serial GPIO To: Alexandre Belloni Cc: Lars Povlsen , Linus Walleij , Microchip Linux Driver Support , devicetree , "open list:GPIO SUBSYSTEM" , linux-arm Mailing List , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Nov 9, 2020 at 4:32 PM Alexandre Belloni wrote: > On 09/11/2020 16:17:40+0200, Andy Shevchenko wrote: > > > + if (input != bank->is_input) { > > > > > + dev_err(pctldev->dev, "Pin %d direction as %s is not possible\n", > > > + pin, input ? "input" : "output"); > > > > Do we need this noise? Isn't user space getting a proper error code as > > per doc and can handle this? > > Why would userspace get the error code? Huh?! Why it shouldn't. How will users know if they are doing something wrong? > Userspace should never have to > handle gpios directly or you are doing something wrong. This is true, but check how error codes are propagated to the user space. -- With Best Regards, Andy Shevchenko