Received: by 2002:a05:6358:489b:b0:bb:da1:e618 with SMTP id x27csp4551393rwn; Sun, 11 Sep 2022 15:07:17 -0700 (PDT) X-Google-Smtp-Source: AA6agR44KIXVWJhm9Jwz3aHnlGmiSDQHv8un+S3J2pifPKaZdmyKLdYO9FP7NEfTckQ7lOG/rjwA X-Received: by 2002:a17:90b:1d12:b0:200:461c:fa7d with SMTP id on18-20020a17090b1d1200b00200461cfa7dmr20674268pjb.38.1662934037314; Sun, 11 Sep 2022 15:07:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662934037; cv=none; d=google.com; s=arc-20160816; b=aTgQiLRjUYyEAIHLtggTVof9i8n67aFj5kwUOcn+M5x+Sgxzd9iNpG7GO0MH9w6zkc YZw0YVFdAoqCQI6iI2A1AC1R6DqT4ga03DQJWAJOldOgbGVfIkRKbiH/zJR2P32Gt7RF 4UdXmxTut4u8E6eLczRNRr50yeHRga3QUBKN0xEqMw9TYFoq+LEE0RrcX/K8cPfeJ1Bh UJhcXdVu2Wdqosypx102i7GljaM1lXKjLt6uzHiK2H3/ocFZk7ZoSLj3ZZsuHhGBWpWo FuqAk9bXE4Svtk9Irc1vp6BBVegNn6ZiXpoLDjDwCLCbhNqlUY8nXOmFJaZFbehXOLL5 nmKw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=QciXyEtl0SG2sFGkjdrqOCkJJthnC/gW3bZjn86sQs4=; b=iKCp5zVwmwGi6bBgbxMmtHesnbFfzuXCNemyn7gt1JOKHIvFtXlSTcDUWyBOrOe44A Ff0GvsxDr5zslFehwOonErChvyDO85u5XL2Rcf124t9cbIY1+wZ5q0KThCxX6vndF/pc dDNS2d7dft+EFGeUbmEG85MPkWsaG3SaF6FdRMmjq2F21n0qngU1UHRYFB6fP5kX6HBA y5kHiCrA4aAVd261rx4pg8dnTkhkqdzLWRiQeerMEBzgfUKla9uGz5hKCY+pCsuhGTjN G70aGOOmzY1V5C4CyqjH9jlcQz+JOLH4ypBQrzL3JZ4MyoMCzkHqCfbi8cEwK4kq/Djp rOoQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=nedOYSlu; 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=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q13-20020a17090311cd00b00176675b0cf2si7841762plh.381.2022.09.11.15.07.06; Sun, 11 Sep 2022 15:07:17 -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=@linaro.org header.s=google header.b=nedOYSlu; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229744AbiIKWDy (ORCPT + 99 others); Sun, 11 Sep 2022 18:03:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48302 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229662AbiIKWDw (ORCPT ); Sun, 11 Sep 2022 18:03:52 -0400 Received: from mail-oa1-x2d.google.com (mail-oa1-x2d.google.com [IPv6:2001:4860:4864:20::2d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C7917240B0 for ; Sun, 11 Sep 2022 15:03:51 -0700 (PDT) Received: by mail-oa1-x2d.google.com with SMTP id 586e51a60fabf-127ba06d03fso18824566fac.3 for ; Sun, 11 Sep 2022 15:03:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date; bh=QciXyEtl0SG2sFGkjdrqOCkJJthnC/gW3bZjn86sQs4=; b=nedOYSluEe/44mthiiwXwA1U+s+w585VU+/rvGTWb2MVLxhVMCOtmFyFNWm5Tx4nrs Y/VKNMFavwPbWQ/bofYNMUUJPmD3kZOTVO+aYqiQKDGGnLt0DiW/E6TXIIQAfb1hfnC8 Unml1Eyq/Z0zoF94XBmzFCALmSunHjPbqpVcgCEnWIDLogM+TohnaUANarxzJh/HQ3C8 c3OVSevJPkUdg3+l7n4xSg6hddlARLnc4NjToD2DgM8ilRTeFDmTVoXS/Qkgq5iPq4S1 ne7YFDXwa2QQW1WmawvHd059Au6Qxg9S7kwvrMK7AfmK7MLWZ1ZOx/Xa7bgGzMDyoUKB jqLg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date; bh=QciXyEtl0SG2sFGkjdrqOCkJJthnC/gW3bZjn86sQs4=; b=EQ5w2imVi8TVnhDWn0kno6MXchQh7HcTjiWFi4sE7OKMnyCsRLxbNeRz5KKgx5anLz YMRT6l3lmw8GdgrM9esLf2LPgZxXN0T84vpeZDLGYyFE1DCBCtK9QaO9ccgNDJa4BN25 NWkzC1A/4NSx43ZAoVL5K8MY2i223tAY6BDwtZFrPZvvNlY3kjiFQSJMEDuLPrsyOTag NaSyElsCsR1TXawUIGD8Aje6RGEFG0yUDrqkNMjUXio5RCm5WAAKky64zJQHBAgEwKWU 5wSW+6NOUZUxDb3VAn6V3awXSJ3A8KldwQjC73A31aBngOHht243vOH/5UEVkjh2ZPZZ bMFg== X-Gm-Message-State: ACgBeo2OZJ+F+8LPCUAQBhu+dAPGevIusG4yNiGqvIotj/tylqvFj1uD sUlLYk3MQvFmdNIfDr94JtNGosPoPgsEWg== X-Received: by 2002:a05:6808:201e:b0:34f:7d7a:3017 with SMTP id q30-20020a056808201e00b0034f7d7a3017mr2927903oiw.219.1662933831071; Sun, 11 Sep 2022 15:03:51 -0700 (PDT) Received: from fedora.attlocal.net (69-109-179-158.lightspeed.dybhfl.sbcglobal.net. [69.109.179.158]) by smtp.gmail.com with ESMTPSA id r19-20020a056870439300b00127d2005ea1sm4664249oah.18.2022.09.11.15.03.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 11 Sep 2022 15:03:50 -0700 (PDT) From: William Breathitt Gray To: brgl@bgdev.pl, linus.walleij@linaro.org Cc: linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org, William Breathitt Gray Subject: [PATCH 0/3] Introduce the ACCES IDIO-16 GPIO library module Date: Sun, 11 Sep 2022 16:34:37 -0400 Message-Id: X-Mailer: git-send-email 2.37.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,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 In a similar vein as the Intel 8255 interface library module [0], the ACCES IDIO-16 GPIO library module is introduced to consolidate much of the shared code between the existing 104-IDIO-16 and PCI-IDIO-16 GPIO drivers. The idio-16 module exposes consumer library functions to facilitate communication with devices within the ACCES IDIO-16 family such as the 104-IDIO-16 and the PCI-IDIO-16. A CONFIG_GPIO_IDIO_16 Kconfig option is introduced by this patch. Modules wanting access to these idio-16 library functions should select this Kconfig option and import the IDIO_16 symbol namespace. [0] https://lore.kernel.org/all/d1a24895f2ea67f689c24c34a20ddb43cd7246af.1658324498.git.william.gray@linaro.org/ William Breathitt Gray (3): gpio: idio-16: Introduce the ACCES IDIO-16 GPIO library module gpio: 104-idio-16: Utilize the idio-16 GPIO library gpio: pci-idio-16: Utilize the idio-16 GPIO library MAINTAINERS | 6 ++ drivers/gpio/Kconfig | 11 +++ drivers/gpio/Makefile | 1 + drivers/gpio/gpio-104-idio-16.c | 91 +++++------------- drivers/gpio/gpio-idio-16.c | 159 ++++++++++++++++++++++++++++++++ drivers/gpio/gpio-idio-16.h | 70 ++++++++++++++ drivers/gpio/gpio-pci-idio-16.c | 119 +++--------------------- 7 files changed, 281 insertions(+), 176 deletions(-) create mode 100644 drivers/gpio/gpio-idio-16.c create mode 100644 drivers/gpio/gpio-idio-16.h base-commit: 3af20d2723be5f70e1ce818504a4c093a81b21f5 -- 2.37.2