Received: by 2002:ab2:3b09:0:b0:1ed:14ea:9113 with SMTP id b9csp66784lqc; Thu, 29 Feb 2024 10:25:58 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVcq0ChMiGylflutRxFRPF7mkOwjPS550QFodldAA/LZA2ncXxST2tqWNdKYCthSEv1SEOng7Ah+aD6HOW1uP/fdLD289HSHNx/NVYZWA== X-Google-Smtp-Source: AGHT+IGng03s3yK4L7pUTsZZrjz5jN7Hgrbvxr7jOc6vzz/9Zw8QATj6+a2hiwW01MAq1Iwvq3hj X-Received: by 2002:a05:620a:1a91:b0:787:f466:bc9e with SMTP id bl17-20020a05620a1a9100b00787f466bc9emr3696319qkb.16.1709231158636; Thu, 29 Feb 2024 10:25:58 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709231158; cv=pass; d=google.com; s=arc-20160816; b=KtJX3TkqRYkqXVGLRjIXsK80eG3hA2cxIK4RnDQgnKAIg1ezoD/7/mcBZC9UVjvk60 2OM8liCTDCqNoCGz57VZr1yF+zc3fyVuEIeP9yTk0wvnDbePevrSF1gOB5bvHrDERK4N bKEpGsvcK0LlwPj5v3I7QGyfrm29IJ3AFcxwEJOOrZNdiOuIDOx9hgZ5M9s4haJp7Hi6 nZXAq4JvbZ2zCUzbz05JQtr5McXn+11YRUbAZqcU4z0jbHRtAmB6v1RgoPPvu3hA9MKU lodtz8IMZieN/IY/HD/cA3sRR4X1rVRTk5Ch6i2XEBVAn+Rq1+A1lBVsd2Q1ZgAqaHNA Dnbg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=organization:in-reply-to:content-transfer-encoding :content-disposition:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:references:message-id:subject:cc:to:from:date :dkim-signature; bh=RSuQI4WcB2eNG7TS2W4Big6y5HSfmbR5ZvJvuKgNrkU=; fh=OH2I982LAHOj0cy41a8HtKDVycFWL9ysJ2SLgelUM3c=; b=YW5EcutmrQpD+Lf4/AGfSwWRGHBXxc6UjvwpiIbahndZe2ClIXzRI73lbZB1VepOGw CzfMs0Wnd7++DeUijBn8BSEEmxdi12rhFJvkjKdcdP6l1z3grwfzB3ngQeOK9X9eO/6n GkQtB/9wGPR9wmHwphldQswd9jUSiBohlLX+IQW9afBnGdj5F21uaiDVyXKq91fQlqNt y41Yat2Ym2RDAd5op9wmiEzUUJTw7+Em5WBVeoI0nEjvDOIBvtt8Jn1AUZ49V9tRdlSW txVpdgVhbLb2hRvoa7t+RK2hRdKwWjpN7Y5Gi7Y5pxcJGCV0gWnwx388lWPzQjT+KLlY Zz7w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=jceeR8wy; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-87282-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-87282-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id u26-20020a05620a085a00b007872706a904si1859551qku.317.2024.02.29.10.25.58 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Feb 2024 10:25:58 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-87282-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=jceeR8wy; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-87282-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-87282-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id F202E1C21B13 for ; Thu, 29 Feb 2024 18:25:57 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B29CC7C095; Thu, 29 Feb 2024 18:25:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="jceeR8wy" Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 09C687A125; Thu, 29 Feb 2024 18:25:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.17 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709231115; cv=none; b=RbPEwk7R/fS6i1sL9h08l3Q9xStclSXZuu5vM4eiHnRfqjGDgVxVEHWmjAVqVkXJcmbYjjI240Jx1pwI3WXixLp2sRvi7mLaLCieFVvPSClRHryemJrLpaF9c4Aw215FcbbDx/KoVXO4TakNALoNnWM8mxPAeAaBN8Wko6j55n8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709231115; c=relaxed/simple; bh=WG/auPH2LiN1tdBcctW2J/dMlONAGBdtn2uJtuc97aw=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=GpXK1GigbXArTx5QyzICHq3dwhs/6LFoZ7JlYIN+fIcMKLAf1QxLdgdBOyikGtxAB5kSGKh2KckBYcnLevOcg2lfaJBFmxgyGFIN1RYOBUy6Pm9VSUnwLbq+AHjp7GLROQiL0prxSCVYiRai7XJj7Em7Bw7BGJtocNwspL5lMsE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=none smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=jceeR8wy; arc=none smtp.client-ip=198.175.65.17 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux.intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1709231114; x=1740767114; h=date:from:to:cc:subject:message-id:references: mime-version:content-transfer-encoding:in-reply-to; bh=WG/auPH2LiN1tdBcctW2J/dMlONAGBdtn2uJtuc97aw=; b=jceeR8wyBK4XLLDoRY+wgKzloD/pRfl+5DAeO+xvKOdwq2hEDusKw7Kb ck+5qRza8dNCuyAVsHul3JyvG3VRfV9I7oTzb/XEqMEJ+dem6H5IAlcF0 1TUH+re1dA2NPR8w0NokzoJlpzZKbiOt2H4l1jrL53TDeauceRvo0KxKO xsgpHXSiJaiSbEaeGDslTzInD7zmZnRV1OyrIJzxNNC09xW3wHaTjMDQV i4kQsWseLQxRcH45YjkM1tpF4gkxpSZXZhbJw9L/3C4Wpxr1VZNHt+DeQ +nrM7WLP7rG/nkxZV+uKd7vg6Ths4alyTq9SnygglRT9oo9obf+MbZJcT w==; X-IronPort-AV: E=McAfee;i="6600,9927,10999"; a="3898978" X-IronPort-AV: E=Sophos;i="6.06,194,1705392000"; d="scan'208";a="3898978" Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by orvoesa109.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Feb 2024 10:25:13 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10999"; a="913988804" X-IronPort-AV: E=Sophos;i="6.06,194,1705392000"; d="scan'208";a="913988804" Received: from smile.fi.intel.com ([10.237.72.54]) by fmsmga002.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Feb 2024 10:25:10 -0800 Received: from andy by smile.fi.intel.com with local (Exim 4.97) (envelope-from ) id 1rfl5f-00000008kDa-3ai1; Thu, 29 Feb 2024 20:25:07 +0200 Date: Thu, 29 Feb 2024 20:25:07 +0200 From: Andy Shevchenko To: Arturas Moskvinas Cc: Bartosz Golaszewski , linus.walleij@linaro.org, u.kleine-koenig@pengutronix.de, linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2] gpio: 74x164: Enable output pins after registers are reset Message-ID: References: <20240229084555.43701-2-arturas.moskvinas@gmail.com> <15e6e45f-7398-4703-8154-35e769bac94a@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: 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 On Thu, Feb 29, 2024 at 07:24:09PM +0200, Arturas Moskvinas wrote: > On 2/29/24 15:25, Bartosz Golaszewski wrote: > > On Thu, Feb 29, 2024 at 1:23 PM Arturas Moskvinas > > wrote: > > > Chip outputs are enabled[1] before actual reset is performed[2] which might > > > cause pin output value to flip flop if previous pin value was set to 1 > > > in chip. > > > Fix that behavior by making sure chip is fully reset before all outputs are > > > enabled. > > > > > > Bartosz, does this look better? > > ... if previous pin value was set to 1 period > Andriy, Bartosz, is commit message ok? LGTM! Please, send a v3 with it. -- With Best Regards, Andy Shevchenko