Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp5613245imw; Wed, 20 Jul 2022 08:59:19 -0700 (PDT) X-Google-Smtp-Source: AGRyM1tuokiPC9RvGvcugm5roGA0BxsvAByLK/klksiiQ0ejiBC8BJN/plO3ESaA/l0lSpwKRYp3 X-Received: by 2002:a17:907:2896:b0:72e:e570:b6f9 with SMTP id em22-20020a170907289600b0072ee570b6f9mr28425676ejc.159.1658332759714; Wed, 20 Jul 2022 08:59:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658332759; cv=none; d=google.com; s=arc-20160816; b=DwK96aTeKN7ty6RANtnYMxK3Pax5/CGG4i3iNeWnrpHDWQ8hJVBqRjWUEdEBBAUiKL bsI6JRlyLiFJX2U1oBSc643UIqFXn1mfLvjATbWrODS8jYcx8++anz+M7S0gZHWNmhr6 il0IRBIELM0xMR09ftCpt4whHZAb/3+O8v5wAY4RWGMiziTHDK6NEr+CsG3mzl3aymAK 77VENUUY/TtT1t4uXhSf2vZucM2x3rJ4cEE0P3q2Iz9igyJo6IhCbQg3EggxjssKF6kB EHww+ns32K8vxxr5RJeVWM54xWeRHRrLfcg6F/hhDzJR8osFqzxk71X5ibZDftwb3Pme Rv2Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=ayP9OITtlZ1Sfv3DXFuDs6ga9EFZSP50v8E/pG2VTJc=; b=T/U7MQxEgthBpKUc1KssrEFvBA2O0HZjAJJdRXhLBig9kaBfu5EPQhPKTU6j+KpfnM /OmRtHYKwKCHbQqFj7TLh+yGtMayvk9ZoxkNsejyNVHqiUrbwFY1sXjByeHnxruUu0kY 3+KgN44tHfV2Ipgqwil7dnwehAC7KGH2PddmntoQ93KPQFGwiFjcY6LBO67fJAoWmsLU dACIkDyu+YnhNeL4Djh7Y32XTginYLeNWPwi9qRdgLFeZ6QIUquWZPFoMtoXUAtFTCI2 H8Lu8Aavz0tBwiOa4qvUV4gLcBNQmbl2Sh6gP7tXQQNoCSF2pyem1uVfPzg7xRDOnm6B npUw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bgdev-pl.20210112.gappssmtp.com header.s=20210112 header.b="E9knl/Vl"; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id dn15-20020a17090794cf00b0072f1c604fd4si1246958ejc.713.2022.07.20.08.58.54; Wed, 20 Jul 2022 08:59:19 -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=@bgdev-pl.20210112.gappssmtp.com header.s=20210112 header.b="E9knl/Vl"; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235586AbiGTPrw (ORCPT + 99 others); Wed, 20 Jul 2022 11:47:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55848 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232553AbiGTPru (ORCPT ); Wed, 20 Jul 2022 11:47:50 -0400 Received: from mail-ed1-x533.google.com (mail-ed1-x533.google.com [IPv6:2a00:1450:4864:20::533]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C8DE943307 for ; Wed, 20 Jul 2022 08:47:47 -0700 (PDT) Received: by mail-ed1-x533.google.com with SMTP id x91so24329835ede.1 for ; Wed, 20 Jul 2022 08:47:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20210112.gappssmtp.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=ayP9OITtlZ1Sfv3DXFuDs6ga9EFZSP50v8E/pG2VTJc=; b=E9knl/VlfLTd2IbwDY32bAF+kgg3HA1KulcjPuas6rjhQy8DGJI7SZFw8Y4aNspZyN FNEHKR4YQEoBTy3i4+CG4OK+xUgZpCEH2RdO9xz9wyk4SSbIyVbd3+A2TUZ/9udXN9Zu gBwtsWvPAXR+W0/RfJ8eB3ttcy6ObVFy4UQ71HaO6NbLlsAurfPQgnmw+IGQGx9ovhoL 53g/WitqT3e4lxeBqNuRYc2yE1isAf3SpiGceM5pkLLFzggEfFCzz2zufW+l5B5Y3cCQ 8Lh2jPy+PCxNK/5n2n+xpqi/pGFV4h08Cxy+PA6u/mi4Pi0Eq6mr9VFssAkJg2H6xnHa KXLw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=ayP9OITtlZ1Sfv3DXFuDs6ga9EFZSP50v8E/pG2VTJc=; b=4gOJLLY0lLIpROYeO2cuSq2zGMSPCM3g4314CLtlxobc+lMA1OaBw5OSpiNacgBjk2 hsqUti7UylulSptmsFZHW4Hx5NoqCG+UuPgxCoRtn3e0b6Q0pf5dw8T1bHeAz3ppCacx G0uaAjtX9doX4JcHfz1xNJ/AOe4xHVN56JOPlicV6CDqjrCC2Q18iiXT0oSXg0NCvX8u X28yt8XCrd9oQv/HyFkBERLapt3uuCSFQsBA+CV8uW2nmdE4K42fdPILOymcfNCLTtWl dI7fYzNrHMhCpKoefi9U2vx8lmbyvczVOZLrOSaohBmr0Fdhdm2vLTc8y0jyd/vE/FrV g9QA== X-Gm-Message-State: AJIora/vWj3ChYWCm/1+pfkFasu45fF1CLqCWuNd/DMbW4/ZJYHiUPwv JGDF+VHbk/bqh18VFw8KYlyVs3Za5xbmWgWv6dVoeg== X-Received: by 2002:aa7:d8d4:0:b0:43b:bc29:de65 with SMTP id k20-20020aa7d8d4000000b0043bbc29de65mr2114508eds.82.1658332066375; Wed, 20 Jul 2022 08:47:46 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Bartosz Golaszewski Date: Wed, 20 Jul 2022 17:47:35 +0200 Message-ID: Subject: Re: [RESEND PATCH v4 0/6] gpio: Implement and utilize register structures for ISA drivers To: William Breathitt Gray Cc: Linus Walleij , "open list:GPIO SUBSYSTEM" , Linux Kernel Mailing List , John Hentges , Jay Dolan , Fred Eckert , Paul Demetrotion , techsupport@winsystems.com, Andy Shevchenko Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_NONE autolearn=unavailable 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 Wed, Jul 20, 2022 at 3:46 PM William Breathitt Gray wrote: > > Rebased onto the gpio/for-next branch. > > Changes in v4: > - Cleanup superfluous header includes from drivers > - Add note to CONFIG_GPIO_I8255 Kconfig that if built as a module the > name will be 'gpio-i8255' > - Remove 'const' from '__iomem' pointers > - Replace ambiguous 'group' terminology with more understandable 'bank' > - Use more natural '>= 4' expression to represent upper nibble > - Refactor i8255_set_port() to take more common pattern of mask and > bits > > The PC104/ISA drivers were updated to use I/O memory accessor calls such > as ioread8()/iowrite8() in a previous patch series [0]. This > patchset is a continuation of the effort to improve the code readability > and reduce magic numbers by implementing and utilizing named register > data structures. > > One of the benefits is that we can now observe more easily similarities > in devices that share similar interfaces; such as the i8255 interfaces > used by the 104-DIO-48E, 104-IDI-48, and GPIO-MM drivers -- as well as > the similar interface used by the 104-IDIO-16 and PCI-IDIO-16 drivers. > > A new module supporting the Intel 8255 interface is introduced to > consolidate the common code found among the 104-DIO-48E, 104-IDI-48, and > GPIO-MM drivers. > > [0] https://lore.kernel.org/all/cover.1652201921.git.william.gray@linaro.org/ > Series applied, thanks! Bart