Received: by 10.192.165.156 with SMTP id m28csp1195867imm; Wed, 18 Apr 2018 05:54:34 -0700 (PDT) X-Google-Smtp-Source: AIpwx49dGgXoqfHSAsalBdw+YPuM/Srjr130EEROcVloumfFkZh5pnZNPksLcL3DtVIK9jgtbc3c X-Received: by 10.99.111.206 with SMTP id k197mr1669613pgc.125.1524056074680; Wed, 18 Apr 2018 05:54:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524056074; cv=none; d=google.com; s=arc-20160816; b=bIn196vVEIH7SAZ+FVTSQ+PPvVTQlOe0SUQYdW/7RPIWx8fy+cGCeFDDCiMzZx7pKg 46uY4b80o/iXuhBXthOVpn9+5YUkgqakolHxldkjpo8vDifsgtfW9V6iexSfl2CekIqQ chOZEJwK+KUNBW628wAibRdAt08TI90gYCv059uBG8qc8GWsjZw7U/qB6nuTrFRYEnM6 eBvATVenhhwJv/ntWG/wqhzsuFbYsafTmilhwx1HBPCpIhfT7b4LyGIp+g5cMEAq44x0 42bFZEZsUEso+FwYjhKBkcn2dHLdA23nVTrxMdhPIuU3kJQbPQVIYKlcXdgrCYCN/UQI TNlA== 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=7Zx4gFoyDD3n+PxGmsU8s/BORkhNu2E1kq3T3snuomQ=; b=QUSV4VBXYKYHzGL4zVo6ObTTzW/smcmjN/R6bOzgM8T7C/VlC6uK3QHATL8E9ach0n /qu8Ila7gSCRldLJiLx7S+FJ7sgmAyrZDlN2ihHn7G4KSOPDR+ErXS+WmgVpEe5B3Ic5 5SIeGRwJwAwiVq295M/CxCRr4tCQWHa1feAVdt0VQ/foE9DG9Wau9i5a6NpfxR2KnGy3 eqKFDEFerkjZi4yq0jj6BHXNzQedmjkkiHLaqNz1wuMav86qZKlNNwXWeRY5UGAnIxHC GsX+dMbDHKoP9j+WtRYDP3VXv5QB7cGhsKH7tfw9GasDfQEWAEab2Brzs0N/F+gsxp+m ySrw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Nz9GFb0K; 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 34-v6si1137752plz.76.2018.04.18.05.54.20; Wed, 18 Apr 2018 05:54:34 -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=Nz9GFb0K; 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 S1753950AbeDRMxJ (ORCPT + 99 others); Wed, 18 Apr 2018 08:53:09 -0400 Received: from mail-yw0-f196.google.com ([209.85.161.196]:36721 "EHLO mail-yw0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753917AbeDRMxH (ORCPT ); Wed, 18 Apr 2018 08:53:07 -0400 Received: by mail-yw0-f196.google.com with SMTP id c9-v6so463535ywb.3; Wed, 18 Apr 2018 05:53:07 -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=7Zx4gFoyDD3n+PxGmsU8s/BORkhNu2E1kq3T3snuomQ=; b=Nz9GFb0KjjHHeF84ipiEkFzej6qm70U195lvbyZmPcTFU627QeS4aR8WdrMKDa+8Tu Zlqhd7LnRxX6l1+Gyv/Zm5PSj9z05o8PH/NJDwEAIIwZhTG0mhHVyf8fS/YabQSrLrTK q/jWJfdDEBdD1CQprLN/16nAACm+++GTwyLXs06Fg9l1+us0nKu13SCLHEwQ8I/Hap4Q xvySm9qD8uOLZtgXem4jbo5ta7pvBT3hXIi4JAOypm1Nq4WDWWa8e1fVqpqYtoLa7iOo IOloOcGIocpoIlXPAtr1rpF9s+z9l0j2nxgSwf1E864PS9omKGM7aRqzWaCnfDtrsrRi bvAQ== 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=7Zx4gFoyDD3n+PxGmsU8s/BORkhNu2E1kq3T3snuomQ=; b=mb7/r6SSr0rkCNP8DcSeoiZR6rh815Zfy5t8VtEejLt1nmHvrKuu6g/gR05hDfBiZc V5i6qKRZUat179e/u6dk7N2lL1iojXpB1rS0U/QoMLUldR7QOzih6gQsNbTXH/rXzmuX 7gJVqvhiR9BwnJUtxNHw6NGe1o1QfGHpPaZF2/fbXnzUduG2qd1J8Bl0U0YiRRuo1QMb yNGWsSeX9Ke7ddoGU6GhaH2NK6wC75Woli8qTvz9F9Om3L/L+WJJhz20iS8YuTwAUmuj IsbaEdUqIzqrO4djBM1LaHG6cruirhB6PHEDJvZ/rZA6aAci7p6sj0N6v/fcwNDlJmvf /x2Q== X-Gm-Message-State: ALQs6tBeM5BzZKmRsKl+F/njw30mqRBIp2u9zBSOO1UJ7caL4CC5YC6P /AxYqNq2x1Gg7zbIPXppCh4= X-Received: by 2002:a0d:ce84:: with SMTP id q126-v6mr850366ywd.19.1524055986704; Wed, 18 Apr 2018 05:53:06 -0700 (PDT) Received: from localhost ([72.188.97.40]) by smtp.gmail.com with ESMTPSA id x15-v6sm409728ywj.19.2018.04.18.05.53.05 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 18 Apr 2018 05:53:06 -0700 (PDT) From: William Breathitt Gray To: linus.walleij@linaro.org Cc: linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, William Breathitt Gray Subject: [PATCH 0/2] Fix port memory offsets for IDIO series drivers Date: Wed, 18 Apr 2018 08:52: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 The GPIO PCI-IDIO-16 and PCIE-IDIO-24 drivers utilize the ioread8 and iowrite8 functions to interact with their devices' respective I/O registers. To simplify the get_multiple/set_multiple callbacks, a local array 'ports' is used to hold the memory address offsets of the respective device I/O registers. Currently the get_multiple callback in the GPIO PCI-IDIO-16 driver, and the get_multiple/set_multiple callbacks in the GPIO PCIE-IDIO-24 driver, incorrectly pass the memory address of the local 'ports' array elements to the respective ioread8/iowrite8 functions when they should instead pass the necessary device I/O register memory offset. This patch fixes this error by supplying the correct intended memory addresses to these functions. William Breathitt Gray (2): gpio: pci-idio-16: Fix port memory offset for get_multiple callback gpio: pcie-idio-24: Fix port memory offset for get_multiple/set_multiple callbacks drivers/gpio/gpio-pci-idio-16.c | 8 ++++---- drivers/gpio/gpio-pcie-idio-24.c | 20 ++++++++++---------- 2 files changed, 14 insertions(+), 14 deletions(-) -- 2.16.2