Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp3920901rdb; Thu, 14 Sep 2023 06:52:47 -0700 (PDT) X-Google-Smtp-Source: AGHT+IG9URDbe5GPK6NaSuoZlxME2NC296jK3KoeMVIoJWbQ+3+M5Uk0gddBfnZOgukCCKjLsqm8 X-Received: by 2002:a17:90a:f3c8:b0:263:eb0e:5681 with SMTP id ha8-20020a17090af3c800b00263eb0e5681mr2905326pjb.3.1694699567526; Thu, 14 Sep 2023 06:52:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694699567; cv=none; d=google.com; s=arc-20160816; b=Dsq7uWP0VgdfA3MH3cegKtl/r+0WWwiqpWgscrankGoUsy2zHJik8WU/dsNDLQMvkJ rhNYmLRnO8MxwtiD+Z3cWwBGzlE6jGMZeiF7wGtFif+8T2Tjc1l2DzuTj1gZYi6+vvwt RLAEzm70QMkG/q4VOWujZtMsLVO1n+LQNon4tVLjyXjoV2gjreYDACT29NUiC/OBH9Hz dbwB7jnU8xrUpT2Gj5zWeycs2NhWcQ0qqeqgLPolnnBHFPT9EOf/XZHlGpOJgfOpgX2y Q8Nn6qSGF4mZLSVnFPatNXYPYWb9zWeDDFB2WXgIgeelsuo7uZXggUbKW136OMDVtMjF lyog== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=Tw+IM7T28OUZCuFvNNtZ4r0LwLPv3E7VBk0HU9CwOkM=; fh=VrCUDjEcZ8Ampwp0xEDw2W55zIH1no7/VhHEY2CfYKc=; b=jXPDktEsncn2S8aA5YrM7bSwLxiYuTabzqnZVzmtX5qGCV2QcD2+pc3lv4OMNMq25n 4R790cE0pN1A8pBiM6PaTr1JddUmvUzCosF484nI/Ws3KqUy0Y4CpxSIWWE73Wnfez6w hmpY+ZlsFafz4Gbr6n8ls1O/oyjsj3tcyNcD5BNxJ0r8fQRHNUo09z4idGl0w4B03vY0 29Xrxa51MUD22J+roUnFYNmpA9Vd9MV0xvWWuBepw3I9AcIM/pamsKrqNH1JMGguSYuL 6hfYZe1YUBdhK3gVAHNLAta1vEx3oUzPC5VOTXru7NRvXitnpQZ99a1xbeV/X+Dgb7sk wjDw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=cFbmBs6Y; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 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 groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id p8-20020a17090a0e4800b00273e2978b8fsi1693225pja.32.2023.09.14.06.52.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Sep 2023 06:52:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) client-ip=23.128.96.35; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=cFbmBs6Y; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id 4BF8C832B16F; Thu, 14 Sep 2023 01:38:35 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236339AbjINIiS (ORCPT + 99 others); Thu, 14 Sep 2023 04:38:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50756 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236468AbjINIiQ (ORCPT ); Thu, 14 Sep 2023 04:38:16 -0400 Received: from mail-yb1-xb33.google.com (mail-yb1-xb33.google.com [IPv6:2607:f8b0:4864:20::b33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AC43F1FC3 for ; Thu, 14 Sep 2023 01:38:12 -0700 (PDT) Received: by mail-yb1-xb33.google.com with SMTP id 3f1490d57ef6-d8165e3b209so1845981276.1 for ; Thu, 14 Sep 2023 01:38:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1694680692; x=1695285492; 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=Tw+IM7T28OUZCuFvNNtZ4r0LwLPv3E7VBk0HU9CwOkM=; b=cFbmBs6YE5ogcBr0pGE7Gr0BSYHeT+XWSylTxMfjtJdE5FEGK3W88Zt3vwgrVtjA23 WyOh1nU7GnQkovCxpbEd5kJJsRZmdYt/Vjw77qjDkACMgL2rS7mGJEZfX9fsDCLUYx0W TR/wdb5/OUQZSU2rPDIvSe+eFlNwkg0lkjI6dmAOsgfV4XSVROuGrT8TPcxSRbz7bvgZ 0x0xzD4rXoR3ZWc7fmtMQAoo42pHNDHrkvdqJDAHonx5GB22MRx5orbPECcaa3rHGqaP VMhZlJTtWecczZov6hNSEVBKvW+HeK2tDRrMWSXopyLkIGodQ0blgAxMfErBny+8/ULs 5bCg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694680692; x=1695285492; 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=Tw+IM7T28OUZCuFvNNtZ4r0LwLPv3E7VBk0HU9CwOkM=; b=Km3NSpvy2ecAHSiywmnxVRvhN55LmdaMJekgUGX5G0x8KNkFmdm0ycnOjO37adz5qi 6VuatZDM0FFZYCOIJBSc/drTR+CJTmuiK94UW+dyLnKMTAfkqzRqNV/PAWEuaa/WH+ox BjPC2WFaRQVBhtPIG9blTzvQcWhmJ5U05erxfn/mBly8LJkuI2+2hrDdXIU5yNTzOZ+H I0kigp8Sd6VZBrZq7Murigl+RNgsVKWFWyCBGCAA8kgdioV0l+eH1UB0DbO4/uPsnxkP YX8mvGrOSjoNpbnBbNPktHm3FJxWWqqw2Wm09IBYOSffU0GOyJcOSDKQeqwaMH5FNFYR WMSg== X-Gm-Message-State: AOJu0Yz9PCx3Sx2D6q0eO3S58dip9gawoRizr4ivUiZRTNMr/JqTRQB8 T/29PwWRuOGEwN/TUd4ZHK9mLJLhXsYS3OmD+yNFgPc5qryeGNpU X-Received: by 2002:a25:7714:0:b0:d07:b677:3349 with SMTP id s20-20020a257714000000b00d07b6773349mr806404ybc.25.1694680691812; Thu, 14 Sep 2023 01:38:11 -0700 (PDT) MIME-Version: 1.0 References: <20230913115001.23183-1-brgl@bgdev.pl> <20230913115001.23183-4-brgl@bgdev.pl> In-Reply-To: From: Linus Walleij Date: Thu, 14 Sep 2023 10:38:00 +0200 Message-ID: Subject: Re: [PATCH 3/5] mmc: slot-gpio: use gpiod_set_active_[low|high]() To: Bartosz Golaszewski Cc: Andy Shevchenko , Ulf Hansson , Paul Cercueil , Harvey Hunt , Miquel Raynal , Richard Weinberger , Vignesh Raghavendra , Daniel Scally , Hans de Goede , Mark Gross , Heiner Kallweit , linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mmc@vger.kernel.org, linux-mips@vger.kernel.org, linux-mtd@lists.infradead.org, platform-driver-x86@vger.kernel.org, Bartosz Golaszewski Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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 (groat.vger.email [0.0.0.0]); Thu, 14 Sep 2023 01:38:35 -0700 (PDT) X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,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 groat.vger.email On Thu, Sep 14, 2023 at 10:31=E2=80=AFAM Linus Walleij wrote: > On Wed, Sep 13, 2023 at 2:39=E2=80=AFPM Bartosz Golaszewski wrote: > > Alternatively we could reimplement the toggle semantics locally in a > > helper function in order to get rid of it from GPIOLIB. > > I don't know about that, the flag is inside gpio_desc so we cannot > access it (struct is private to gpiolib...) Actually I think the way the toggle call came about was for this one MMC usecase. Then other subsystems have used it without asking the GPIO maintainers or without implementing the more proper accessors or patching drivers/gpio/gpiolib-of.c because why not, probably thinking something like "hey weird that it is just toggle I guess they are not so smart, but it works, ship it". Yours, Linus Walleij