From patchwork Tue May 10 17:30:52 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: William Breathitt Gray X-Patchwork-Id: 12845334 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2A718C433EF for ; Tue, 10 May 2022 17:31:37 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1348272AbiEJRfc (ORCPT ); Tue, 10 May 2022 13:35:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59658 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1348252AbiEJRfa (ORCPT ); Tue, 10 May 2022 13:35:30 -0400 Received: from mail-qt1-x835.google.com (mail-qt1-x835.google.com [IPv6:2607:f8b0:4864:20::835]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EE5DC427E2 for ; Tue, 10 May 2022 10:31:20 -0700 (PDT) Received: by mail-qt1-x835.google.com with SMTP id o11so14037991qtp.13 for ; Tue, 10 May 2022 10:31:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=0iY23zFExaBL60617nuIY2YUPps8RPXgyzTZFJOKDcA=; b=g6+UAI3/t5qZDSi024NMaSQW9L1woLMbAa8zYqN9d6WnrslvlGDfqNkkgLr3snUKtq 5d9SMcLKaL/sqsEKckXJORH48a4ImkyIW/S4Kj6a5dEvU55+H4/0k2lIE2zwLBATCRud WexDhY4FRVJWO8Kk4gnubeld01Mz4LyUTAJTySPyaHuxIB2BXBwNWvnQanz01cz1wi2K zSzTFqibTRMbbCCK7FWBy0jVq+BU3pbfY/DYDnyhZ4GZTL1IRSb2d7ub5JyaorbYSgEP nJv5P65erTue4oIdoxVge8N8ts/BSe+JeEzEbvKDJCipWqe/0FoGcYZ6oKpK8ap+NF/k 5kZg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=0iY23zFExaBL60617nuIY2YUPps8RPXgyzTZFJOKDcA=; b=Wjt20T/S+m6BqZRgPnlwxsIUY6Kj1eJTedVMR9+U0vbWR8b8+gNkg+QlsuL2XzepPK iYt6PlPrMNjS9o+N3A0F+E+Rc7NosrWXnNra/Ag36pjijXvrlD3mw9/ctjZUA7PYix5q kKgcigPh0Hei8p74uEbf2yWgQJjvS+LZTDDbQsz+cvPWZLUMQjq6+7RqbfXvmBhkcgLk 73yzkg1VLeiG2Tfl131L4V3Vhd4iTRHNZlG8rP77cF0oVT3Oz2SLktIhe4fxjjZABd4O 3YYSMbJaVId1rKOR5Mmk5sDb+6R7ErmenY0jjkRZfBKbVsBQCdw/Zo8JnAiqSWH2pF9s in0g== X-Gm-Message-State: AOAM533CpbljZS9ON0MaXaaLKrWa39mw/yXGfZcXD7vPEcquJdo2VRHH 227QxIRPR5vPbInRYyo3WodkA1TtlT1FIg== X-Google-Smtp-Source: ABdhPJzIphDLwXNNwnWOU9HcLMnKXbbHnEPAd9b4DF6Hhn7oxdik8+xWMeo59u5F3o8KH4j873bs1Q== X-Received: by 2002:a05:622a:1713:b0:2f3:dc97:eb24 with SMTP id h19-20020a05622a171300b002f3dc97eb24mr9109511qtk.547.1652203880008; Tue, 10 May 2022 10:31:20 -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 i6-20020a05620a150600b0069ff8ebec64sm8490411qkk.103.2022.05.10.10.31.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 May 2022 10:31:19 -0700 (PDT) From: William Breathitt Gray To: linux-iio@vger.kernel.org Cc: linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org, linus.walleij@linaro.org, schnelle@linux.ibm.com, David.Laight@ACULAB.COM, macro@orcam.me.uk, William Breathitt Gray , Bartosz Golaszewski , Jonathan Cameron , Lars-Peter Clausen Subject: [PATCH 0/8] Utilize iomap interface for PC104 and friends Date: Tue, 10 May 2022 13:30:52 -0400 Message-Id: X-Mailer: git-send-email 2.32.0 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-iio@vger.kernel.org PC104 cards and similar devices do not need to access I/O ports directly via inb()/outb() and can instead use the more typical I/O memory ioread8()/iowrite8() accessor calls by first calling ioport_map(). This patchset converts the relevant PC104/ISA card drivers to do such. With these drivers now utilizing I/O memory accessor calls, work can be done to consolidate some similar devices (e.g. 104-idio-16, pci-idio-16, etc.) into a unified driver in a future patchset. This patchset spawned from a suggestion made in another thread titled "gpio: add HAS_IOPORT dependencies": https://lore.kernel.org/all/c3a3cdd99d4645e2bbbe082808cbb2a5@AcuMS.aculab.com/ William Breathitt Gray (8): counter: 104-quad-8: Utilize iomap interface gpio: 104-dio-48e: Utilize iomap interface gpio: 104-idi-48: Utilize iomap interface gpio: 104-idio-16: Utilize iomap interface gpio: gpio-mm: Utilize iomap interface gpio: ws16c48: Utilize iomap interface iio: adc: stx104: Utilize iomap interface iio: dac: cio-dac: Utilize iomap interface drivers/counter/104-quad-8.c | 169 +++++++++++++++++--------------- drivers/gpio/gpio-104-dio-48e.c | 63 ++++++------ drivers/gpio/gpio-104-idi-48.c | 27 ++--- drivers/gpio/gpio-104-idio-16.c | 33 ++++--- drivers/gpio/gpio-gpio-mm.c | 43 ++++---- drivers/gpio/gpio-ws16c48.c | 65 ++++++------ drivers/iio/adc/stx104.c | 56 ++++++----- drivers/iio/dac/cio-dac.c | 14 +-- 8 files changed, 248 insertions(+), 222 deletions(-) base-commit: ce522ba9ef7e2d9fb22a39eb3371c0c64e2a433e Reviewed-by: Linus Walleij