Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp119896rwd; Mon, 12 Jun 2023 10:55:57 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ65nSleFsGDv0NPpvoMNInB+iNYuM39ubvnoiovCTZIbB4pOyeq7BhWVDv6zZ9zkzHca7GE X-Received: by 2002:a17:907:25c4:b0:969:9fd0:7ce7 with SMTP id ae4-20020a17090725c400b009699fd07ce7mr9232838ejc.11.1686592557597; Mon, 12 Jun 2023 10:55:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686592557; cv=none; d=google.com; s=arc-20160816; b=Vid1r1rn8FBkCMs6imHdlM7qfPdAi5u6jWCx5YsCmXFErT3Xkx52jD2SwVSW1shVQX kqu6c7sk7H6fvgaQhYGrrLrOtp5QzmKbxyk02VNeeLXEJv998ri6cjJLL7COOKtqgkBY pDHKsltTVPFfulpvE/A+Ww1PgZbcJP2r0YOWpYAi6yLfFZIjPA14atQE7Sny82d3BsoA uKHzrAuV1aVulhW8KPis7h80QNnz2SV8Yl4BaZNYave+sPNGdaYvRIq7tecMJJSpTut9 4zZOYoPqH3a3X8zgRW8VK6mDZkODfCxfNjD0M2PA0dCMWD9WVZP7/OQ+hqUSRgi0/m/7 O4bA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:organization:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=QBRisfMZ31sgAQx+o2i6wWcSVp8mwgg7iGDt6Pqnvr8=; b=zGfqTn77DRB8kQJZHAd4sbOf1xJxukYwOfavRFHzyu/GfwORH2BlU9n8RViiaF5cDH S645is2eywOeLlm8/CjNfTxIm2jpcfe91WS3ow75LijYXWAAoMIaqKFiLeIIWNuNpNHd /E/OWBBId+nRhIffHpya5sSxfLNxGghSx/Jwc3DjygUyulwHvo5AQEC5t/sG3TQRz/U7 IyOP47f6FSsO8oZv/U32YmKQhOEZ2wcnL+N204CnNS/Mt5PkeQcQCmerM+aRYU9ztRAE RCZ0mKH6D6mbDdYNXIg2TMUylLzsCrGDFpHguTQwyw/6NBM6cpTBN5jNiz16QF2D2P4T TmvA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=ZMiIjCS5; 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=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b22-20020a170906d11600b00977c5456e6bsi5587242ejz.157.2023.06.12.10.55.32; Mon, 12 Jun 2023 10:55:57 -0700 (PDT) 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=@intel.com header.s=Intel header.b=ZMiIjCS5; 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=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231132AbjFLRfu (ORCPT + 99 others); Mon, 12 Jun 2023 13:35:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40938 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236559AbjFLReg (ORCPT ); Mon, 12 Jun 2023 13:34:36 -0400 Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AE6CA4497; Mon, 12 Jun 2023 10:32:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1686591145; x=1718127145; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=bVDfAUTAXFV5BfIrJ9ItRq/i2wyOxOvXPgprmaXrves=; b=ZMiIjCS5brL9o0viDla8XGuzBSEy0CyZaijcwfnkTOsGiUFdGv38ODs+ rBWaEhPvGR1GmWb9fDPDor+9e1l5QFM9lBdQ9pqxBW6RJUuEADgvY1sh1 pfjaWqHmLZV51BQPNHa0VWNQ4Uj/cE0dK1/1J97gBTgkj8SUTYy8Raa3Q 4LwBXW9TTKWjNfRb53F5VhdPEI9d3rWjyz4uY/5hwJ6YTYqPwSEW8++OH EDoDWY97XZte47wFtkg2VaMc6g/Xu4mfMCQnmMegt2iEff5tuVKNUzZ2/ qIHkm8r+u9Mxfs9Z0Tg58XWkb/WeRDw20CEBCnILSgiyZTsKs/btNBNEq w==; X-IronPort-AV: E=McAfee;i="6600,9927,10739"; a="338475232" X-IronPort-AV: E=Sophos;i="6.00,236,1681196400"; d="scan'208";a="338475232" Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Jun 2023 10:30:58 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10739"; a="744397459" X-IronPort-AV: E=Sophos;i="6.00,236,1681196400"; d="scan'208";a="744397459" Received: from smile.fi.intel.com ([10.237.72.54]) by orsmga001.jf.intel.com with ESMTP; 12 Jun 2023 10:30:56 -0700 Received: from andy by smile.fi.intel.com with local (Exim 4.96) (envelope-from ) id 1q8lNW-003GWA-2L; Mon, 12 Jun 2023 20:30:54 +0300 Date: Mon, 12 Jun 2023 20:30:54 +0300 From: Andy Shevchenko To: Alexander Stein Cc: "linux-gpio@vger.kernel.org" , "linux-kernel@vger.kernel.org" , Geert Uytterhoeven , Linus Walleij , Bartosz Golaszewski , "linux@ew.tq-group.com" Subject: Re: [rfc, rft, PATCH v1 1/1] gpio: aggregator: Introduce delay support for individual output pins Message-ID: References: <20230608162130.55015-1-andriy.shevchenko@linux.intel.com> <4808746.GXAFRqVoOG@steina-w> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4808746.GXAFRqVoOG@steina-w> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo X-Spam-Status: No, score=-4.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE,T_SCC_BODY_TEXT_LINE 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 On Fri, Jun 09, 2023 at 08:40:15AM +0200, Alexander Stein wrote: > Am Donnerstag, 8. Juni 2023, 18:23:08 CEST schrieb Andy Shevchenko: > > The aggregator mode can also handle properties of the platform, that > > do not belong to the GPIO controller itself. One of such a property > > is signal delay line. Intdoduce support of it. > > > > Signed-off-by: Andy Shevchenko > > --- > > > > I don't like the idea of gpio-delay or similar. We have already GPIO > > aggregator that incorporates the GPIO proxy / forwarder functionality. > > > > This one is RFC because: > > 1) just compile tested; > > 2) has obvious issues with CONFIG_OF_GPIO; > > 3) contains ~5 patches in a single change for now; > > 4) requires additional work with blocking sysfs for this; > > 5) requires some DT bindings work; > > 6) ...whatever I forgot... > > > > Any comments are appreciated, and tests are esp. welcome! > > FWIW: Replacing CONFIG_GPIO_DELAY=m with CONFIG_GPIO_AGGREGATOR=m works as > well on my platform. Thank you for testing! > But I'm not sure if it's worth the additional complexity for gpio-aggregator > to replace gpio-delay. The (main) problem is that it does not scale. Today we have RC chain, tomorrow (hypothetically) LC or LRC. Are we going to create (repeat) the similar approach for each single case? I would probably tolerate the existence of the gpio-delay, but we already have GPIO forwarder, which implements 70% (?) percent of gpio-delay already. -- With Best Regards, Andy Shevchenko