Received: by 2002:ab2:2997:0:b0:1ec:cbc4:63fb with SMTP id n23csp429399lqb; Thu, 29 Feb 2024 05:26:09 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCXPhk4JBffXsg/kRy+PD1YX82DznSRvidg0U9VIt6Fbas/3518sP+9m+J7EmlPYKfIFwnCUNIOv03cYPANOj1GUgV3DPFCT5LS5GsOYQg== X-Google-Smtp-Source: AGHT+IHvauVffvV/JjIdbHPTdlp05ms2kegJQ5jK3Y6kwbTrfz8JmcR99nmMMxknl1EYj0xCRCDP X-Received: by 2002:a05:620a:16ba:b0:787:79c3:93e3 with SMTP id s26-20020a05620a16ba00b0078779c393e3mr2261448qkj.33.1709213169525; Thu, 29 Feb 2024 05:26:09 -0800 (PST) Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id o25-20020a05620a0d5900b007871f6e9e57si1353941qkl.721.2024.02.29.05.26.09 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Feb 2024 05:26:09 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-86751-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@bgdev-pl.20230601.gappssmtp.com header.s=20230601 header.b=zCjzg7KP; arc=fail (body hash mismatch); spf=pass (google.com: domain of linux-kernel+bounces-86751-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-86751-linux.lists.archive=gmail.com@vger.kernel.org" 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 427301C20FD2 for ; Thu, 29 Feb 2024 13:26:09 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id AE4A57E585; Thu, 29 Feb 2024 13:26:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=bgdev-pl.20230601.gappssmtp.com header.i=@bgdev-pl.20230601.gappssmtp.com header.b="zCjzg7KP" Received: from mail-vs1-f54.google.com (mail-vs1-f54.google.com [209.85.217.54]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 98D387D3E9 for ; Thu, 29 Feb 2024 13:26:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.217.54 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709213162; cv=none; b=lJbdtlv1GZ01qMzEaF+/bFxMu+YcjTatH+DKkJUuL0f3FGPrylDMeO/Ulufn/u0NCvg8gkUjRj3WUmSTREO3FZxlZ4iFT/GmRp85sT9a3xvfJ47/44hPXO9w2dyc3VwQt5DiLR7OkF6ibcfxBIpt6uKbHz4/22QCEvdxH2k60Lo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709213162; c=relaxed/simple; bh=y/tJAMxQ+cwfsfIHcfgUj4FeCiOFwidgLKZSboa1EpY=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=tGThpx12/An47mA4Y+Int49IoWAN2LlSYItGR088IZp++wIEirVDXNVwUpHHTfLbAZH7EZxqTDT+0KWuAp/AHOiPcYrgeUbmXbk5Uo/FXsRKonNnYkmae1WIfDhV8/ncwsFLIOrI7yE4gPLpsdQOCKnEr9n9kcye0Z8PLhGjvHk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=bgdev.pl; spf=none smtp.mailfrom=bgdev.pl; dkim=pass (2048-bit key) header.d=bgdev-pl.20230601.gappssmtp.com header.i=@bgdev-pl.20230601.gappssmtp.com header.b=zCjzg7KP; arc=none smtp.client-ip=209.85.217.54 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=bgdev.pl Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=bgdev.pl Received: by mail-vs1-f54.google.com with SMTP id ada2fe7eead31-4725f7f712fso202301137.3 for ; Thu, 29 Feb 2024 05:26:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20230601.gappssmtp.com; s=20230601; t=1709213159; x=1709817959; 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=y/tJAMxQ+cwfsfIHcfgUj4FeCiOFwidgLKZSboa1EpY=; b=zCjzg7KPpaSkPJmlIcMfZ6I5tnLcK238aGGRKY4JCSiG31hRm7S6WYoAAI2nQFRfku 1fI/Fwin1Rxk4DoPb5xJCpJMdNrEeZEw80OS3AgMlnwRf9blx63GCDvtM2zAAwCvhapG 0TlOrKcPKDkDPgCUyhftSUvG2SWYLkcnLSSS5k3sAq7cQFRrWYIilOUj3yx2FKUneBw0 KBp6HN6nR/KtFb2Mbf7j7Yko/Pz9IvlWkDlg3EFB5oanvV4xtUWK1zYSdrQP6ppihy3l aD1QI6ftXnNhjc9icqfUNS2Ps1TMsaNvihsTCzUBDixxcXm1fJKDcdOPpUzqVkYdC3iY 821A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709213159; x=1709817959; 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=y/tJAMxQ+cwfsfIHcfgUj4FeCiOFwidgLKZSboa1EpY=; b=EiVx4ssuMW+aBR/MDZrf/CbWogn2s0dz29xnDd4RJ/hnvahbs3TS5OQMLQrlcZ0KBt OGmLJrrbpavt/Se0pOVw9L4/vEsXKw4LnUOMLODHRYrScSjRFtUK99BJ+4Tx3J9Q7pDK eVpfj+RM3cNFNS+Kdw0qUMuzVM+8G2sLD3C/InJOBSLn7Rj1JuQEfLn45okIAd6Cj7pk IqT6ROVNgObgdXHigOnMkEIypHqaIW9hfRC4gH1XytdeD7yy0ycAbr0hF3UiTVz/uwA4 cH2D4R7uQmnSaa4/EvBi/NTkD7vJ+Xbtf3BM684fuIwbhl36WWb+f5BUmUORwC6DNALF IHkw== X-Forwarded-Encrypted: i=1; AJvYcCXeYSBCT4RSHM1nwDLKYNM1jjlHyPDNYZB0M/CyBaZ4LtxuGVPvUNSVqx3CwHlmquYS/I7P/eYTbIO39+CKb2vD1WI+aeEqUtuToU6D X-Gm-Message-State: AOJu0YwQoViqmUun976OdbwCnw36oLkiOu64W2qeg7Uo3281wBiKRVqI u0Jj9kqANkbEiGLTu6fDZFY/3trulHDhbDfq1kwkDcYMv0RkZNvvF53q2No4L6GHitRyqtn9/n9 8Z8RMeGK2ubp9OuHfIGmk7UkoIiuwldeJhKIndw== X-Received: by 2002:a05:6102:f0a:b0:472:6e61:8df9 with SMTP id v10-20020a0561020f0a00b004726e618df9mr2240745vss.3.1709213159474; Thu, 29 Feb 2024 05:25:59 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240229084555.43701-2-arturas.moskvinas@gmail.com> <15e6e45f-7398-4703-8154-35e769bac94a@gmail.com> In-Reply-To: <15e6e45f-7398-4703-8154-35e769bac94a@gmail.com> From: Bartosz Golaszewski Date: Thu, 29 Feb 2024 14:25:48 +0100 Message-ID: Subject: Re: [PATCH v2] gpio: 74x164: Enable output pins after registers are reset To: Arturas Moskvinas Cc: linus.walleij@linaro.org, u.kleine-koenig@pengutronix.de, andriy.shevchenko@linux.intel.com, linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Thu, Feb 29, 2024 at 1:23=E2=80=AFPM Arturas Moskvinas wrote: > > > > On 2/29/24 10:54, Bartosz Golaszewski wrote: > > On Thu, Feb 29, 2024 at 9:47=E2=80=AFAM 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. > >> Change fixes that behavior by making sure chip is fully reset before a= ll outputs > >> are enabled. > >> > > Use imperative mood in commit messages - make it: "Fix that behavior > > by making sure ...". > Chip outputs are enabled[1] before actual reset is performed[2] which mig= ht > 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 a= re > enabled. > > Bartosz, does this look better? .. if previous pin value was set to 1 period Bart > > Arturas Moskvinas