Received: by 10.213.65.68 with SMTP id h4csp421110imn; Sat, 17 Mar 2018 08:50:57 -0700 (PDT) X-Google-Smtp-Source: AG47ELuP9VQe1p5V7eu1hOs4pZPZ5Az9kODusMZ0EwSGUD85ARIUHnaNrIwiexIQRzdymP1MsIWu X-Received: by 10.99.127.75 with SMTP id p11mr4532507pgn.392.1521301857571; Sat, 17 Mar 2018 08:50:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521301857; cv=none; d=google.com; s=arc-20160816; b=EYopwrsQDJtk4Fj2mHZhI1eQ9cwi2vfqJ/ktjZQFNtTR61H2OBudhZ5wdREu2uLHyE Qlqlowki/seGtrTxsC1uqHozzrNOOfo3GYvp5TNszK0863ovDpdTk24cpxBEKTXntaOI AJKgxoyYyz3AyiV7oBzG7C/WfvrfFw5FEl1yEnLCu/jbkQI8ZiNJ5QDO2yhgy+u9qvM9 lpFp/+JyU/E9f76RAVnfLnSaSDXFDYXOvyBmLLlt2BvWr51v4w2NnojMqEZfx8dV0Yee ETz8ysRteGPWHNKcVs9IBp1JPGHsobA1eRoSYYgzes2FsHd3wqXKwNxHydXvb3aIhzel UO+g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature:arc-authentication-results; bh=BljZZa7pa5ffKHRsywPw4ITvYra7caYHmXNWOYytfq4=; b=yPrLxavNOE92dvx5wG1dBDNXDDBl0cEz6Alpv5W+AxmU0bU0E8W2HQyPk7wo/yIoAb r+P8AK0QIj0usMemC/bWHJvNBs9cDKahFrgjKJ1643tgt1QM5kzmsQ1y5OJExqO7Gr1t WGM9DhK4aHD4m4MTHaqRWhgDVmd7osPCEVWlCSSijYRaoVdBe1+mO08SBY5yhHkQ6K9X PsCO+ksiN36MDMOYsRtMTDZqQThRKlBWDnUl+YLlsQUNqEyGNqmgTwXmmvEifK/hT2J9 3ryBC5q4pCp2A6K/6KcJu/bb9PS1wYgptujodCY2ha9OAQ+ArRjI4ttHayXMQMrHMR4I Z8Ew== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=manPGLfZ; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t61-v6si8446807plb.195.2018.03.17.08.50.43; Sat, 17 Mar 2018 08:50:57 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=manPGLfZ; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753532AbeCQPtt (ORCPT + 99 others); Sat, 17 Mar 2018 11:49:49 -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-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-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@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(+) -- 2.16.2