Received: by 2002:a05:6500:1b8f:b0:1fa:5c73:8e2d with SMTP id df15csp584653lqb; Wed, 29 May 2024 05:08:53 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCW/4Wh6fMXLgA4Brtq0D+61VOFVtGElCtlT9ZpCPA47lIhcyxRSwBEu8gbcWB04zaD8Rw0YRQxmT3gOxuKVJPrLPE8MQeDeH1z80VWegQ== X-Google-Smtp-Source: AGHT+IH3nY9vSGLA8tbCAtG1kvSQ3hzvt4Py1I8Qro+6vWc5iNUb5g1+NMjF+PklMhpsfKZ2KYpf X-Received: by 2002:a05:6a00:4007:b0:6f4:46ea:2f26 with SMTP id d2e1a72fcca58-6f8f36ffaefmr16208353b3a.15.1716984532750; Wed, 29 May 2024 05:08:52 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716984532; cv=pass; d=google.com; s=arc-20160816; b=kg6MEkcCNAc0DASQlDbPYX5F1429XRYVLo2mnv2whvvTRtMoAv4/3ZKgsmlg5gzuNv 3+/sQTk+jYK9fF+z6Glw6S8V6ByR+wQ56NwWqCFp8uYMhnLg18cn22nrmx3FsnceN0jQ ZJVHIr4x8Jze1HCN5sOfHkZ/ZKlqbGGeyY0N4FDU+dEukTz2pnT46qX3tzA8XNL+dK4n Zdfu3zPIdAHlBX/wfkzTVX8Ct+E7aFhsL2xnqnbxYCukMXxciOufKIDsLoXSexUze7c8 fvR6dp1P74a9RNg0fkwtp5Qd+JmlJO4/Dh076czkNoqSCnfbGk/mUQ3W8DPQW7zpC0x3 gtcQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=hjE/8Hdmv5+qONkYGkMmdQo6qbVXwwAWCf8Z0CyKKLc=; fh=tOm54aRaUGVu9vQF4wBjcVj7g6sLV4G8sALB3S6cxNk=; b=VdxQrsNAD3/7c7lV31TW3cHS2q35DmJ2eWkzv52ENQ/o6yu3RtKmyTuYz5rk/BtR1r YdHolaA5hsCKS4WzHRs1V3YUJA8s0bWALrVFrb9zt9SjeCY85Bq9nP4KRyrxcI+xpQn/ PUXsg0yVHjueyZhOgCDT8IFXK5HkfjUP0rSDqKz67ovnL/t7zgYICnvcaS1xleFEVt5R 0VP9lZzDoq5c4d0vcahzA6vhEizbTJq9ZXdwQMP/PIPsrIbWx8Yztpn8h9pRdbbm+rBV zKUmOBRcfg9BD1XuJeswZl+X/mvzCJe3r+JRYJsgCJeMmeW8mY3pNOQN9rZOB+8Uy1pj 9Tcg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@bgdev-pl.20230601.gappssmtp.com header.s=20230601 header.b=D8FGKOsf; arc=pass (i=1 dkim=pass dkdomain=bgdev-pl.20230601.gappssmtp.com); spf=pass (google.com: domain of linux-kernel+bounces-194059-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-194059-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id d2e1a72fcca58-7022951084asi257046b3a.342.2024.05.29.05.08.52 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 May 2024 05:08:52 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-194059-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@bgdev-pl.20230601.gappssmtp.com header.s=20230601 header.b=D8FGKOsf; arc=pass (i=1 dkim=pass dkdomain=bgdev-pl.20230601.gappssmtp.com); spf=pass (google.com: domain of linux-kernel+bounces-194059-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-194059-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 5B575288692 for ; Wed, 29 May 2024 12:08:50 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9DB21180A9E; Wed, 29 May 2024 12:08:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bgdev-pl.20230601.gappssmtp.com header.i=@bgdev-pl.20230601.gappssmtp.com header.b="D8FGKOsf" Received: from mail-lj1-f169.google.com (mail-lj1-f169.google.com [209.85.208.169]) (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 3FBEC53802 for ; Wed, 29 May 2024 12:08:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.169 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716984524; cv=none; b=fdVHqzKObcOleskdd2DhcbP31hwnHU4sIZHDx3vDGf6oiwdhvrS0EIGfHndRaghn8+EeC4rexQeRYBNhpNubHghbcAewwxsq7UXYwE6cS+KcSIoeL2pTueBV9T8kRrwd6XFYiTx4mtmu0A3IPUsdmjMzAF9Qczzv33C3O1IT82w= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716984524; c=relaxed/simple; bh=Hpc7i4DE/SRzxSPvG9MuoN2CLGHMX/dqTuPNf7zscHw=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=V9oKOE3AAPpB/lR6ByfsM94ELs6vSA/jmHz9hTiL+30rFZCQHpYb3n0H13iCoT2g7XsHqddT3CLchVr07qBVGfxY0zMs6fm+tN4dJy2RYa4v3chIqKt30Xr5dgK3/RxP3U7DoY/q/gbr0Ffq1j2xU8QAm8hC+I/KwKRZ0t6E4oY= 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=D8FGKOsf; arc=none smtp.client-ip=209.85.208.169 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-lj1-f169.google.com with SMTP id 38308e7fff4ca-2e3efa18e6aso8426711fa.0 for ; Wed, 29 May 2024 05:08:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20230601.gappssmtp.com; s=20230601; t=1716984521; x=1717589321; 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=hjE/8Hdmv5+qONkYGkMmdQo6qbVXwwAWCf8Z0CyKKLc=; b=D8FGKOsfI3yybqD6iQC64C+8BahIQUdoSvuZrEiWoAfKXFa+MtHNBjzcT9c1NolCkb QsSaOtrcn3R5FX8YnqDvNFp8EmxozHrDqXP68AXxMRwpys/9a3Ij2UqKjPngEIbWQyRD ZBJZlHIwB6FFwJXYeZTLErk1JeaXpSI9YobdWLeF76jdDi4bVNWF1kiX6v7G/vb3A5Kn 7b6noByIwf2Ky+RoH8InUdrTL7g4MLWL2gn1hQiYz2d7LZ2mcMG2Fep3T8nGv9K4FoSG W+QvslnK8m+NUPa2+76zUbKRYBr43vI0aK5bk8d8TCncyBJK2Rv26UXt4dRwpD2wsEzJ Vkhg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716984521; x=1717589321; 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=hjE/8Hdmv5+qONkYGkMmdQo6qbVXwwAWCf8Z0CyKKLc=; b=D9RDr1CCvl9YKYCRVFtK3AqPn4UIiRByzZTiD/BmNJHwjc4iJac8Nh0vvbmxZ8ip8H RU+jj5mQcJK/ScRwR9AGEh6ZBIgMXCmNzp2zt6qGPvgSK8bhEVOQlzItEhBb8XmFj6/X ShhuU2YOwmOIRnAxPABxsQpkofLK0cJKWTKT+HR2DNuqWt6F3iiC4CvfJDQSVKw4GPIK IwtESAcAd/+30Upkr0mHZvHmAxhJWerBeuC4mxmaRIO058H3WRG0ytuHqwRBjvK+naPc O0ICVgHK0YDkUDzQP/6CydTXmfKZo+cESBJV69rnqOXGlnsjvBBAeoBwR/8D1ioON+A2 kAKA== X-Forwarded-Encrypted: i=1; AJvYcCXJv2wwl8gWGrJ//J62BcGnF+PsA9WyycwBGpJldVgE7HeNrOuaVrk5cv/F+PtaGhMlC7TQDUNGJ4gKjSI8udiqNGKqBZeORmXOAmvc X-Gm-Message-State: AOJu0YznIHiNCVbtvQ61EW8giZlTF+eIHM5mskp2EQABRBVwvd7KHhuV Fb/hlsikT8Vhx2whaLxGuUhbFkWBvYpNEbrc4Lnr4IEs4Qj+RH8sLoVNWEG8XAOJD/NZE3M6mJ7 lzKqJ0wmIuY2WK0NZ9HN+y4AtXWtUysvWS48eHg== X-Received: by 2002:a2e:84d7:0:b0:2e9:8294:e6d0 with SMTP id 38308e7fff4ca-2ea4c8a02e8mr4368731fa.25.1716984521398; Wed, 29 May 2024 05:08:41 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: In-Reply-To: From: Bartosz Golaszewski Date: Wed, 29 May 2024 14:08:30 +0200 Message-ID: Subject: Re: [PATCH 0/8] gpio-tqmx86 fixes To: Matthias Schiffer Cc: Linus Walleij , Andrew Lunn , linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, Gregor Herburger , linux@ew.tq-group.com Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Wed, May 29, 2024 at 9:46=E2=80=AFAM Matthias Schiffer wrote: > > This is the first series of improvements to the tqmx86 GPIO driver, > which fixes some long-standing bugs - in particular, IRQ_TYPE_EDGE_BOTH > can never have worked correctly. > > Other patches in the series are code cleanup, which is included as it > makes the actual fixes much nicer. I have included the same Fixes tag in > all commits, as they will need to be cherry-picked together. > > A second series with new features (changing GPIO directions, support > more GPIOs on SMARC TQMx86 modules) will be submitted when the fixes > have been reviewed and merged. > > Gregor Herburger (1): > gpio: tqmx86: fix typo in Kconfig label > > Matthias Schiffer (7): > gpio: tqmx86: introduce shadow register for GPIO output value > gpio: tqmx86: change tqmx86_gpio_write() order of arguments to match > regmap API > gpio: tqmx86: introduce _tqmx86_gpio_update_bits() helper > gpio: tqmx86: add macros for interrupt configuration > gpio: tqmx86: store IRQ triggers without offsetting index > gpio: tqmx86: store IRQ trigger type and unmask status separately > gpio: tqmx86: fix broken IRQ_TYPE_EDGE_BOTH interrupt type > > drivers/gpio/Kconfig | 2 +- > drivers/gpio/gpio-tqmx86.c | 151 ++++++++++++++++++++++++++----------- > 2 files changed, 106 insertions(+), 47 deletions(-) > > -- > TQ-Systems GmbH | M=C3=BChlstra=C3=9Fe 2, Gut Delling | 82229 Seefeld, Ge= rmany > Amtsgericht M=C3=BCnchen, HRB 105018 > Gesch=C3=A4ftsf=C3=BChrer: Detlef Schneider, R=C3=BCdiger Stahl, Stefan S= chneider > https://www.tq-group.com/ > Hi Matthias! Not all patches in this series are fixes (as in: warrant being sent upstream outside of the merge window). Please split the series into two with the first one containing actual fixes to real bugs and the second for any refactoring and improvements. Bart