From patchwork Sat Mar 17 15:49:39 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: William Breathitt Gray X-Patchwork-Id: 887313 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=vger.kernel.org (client-ip=209.132.180.67; helo=vger.kernel.org; envelope-from=linux-gpio-owner@vger.kernel.org; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="manPGLfZ"; dkim-atps=neutral Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 403Rbc6ZW3z9sT1 for ; Sun, 18 Mar 2018 02:49:48 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753352AbeCQPtr (ORCPT ); Sat, 17 Mar 2018 11:49:47 -0400 Received: from mail-yw0-f195.google.com ([209.85.161.195]:37560 "EHLO mail-yw0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752875AbeCQPtq (ORCPT ); Sat, 17 Mar 2018 11:49:46 -0400 Received: by mail-yw0-f195.google.com with SMTP id y23so8919099ywy.4; Sat, 17 Mar 2018 08:49:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=BljZZa7pa5ffKHRsywPw4ITvYra7caYHmXNWOYytfq4=; b=manPGLfZwgcBbHLtlpAI6xbAiJfOyaeVM0GbpaBs28xh4rFhgVM/MBDm8T8yfRD/e5 Ms4K6D8cdtv8v3lAk23Pe0f8tKjOXG40BVNmhbgOKBPFa47vIAO4RJVNF8Xcol/Sw4i9 HM09c3MerrxrPD74mRAn5dzMHatycrkvGMm9a1qZ1+McNukiq878KM6Iwo5KiILkFtV3 j6L0yuUjrgMhp9y6iGPHY8T8V2lmVu3MK2j1DDOcBg+kfbMa2xbqlqAHUUEvOIRHVmRT 50bQr78Dzq2Y9COsd2vnqQffD1wbSu/ZIRvYvW+lUQXQWSQYzh0vteyIhBa41H4Zqf97 MnEA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=BljZZa7pa5ffKHRsywPw4ITvYra7caYHmXNWOYytfq4=; b=LOyhBYWT21XIW2aXcMRe3ElEIXm7FlPZdi62IXhjM5ZZpYBhloAMRcDbTreS1Z57MI FZueMq+iJyWwEdkqOQpmg4SRkQN/JI6sLYnng2jPKCYc2VPLXKrET8yDRnHqdoBcfyuu H+jK1VNUXMGXEHUUfdSfOsqn5ARqicWawn2HvqVKIk9j2Tjrsd8SC+Luom554qiGVajk UIgrHlilqR3pSqgjQ7OCLjvMXIXTmG/mUHfKu0lwmgj32umCFldf/Ivv6NJ8w6ABcCQi +ih8T3fnVZbPW0j0MoV6vFh0GOYuedFq6tT7LzkKmUyxqhyvXvGyEWcYZAsz3y5uPRgS WnaA== X-Gm-Message-State: AElRT7H5I7lEWIBhNJMtJNUb8496wJVGDZbhQ5ltgo8P2LnlWcDWHoRT m6MTYB7kt4ZuOM47Bb+TNM+MQw== X-Google-Smtp-Source: AG47ELtSZNV+Yop/bBax2o7fnSkLZ3SxftJ23VHR2tXpRzS5z69cVZ2OWvMQgcMTGlol5ONxY1YpfA== X-Received: by 2002:a25:2a86:: with SMTP id q128-v6mr3508287ybq.148.1521301785790; Sat, 17 Mar 2018 08:49:45 -0700 (PDT) Received: from localhost ([72.188.97.40]) by smtp.gmail.com with ESMTPSA id w84sm3472487ywc.26.2018.03.17.08.49.45 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 17 Mar 2018 08:49:45 -0700 (PDT) From: William Breathitt Gray To: linus.walleij@linaro.org Cc: andy.shevchenko@gmail.com, linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, linux-iio@vger.kernel.org, William Breathitt Gray Subject: [PATCH v3 0/8] Implement get_multiple for ACCES and PC/104 drivers Date: Sat, 17 Mar 2018 11:49:39 -0400 Message-Id: X-Mailer: git-send-email 2.16.2 Sender: linux-gpio-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-gpio@vger.kernel.org Changes in v2: - Add missing bitmap.h header includes - Fix typographical error in symbol name for word_mask - Remove const qualifier for ports array This patchset implements get_multiple callbacks for the PC104 GPIO drivers as well as the PCI-IDIO-16 and PCIe-IDIO-24 GPIO drivers. These devices all acquire the multiple input lines with a single read, so utilizing the get_multiple callback can provide improvement for those users who regularly access multiple input lines. While developing this patchset I noticed many of these devices make use of Intel 8255 compatible interfaces for their I/O. I may write a generic 8255 GPIO driver in the future to reduce some of the redundant code I see pop among the drivers for these devices. William Breathitt Gray (8): iio: stx104: Implement get_multiple callback gpio: 104-idio-16: Implement get_multiple callback gpio: pci-idio-16: Implement get_multiple callback gpio: pcie-idio-24: Implement get_multiple/set_multiple callbacks gpio: 104-dio-48e: Implement get_multiple callback gpio: 104-idi-48: Implement get_multiple callback gpio: gpio-mm: Implement get_multiple callback gpio: ws16c48: Implement get_multiple callback drivers/gpio/gpio-104-dio-48e.c | 47 ++++++++++++++++ drivers/gpio/gpio-104-idi-48.c | 47 ++++++++++++++++ drivers/gpio/gpio-104-idio-16.c | 15 +++++ drivers/gpio/gpio-gpio-mm.c | 47 ++++++++++++++++ drivers/gpio/gpio-pci-idio-16.c | 50 +++++++++++++++++ drivers/gpio/gpio-pcie-idio-24.c | 117 +++++++++++++++++++++++++++++++++++++++ drivers/gpio/gpio-ws16c48.c | 47 ++++++++++++++++ drivers/iio/adc/stx104.c | 11 ++++ 8 files changed, 381 insertions(+)