Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp130764rwd; Mon, 12 Jun 2023 11:04:41 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4vKMivfEY+juLTisRGZ1AIi6gowML4MKJBsSxkABgaCTDiNDH6F2JZCbJ9PsREpM1PI9sC X-Received: by 2002:aa7:88d6:0:b0:63b:5c82:e209 with SMTP id k22-20020aa788d6000000b0063b5c82e209mr11416153pff.10.1686593080864; Mon, 12 Jun 2023 11:04:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686593080; cv=none; d=google.com; s=arc-20160816; b=YFOZUUpL52nh30TP6YJNqOV1eA3tpJr0U4HWH6F5EcPDZ7lyBqxDHb0h538G3kWoaH l8DmHAo8x6fHuYGQ781m9RYLgHIGz8k+IigySw1kbDDLQrF7iVpDYNCAVyXEgYekpRpT 3/Xz+2kW3f0emWX2hxwBbiTXdGKoG6RbgwnVpKq+0mY6BcEc+N28LqHRJgCU4Nw7T7K8 EqRxG2Ry2qbmpZmKHp4v1MMUUe0IzibjuluT13EuL6dOL/d7C7YWdfhJuzvOvazthiZf 1c0Str4nwrk+XlqILNvt+isfePOXLhq2KTLseyMhVsifM/rkepnAVcv/Ct4EtKOSpeFj 9Bwg== 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-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=OrLGk8o/yzItGDxQ0oz0o4+vwtS6NwrmT/JORX2riUg=; b=FDAcSsQVdjNGjcUd0N7Dv1g4KzL3t7XDmCVx8/oc4E2YrjpEeshiyyWcLV13YGMZSW ZTvPCBJPH9Gxd3pIv7fvSYLdXqq6QLDX/kFOhSWJmYcMcajbVRDaRyTgtx2QMSA5XilB H9Y86UuSpyr2YKTXlzjboqk/UV3MAm7wI8J3xTCTmBOpUAcUXv7czLDXPyg5xPwzwt+h 3EcVAKMvYtxU+YhNThqDhlTblsjThdoeAE0WeiGclkD0dkXBshicY6/m1qGZFxEFUyYX W3TrVtUflm6XAY958s6siqIBmj2/nPfH+0di8aRyCFUBMTwXHNigy7wnk8swBaTZ1cOZ r3Hg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=j2RxsKNG; 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 j18-20020a633c12000000b00541bf36f2d0si4319873pga.379.2023.06.12.11.04.19; Mon, 12 Jun 2023 11:04:40 -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=j2RxsKNG; 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 S235972AbjFLRga (ORCPT + 99 others); Mon, 12 Jun 2023 13:36:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42510 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230165AbjFLRgF (ORCPT ); Mon, 12 Jun 2023 13:36:05 -0400 Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 75A163AA5; Mon, 12 Jun 2023 10:35:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1686591307; x=1718127307; h=date:from:to:cc:subject:message-id:references: mime-version:content-transfer-encoding:in-reply-to; bh=5WMQQbOARw55yzbpOK/Pk6hobT1SHUO/FQ3x65ntFcQ=; b=j2RxsKNG1eZMS+lULufT1KUkd+JB+Uy804emRn+Mai3nJF4P+C/GQVzm x42GpnMir6nrEGEVfV4dpqYLyi4FQHC4NcV+4bp5MAsuvm8sESupq0GAD vH971/LPpRHL2CACtX4N0fMO9rxa6hJAfM8a0CCBe/BvMMWY+QWwhfFCG h/0nhjsBWoGhyWCJUC6TkO4r4NobyRZ9C9ZLEzg185I4sHnzlVCAgxwml oXXY845CNhlFfYl9N1J6noXWVpJGLhzm/23Q0Mgv+CpUC3ayxEM+Nel4A xKzxWumlnOggIkfWxJJfJmpdUak3EyYlu4+5PkdwYMq9sJQek/xWMGe4+ w==; X-IronPort-AV: E=McAfee;i="6600,9927,10739"; a="337749672" X-IronPort-AV: E=Sophos;i="6.00,236,1681196400"; d="scan'208";a="337749672" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Jun 2023 10:32:40 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10739"; a="776474295" X-IronPort-AV: E=Sophos;i="6.00,236,1681196400"; d="scan'208";a="776474295" Received: from smile.fi.intel.com ([10.237.72.54]) by fmsmga008.fm.intel.com with ESMTP; 12 Jun 2023 10:32:38 -0700 Received: from andy by smile.fi.intel.com with local (Exim 4.96) (envelope-from ) id 1q8lPB-003GXT-0L; Mon, 12 Jun 2023 20:32:37 +0300 Date: Mon, 12 Jun 2023 20:32:36 +0300 From: Andy Shevchenko To: Geert Uytterhoeven Cc: linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, Linus Walleij , Bartosz Golaszewski , Alexander Stein 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> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: 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_PASS, 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 09:11:04AM +0200, Geert Uytterhoeven wrote: > On Thu, Jun 8, 2023 at 6:23 PM Andy Shevchenko > wrote: > > 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. > > I think this makes sense. Thank you for the support of the idea. ... > I hope no one ever needs to use the values from the example in the > bindings > > enable-gpios = <&enable_delay 0 130000 30000>; > > on a non-sleepable GPIO. Not only is a looping delay of 130 ms very bad > for system responsiveness, such large delays may not even be supported > on all systems (e.g. ARM implementation says < 2 ms). > So for large values, this should use mdelay(). > > This also applies to gpio-delay, of course. Thank you for pointing this out. I will think about better approach. Shan't we add a comment into DT bindings to warn users about this? -- With Best Regards, Andy Shevchenko