Received: by 10.213.65.68 with SMTP id h4csp665802imn; Thu, 22 Mar 2018 06:06:02 -0700 (PDT) X-Google-Smtp-Source: AG47ELtMqsWOWX5FtwijhSYE4qRYOifHNTIHE2EOZq1kNe9ma1R/f3kcKl5U1pksBH57ElF7meN3 X-Received: by 2002:a17:902:d807:: with SMTP id a7-v6mr25134077plz.218.1521723962147; Thu, 22 Mar 2018 06:06:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521723962; cv=none; d=google.com; s=arc-20160816; b=o+vRxmsKiQL9dEpZh28KsxDmyPgctaQnHU6DIH8rRMRVtFFQ0HcfKwkDX4y3VAhy54 d3W7xAc0ry2G71J3FoY4/aZT8EEXhtx4Dk61QHxVzmD0koeVP22LE7FHSPy7aCtS4eqw HEm7S+y//w2XilcI5tmiCxbTQmYuthTHReZTnxpuV1ohKucshU2/5BciFnJFLpxQKRZ9 YnJVmEZ3dR591jWmddiYcIXeNPPznvSm5TuOLpSgSv9XZB8CRhbaXrZQoZNENmnu10Zc 07Wo+5BC2BUVhWidH4WBVUqf9dz3D8kGY/QRpmqyuWsuRn3kSY5vLBAFvv0Mwnkv3AfW bE6g== 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=GRSdM0mAGwLABFtm1G96YFKpoWgLp+4tefS5mCp5jLg=; b=dWL/PVQXQcT3KyOQxssQ1/ULDl9HpQ8N77wl0Vb66EoVFvX9aQxF+mFFwZVIE3Zwra ej/Vr4JEVCZzM678mWt5/1ZklJiONnTXXC//Iz7eHiDOeLG0fze57lHeR12GjJxBYUAw +x515iT+JEf7b6NZ9LSWQBnh302M8S57hey8rOOpvdoS4KFFiOLR0qcdZNI9fUWrHjbZ 9XzpMnbz94kv32mJYTEIVFCMD1X2tLfMFEfXoMD6XuBYGNQIHyPt7iulZQjWBS8TOnC+ MKv50JxXPxG7lOYj1Qk+CPiaVyWMWHL3fLvyB+Z+c8UfQDuz1g0jnDyyXmnRtAnimI5s XeJg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=nVI19j8y; 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 u80si488789pfi.67.2018.03.22.06.05.43; Thu, 22 Mar 2018 06:06:02 -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=nVI19j8y; 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 S1754911AbeCVM7k (ORCPT + 99 others); Thu, 22 Mar 2018 08:59:40 -0400 Received: from mail-yb0-f194.google.com ([209.85.213.194]:40964 "EHLO mail-yb0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754878AbeCVM7e (ORCPT ); Thu, 22 Mar 2018 08:59:34 -0400 Received: by mail-yb0-f194.google.com with SMTP id b6-v6so2879637ybn.8; Thu, 22 Mar 2018 05:59:34 -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=GRSdM0mAGwLABFtm1G96YFKpoWgLp+4tefS5mCp5jLg=; b=nVI19j8yCxDeDeOgbz2xc8ScMTlAIFQYOZ8+qXTyD/24Jf5QA2q+0JFnl0cLiIokuM lNfkwgo1FwvAQJJadI7Ax1xHuU+L4qz6hYJ0lcxX7tddnt96XuOB0S9PdMcKPx+rvRqe pI0dq8O6Ol3P5YOdawYZ3auCXeH0i3No1E1YUwfTSgtQURcINjBMmg7sYzF8B0fHLElp cBr59ECMAAJCQCIh+6a6wuD5UU9hhQJX4h5qMiMethlIk+z4iqOx4184HQC1UsXa+9Ah PhsV4OI6mCzmjEgJ82b4iU0Ykr1ccNXOCXMICnyW9g5f1nFnW1cdPlCi86vQ3Z/i09zn 57UA== 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=GRSdM0mAGwLABFtm1G96YFKpoWgLp+4tefS5mCp5jLg=; b=oJE5NGw9YbzcbpVoRGxgyRSmy0GZtwzOTcvYgZi9g1Kp5ii2kmeK5xzTBupOvpuyH7 ug6ZJ6rki6iu9ne12BDxEJImXMFr1XgYOpbueYejoeuneXJxJlFq2/yOTRKR6zIbjbNa RZ7DnZpnBPY/Ssagv5QJwvPZx24ZSWyxOdpQb9Deb/oUZlgDeuGydpzQPkTE29c427CE vx51q/9pivD8TK1iZ20WgdHisA78T/906IoKKEfs624jrJLwIxI/6SyL/LCvSPqo0kI8 7gsTkO3IfqYnswfJS1lAXaGG8mlKJcUQ+JNy7nkhEIz4EwDtA92IfucikYiv9Eh35hmB gMfQ== X-Gm-Message-State: AElRT7FaPeAbViR15r7az44sVQAmqhAcCSo3JfaOdR5RMu/FQ0wc/IDy /3fGNjG6QsO5JIkFtW6+q0s= X-Received: by 2002:a25:7a04:: with SMTP id v4-v6mr10310175ybc.408.1521723574150; Thu, 22 Mar 2018 05:59:34 -0700 (PDT) Received: from localhost ([72.188.97.40]) by smtp.gmail.com with ESMTPSA id f15sm764717ywb.75.2018.03.22.05.59.32 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 22 Mar 2018 05:59:32 -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, William Breathitt Gray Subject: [PATCH v4 0/7] Implement get_multiple for ACCES and PC/104 drivers Date: Thu, 22 Mar 2018 08:59:18 -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 v4: - Remove STX104 patch as it has been picked up through the IIO tree - Utilize GENMASK for 104-IDIO-16 patch to avoid long literal bitmasks - Fix off-by-one errors for port_mask initializations - Add end comma to ports arrays initializations for consistency 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 (7): 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 ++++++++++++++++ 7 files changed, 370 insertions(+) -- 2.16.2