Received: by 2002:a05:622a:1442:b0:3a5:28ea:c4b9 with SMTP id v2csp747922qtx; Thu, 17 Nov 2022 07:27:13 -0800 (PST) X-Google-Smtp-Source: AA0mqf4oLwhRKDqd1EZmmgDB6keD3RAtvp3lw7LBOmrdo9t+s18A9xxKnfDpx/bufF1LooS3m+Z2 X-Received: by 2002:a17:902:d2c2:b0:188:f993:724a with SMTP id n2-20020a170902d2c200b00188f993724amr362178plc.77.1668698833480; Thu, 17 Nov 2022 07:27:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668698833; cv=none; d=google.com; s=arc-20160816; b=LnMTSOceDtGiTZhinZ+bOf+YKmJnIKC+6exn6UOcqzRU+0pAnEy+wvlWiufOb3+sot Aa76mxsEnhUayrcpeCfz4infm3HrynbOpQgsFAfcsU+JhWzqadAnp06AlXWKufehfOvA gG2xXVSxc0YkV/wDCjzvdg8aZVqpZabvrVP/Ukf28EITln7GPi1InJ0pDj3T8fmE143n j/NdSYiLIVVPd2EZPNmeKX77Tg+GrqyVUs0r0fdUpq8ILY1o2GJWlwoeMKsW90Hka/yx AporVRpanYxT4EJYBzoKIVbDoqo94loYwtsq3GT1eU/Q86xbIZDqDmXYA1UvS+Xjtnqe FxqQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:message-id:user-agent :references:in-reply-to:subject:cc:to:from:date:mime-version :dkim-signature; bh=Wd2YRTNfBQNX1++Y2Bwm7RHv/EDS3nS8x52+B3H87hw=; b=Rivp/T3WnL5Ias0lETGd9LdGeXdIpENevFnw4PeYsqZFjtucLQrAilW2/isv8ZZ23V q3fTewdiT8TpbDXWnJhUbsdUDmGasSJnJyOh30KrNwkJID3M9R2NK6gcknLS2Zn0zNtV suqe/tBafatW/hbunli4ggAeUdI52fv9zDMP0IEH/VvvTvdBT++nMLh0me79shGlVYUl NPiANkpA6R905u/H2lIMsCz08rFWqDnP5UV9U/VdoaTRe5TXKRWs6VMvyuuZhwF2FWnZ liQrKCt2wlitWsLqZKTOl2KRTAfshhe+zhcO+aISfvfhHR1U5Wa3svglOHUswZJPe+94 wpjA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@walle.cc header.s=mail2022082101 header.b=Zivn+W3Z; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=walle.cc Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id na10-20020a17090b4c0a00b00212eb5485afsi1218440pjb.77.2022.11.17.07.27.01; Thu, 17 Nov 2022 07:27:13 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@walle.cc header.s=mail2022082101 header.b=Zivn+W3Z; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=walle.cc Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239738AbiKQOkJ (ORCPT + 92 others); Thu, 17 Nov 2022 09:40:09 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38026 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240515AbiKQOjm (ORCPT ); Thu, 17 Nov 2022 09:39:42 -0500 X-Greylist: delayed 111882 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Thu, 17 Nov 2022 06:36:42 PST Received: from mail.3ffe.de (0001.3ffe.de [159.69.201.130]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DF48B769E2; Thu, 17 Nov 2022 06:36:41 -0800 (PST) Received: from 3ffe.de (0001.3ffe.de [IPv6:2a01:4f8:c0c:9d57::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mail.3ffe.de (Postfix) with ESMTPSA id 8AFA938; Thu, 17 Nov 2022 15:36:39 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=walle.cc; s=mail2022082101; t=1668695799; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Wd2YRTNfBQNX1++Y2Bwm7RHv/EDS3nS8x52+B3H87hw=; b=Zivn+W3Zpmt8/8B8sgf72Wvgoy7Cn57+h0tUynkikRvDH2UMnqAGgumu2NwZqhhNteoGeL C4BkRXZVZos/kYTj1MAJDw/xM1EYJCITBkugejTLSQzSFIyEhnvVIDb+29ZKckFFGpglsx bOuB3NnMUXqAZaZcDupAkyDXDE1TICoomRzTb9qHu89WM69BDiL2dTSjBkIAa0HCJ2aXal Ge+RxXU/hXzgQrpb7jFuQ23h90sYPa0pkhm+nY4ufFCWkBfOZVr3OzkXoZM2nhs4e/wOPQ DqHypywsqMKVtu+JTXYVS5FPliZf1uRZ7Yo/z7YMHVAm6AWy1lsmFp5o4e0Q0A== MIME-Version: 1.0 Date: Thu, 17 Nov 2022 15:36:39 +0100 From: Michael Walle To: William Breathitt Gray Cc: Andy Shevchenko , robert.marko@sartura.hr, linus.walleij@linaro.org, brgl@bgdev.pl, linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, broonie@kernel.org Subject: Re: [PATCH v2 1/4] gpio: regmap: Always set gpio_chip get_direction In-Reply-To: References: <1805d1ddb5bbce8e86164e66421ddde481cce4f9.1668129763.git.william.gray@linaro.org> User-Agent: Roundcube Webmail/1.4.13 Message-ID: <57381ad0797af76838d81f44344d2085@walle.cc> X-Sender: michael@walle.cc Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Am 2022-11-17 15:22, schrieb William Breathitt Gray: >> Which brings me to the question of "why this change?". The commit >> message doesn't mention it. Just out of curiosity. >> >> -michael > > Currently, the 104-idi-48 module implements a get_direction() callback > that is executed in situations such as gpiod_get_direction() which > aren't necessarily related to sysfs. In this patch series, the > 104-idi-48 module is migrated to the gpio_regmap API, but loses this > get_direction() support because it's an input-only configuration. The > purpose of this patch is to prevent that regression by supporting > get_direction() for input-only/output-only configurations. I see, thanks for the explanation. As said before, I'm fine with the change and apparently we don't care for sysfs changes ;) -michael