From patchwork Thu Dec 28 16:01:54 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: William Breathitt Gray X-Patchwork-Id: 853481 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; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="dXjfrAXC"; dkim-atps=neutral Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 3z6vd04cqXz9rxj for ; Fri, 29 Dec 2017 03:02:44 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751253AbdL1QCF (ORCPT ); Thu, 28 Dec 2017 11:02:05 -0500 Received: from mail-yb0-f196.google.com ([209.85.213.196]:42394 "EHLO mail-yb0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751238AbdL1QCC (ORCPT ); Thu, 28 Dec 2017 11:02:02 -0500 Received: by mail-yb0-f196.google.com with SMTP id q3so11015263ybg.9; Thu, 28 Dec 2017 08:02:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=vRv6Y+m2USoulpMpPTfrjK97CI1guOhLRdISg5hBim0=; b=dXjfrAXCO6pOv/xez8k58UcuaEkX0KpdkMMQxe6UsO5jpFpWpTb52FlOYRQ0Z2QhHU zBn2cKoiIjtVcXe/1WjAtXQwjcpJKgEg7Hb2Q5U4q7tYi+abjJd+CfThjOx1aQxxrxrC 2aT/4cdL2TcatO6jxD/9BnSu5U4hk2oZYcEunyiwMikkQJDd37MuKvhvTv5JA4FClMjq zH2VTPwBTqbqow4WnVVwE743sDxBn448tZqQv/cYPd+qgDCMUKx9k11ZgepAWa+x57qK ob+C3nwiTWicmm1Ba+NEddKqEAdZKHoqfp/FrVJcbY4Z7QfHme79SCDX44eX9v/qHUjY iBzA== 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:in-reply-to :references; bh=vRv6Y+m2USoulpMpPTfrjK97CI1guOhLRdISg5hBim0=; b=O/gBilPEV+5DDz5+/2dnG9RI++0uoh51XmYTOxsBqNu/yPcxdhI5S4Z2qGLaqEIodl fefissBUQwH4oaaVLNs8DoRouNbgaxMxCdjdeh2pSsl1mydBaqskPIHNVI2xz+SURkak aI4N2M8uh/47lxkPnSsSwsWeo/umQn3pNvcLm3cN1fftHWDeU6uSaRnM3UYi8bIddwvr bqX0CMuiLdKtB1NethAGvZRaIf7x0r3AMExHoqJoT62oQZmPi+O/KdGrZWX1GsALLplQ ttsGVmUJUITw7o6pZrXuujzkIglt6GwQb+PTg6rkVFMbTV9fqqmwPoaWxbqVTQ8dQwgQ NX8A== X-Gm-Message-State: AKGB3mI8QZh2Qvp97HSgYP+pDUpUxTG2g3185pEu9zPijoXvG2SBdNmn gfXTDs+E0Jio6QT59eMuFFM= X-Google-Smtp-Source: ACJfBouXUeTGbdUHb4h47n/FeZOVrkn9LO1TUVExWWc+hVf4mSSRi2O2s/+f8446cWrqQ35Yf5IX/w== X-Received: by 10.37.24.213 with SMTP id 204mr12543470yby.330.1514476921778; Thu, 28 Dec 2017 08:02:01 -0800 (PST) Received: from localhost ([72.188.97.40]) by smtp.gmail.com with ESMTPSA id h21sm16199010ywk.43.2017.12.28.08.02.01 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 28 Dec 2017 08:02:01 -0800 (PST) From: William Breathitt Gray To: linus.walleij@linaro.org Cc: mail@maciej.szmigiero.name, linux-gpio@vger.kernel.org, linux-iio@vger.kernel.org, linux-watchdog@vger.kernel.org, linux-kernel@vger.kernel.org, William Breathitt Gray , Jonathan Cameron , Hartmut Knaack , Lars-Peter Clausen , Peter Meerwald-Stadler Subject: [PATCH 1/3] iio: Change ISA_BUS_API dependency to selection Date: Thu, 28 Dec 2017 11:01:54 -0500 Message-Id: <84517171cdb142f3f04b45de6ef8daf13442a866.1514475654.git.vilhelm.gray@gmail.com> X-Mailer: git-send-email 2.15.1 In-Reply-To: References: Sender: linux-gpio-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-gpio@vger.kernel.org The ISA_BUS_API Kconfig option enables the compilation of the ISA bus driver. The ISA bus driver does not perform any hardware interaction, and is instead just a thin layer of software abstraction to eliminate boilerplate code common to ISA-style device drivers. Since ISA_BUS_API has no dependencies and does not jeopardize the integrity of the system when enabled, drivers should select it when the ISA bus driver functionality is needed. Cc: Jonathan Cameron Cc: Hartmut Knaack Cc: Lars-Peter Clausen Cc: Peter Meerwald-Stadler Signed-off-by: William Breathitt Gray --- drivers/iio/adc/Kconfig | 3 ++- drivers/iio/counter/Kconfig | 3 ++- drivers/iio/dac/Kconfig | 3 ++- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/drivers/iio/adc/Kconfig b/drivers/iio/adc/Kconfig index ef86296b8b0d..7c00e5858693 100644 --- a/drivers/iio/adc/Kconfig +++ b/drivers/iio/adc/Kconfig @@ -658,7 +658,8 @@ config STM32_ADC config STX104 tristate "Apex Embedded Systems STX104 driver" - depends on PC104 && X86 && ISA_BUS_API + depends on PC104 && X86 + select ISA_BUS_API select GPIOLIB help Say yes here to build support for the Apex Embedded Systems STX104 diff --git a/drivers/iio/counter/Kconfig b/drivers/iio/counter/Kconfig index 474e1ac4e7c0..bf1e559ad7cd 100644 --- a/drivers/iio/counter/Kconfig +++ b/drivers/iio/counter/Kconfig @@ -7,7 +7,8 @@ menu "Counters" config 104_QUAD_8 tristate "ACCES 104-QUAD-8 driver" - depends on PC104 && X86 && ISA_BUS_API + depends on PC104 && X86 + select ISA_BUS_API help Say yes here to build support for the ACCES 104-QUAD-8 quadrature encoder counter/interface device family (104-QUAD-8, 104-QUAD-4). diff --git a/drivers/iio/dac/Kconfig b/drivers/iio/dac/Kconfig index 965d5c0d2468..76db0768e454 100644 --- a/drivers/iio/dac/Kconfig +++ b/drivers/iio/dac/Kconfig @@ -195,7 +195,8 @@ config AD7303 config CIO_DAC tristate "Measurement Computing CIO-DAC IIO driver" - depends on X86 && ISA_BUS_API + depends on X86 && (ISA_BUS || PC104) + select ISA_BUS_API help Say yes here to build support for the Measurement Computing CIO-DAC analog output device family (CIO-DAC16, CIO-DAC08, PC104-DAC06). The From patchwork Thu Dec 28 16:02:06 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: William Breathitt Gray X-Patchwork-Id: 853479 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; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="peXElkXU"; dkim-atps=neutral Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 3z6vcg6w7Rz9s75 for ; Fri, 29 Dec 2017 03:02:27 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752064AbdL1QCP (ORCPT ); Thu, 28 Dec 2017 11:02:15 -0500 Received: from mail-yw0-f193.google.com ([209.85.161.193]:33884 "EHLO mail-yw0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751905AbdL1QCN (ORCPT ); Thu, 28 Dec 2017 11:02:13 -0500 Received: by mail-yw0-f193.google.com with SMTP id w128so8626953ywa.1; Thu, 28 Dec 2017 08:02:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=PuFnWavRgbXBNxhHzQQQEGlMPwz4HPd0POWb46VwJNc=; b=peXElkXUkUPthUN5XMUCSWgc2qCBjr9kpNHsBmrFH5M1RNYqI/n7M8ktpM5H4G6FQ9 NOpQPCtgsoyyh16X24SfaUqQmwT9xaI9kEZgIjcN8Rxw+Ca3gec3HvHfLoPAOjWjFQ/Z gq+F9974PyU0JvRwW6uVuIDjspWQAEBiK/RVqFyU9EdqS99o6bfz9fQkAqZQP03pw81p SufRNidd/s2ZbpABsd5ZFjxRQQdbLgH/eufxq4lDYhJ46Wc/8W/yK0cKupXMoDnLD0Us B6i+7zRfl1qhXp8y5RnWDz+CuZ42OPDXqIUb5x7//c0xyFYs9TTZ8a1jjaUlaJdJ/FVu AZGQ== 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:in-reply-to :references; bh=PuFnWavRgbXBNxhHzQQQEGlMPwz4HPd0POWb46VwJNc=; b=DiCKhrsH58YVbUyRrIhAEZkUIBFBCyZmW+XXc3K5TfRAq5u0P4Yl+HnV1cNV8i6twZ a6elt2EQ33W2BYswmb5IBBICEilhfollxGfa8XYL6Gh2feZGAjAx2MHcIwy1Y4sU8ph9 2XA4+2u6ImRJuyJeep7EMJ9MDxjAMijRo20meSC5FffA0szDNVHyh2/nN1wUjs37R/fo hlY1i7pJeY3ijxJKlFdUJ5ReatXq0LDd/GDf2t8iNLD2YUDD0ejXnDouhcxHwWbaNQWh NnbFq6hy+pQMBpa9v2G8LsLR1vXXmwxKLzFGt0oqqDis9VzURyY4sG3fBD86L+zshabK diRA== X-Gm-Message-State: AKGB3mI8LRiDHqX/xxORaxxaLgNx78HuUAxaN3cl9vxgoCmFkO5wOahm ouaiguqzIB0mI6+A6tVHANM= X-Google-Smtp-Source: ACJfBouIPDYsCg/nLXCYvexfMj7sW5n8oLXcX+ASokue+aOtu/TF4NmrLOjLGCsPb227PwCz1ZvxjA== X-Received: by 10.129.114.65 with SMTP id n62mr20991483ywc.443.1514476933062; Thu, 28 Dec 2017 08:02:13 -0800 (PST) Received: from localhost ([72.188.97.40]) by smtp.gmail.com with ESMTPSA id o83sm15816182ywb.51.2017.12.28.08.02.12 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 28 Dec 2017 08:02:12 -0800 (PST) From: William Breathitt Gray To: linus.walleij@linaro.org Cc: mail@maciej.szmigiero.name, linux-gpio@vger.kernel.org, linux-iio@vger.kernel.org, linux-watchdog@vger.kernel.org, linux-kernel@vger.kernel.org, William Breathitt Gray , Wim Van Sebroeck , Guenter Roeck Subject: [PATCH 2/3] watchdog: Change ISA_BUS_API dependency to selection Date: Thu, 28 Dec 2017 11:02:06 -0500 Message-Id: <4035bdd9c6ff2b9686e69c27e5eb887fd8f9a2bf.1514475654.git.vilhelm.gray@gmail.com> X-Mailer: git-send-email 2.15.1 In-Reply-To: References: Sender: linux-gpio-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-gpio@vger.kernel.org The ISA_BUS_API Kconfig option enables the compilation of the ISA bus driver. The ISA bus driver does not perform any hardware interaction, and is instead just a thin layer of software abstraction to eliminate boilerplate code common to ISA-style device drivers. Since ISA_BUS_API has no dependencies and does not jeopardize the integrity of the system when enabled, drivers should select it when the ISA bus driver functionality is needed. Cc: Wim Van Sebroeck Cc: Guenter Roeck Signed-off-by: William Breathitt Gray Acked-by: Guenter Roeck --- drivers/watchdog/Kconfig | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/watchdog/Kconfig b/drivers/watchdog/Kconfig index ca200d1f310a..c05d5d20eebf 100644 --- a/drivers/watchdog/Kconfig +++ b/drivers/watchdog/Kconfig @@ -864,7 +864,8 @@ config ALIM7101_WDT config EBC_C384_WDT tristate "WinSystems EBC-C384 Watchdog Timer" - depends on X86 && ISA_BUS_API + depends on X86 + select ISA_BUS_API select WATCHDOG_CORE help Enables watchdog timer support for the watchdog timer on the From patchwork Thu Dec 28 16:02:19 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: William Breathitt Gray X-Patchwork-Id: 853480 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; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="L8yVzKNq"; dkim-atps=neutral Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 3z6vck2cmkz9rxj for ; Fri, 29 Dec 2017 03:02:30 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753443AbdL1QC2 (ORCPT ); Thu, 28 Dec 2017 11:02:28 -0500 Received: from mail-yb0-f193.google.com ([209.85.213.193]:37090 "EHLO mail-yb0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753427AbdL1QC0 (ORCPT ); Thu, 28 Dec 2017 11:02:26 -0500 Received: by mail-yb0-f193.google.com with SMTP id 5so22850962ybp.4; Thu, 28 Dec 2017 08:02:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=hELWQ/+Ly/DUhSXw/EooIT4GUM63fN0UJTJ0STtJQ1M=; b=L8yVzKNqL5XIfFOX3J9ejubZo5/nNxmQmi3yxzjLinWBrpbNdxGSUmbfoMo+H5z8nz bjSEgpJVVkOQfUfxpqXOZQNO/gXmebjj/Ux6imrCj+ddoNkR0YnltVvexA8EziM3R1Ta /ilVa01hOpo211tP67rn34LHjoG0V2HcvDBeB5qMMZ91lU7jzPyYzACVZWOeG/skkrNV oa/jV49igLIfKPVYNAKrFNR2BqJ/i76av/w+Xub4T1mUMQx2PzJcBqMC9GREHXEw7Qju AdULvsfb9IY7JETSObnWUGia7muOVZHeJIz6IbIVEcqqOQWjZ2BnvvbouXtPgDdfHRbV k72Q== 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:in-reply-to :references; bh=hELWQ/+Ly/DUhSXw/EooIT4GUM63fN0UJTJ0STtJQ1M=; b=feCFiPukAfEebp8ece73C9gJxsQIdpkgAR8E7m9ifpty7+Zx+cTESnE2hDcXbyhDb2 ajxef2nX2NQEax509vCqDV/Hg9XdJ077VAC/z4LMb4LE99ZLyf3+bI7k7iUv0RYKD7b8 pdoLhq6Kcf//J6Lh9bW1ZedbLSQCasmLDQy0jNW2JB/TSGi+Wb5q5QxdHdHXcwdSlc4G nABj3Ve3GJAJbI+m2Peks7M3fjnO+UnbTYuXev71xIUaHxu6BqTkwmvv8x44icFBoQKL ZaIlyEtX+cXB0eMhi71kfa7tNlPL4JKnh/q1WJkJPiwWIDObp2ZRF/K1jD27JaRxWm3A Y9SQ== X-Gm-Message-State: AKGB3mJb92jnEBW592tLpPBHTaoTNqOW5MihGvUF4+p6bJBFf24LwWIF tGa7WIyYZcVIR8PhGHX4VPg= X-Google-Smtp-Source: ACJfBotZel8fETkARA9oms/KxHykAhvSAMQncKafpDW5ugYBX1ltGXg8QE/kV+b97pDffruXGdZrOg== X-Received: by 10.37.79.198 with SMTP id d189mr2189728ybb.87.1514476945489; Thu, 28 Dec 2017 08:02:25 -0800 (PST) Received: from localhost ([72.188.97.40]) by smtp.gmail.com with ESMTPSA id l37sm4377715ywa.5.2017.12.28.08.02.24 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 28 Dec 2017 08:02:25 -0800 (PST) From: William Breathitt Gray To: linus.walleij@linaro.org Cc: mail@maciej.szmigiero.name, linux-gpio@vger.kernel.org, linux-iio@vger.kernel.org, linux-watchdog@vger.kernel.org, linux-kernel@vger.kernel.org, William Breathitt Gray Subject: [PATCH 3/3] gpio: Change ISA_BUS_API dependency to selection Date: Thu, 28 Dec 2017 11:02:19 -0500 Message-Id: X-Mailer: git-send-email 2.15.1 In-Reply-To: References: Sender: linux-gpio-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-gpio@vger.kernel.org The ISA_BUS_API Kconfig option enables the compilation of the ISA bus driver. The ISA bus driver does not perform any hardware interaction, and is instead just a thin layer of software abstraction to eliminate boilerplate code common to ISA-style device drivers. Since ISA_BUS_API has no dependencies and does not jeopardize the integrity of the system when enabled, drivers should select it when the ISA bus driver functionality is needed. Cc: Linus Walleij Signed-off-by: William Breathitt Gray --- drivers/gpio/Kconfig | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/drivers/gpio/Kconfig b/drivers/gpio/Kconfig index 395669bfcc26..36ad9ce3dc58 100644 --- a/drivers/gpio/Kconfig +++ b/drivers/gpio/Kconfig @@ -590,7 +590,8 @@ menu "Port-mapped I/O GPIO drivers" config GPIO_104_DIO_48E tristate "ACCES 104-DIO-48E GPIO support" - depends on PC104 && ISA_BUS_API + depends on PC104 + select ISA_BUS_API select GPIOLIB_IRQCHIP help Enables GPIO support for the ACCES 104-DIO-48E series (104-DIO-48E, @@ -600,7 +601,8 @@ config GPIO_104_DIO_48E config GPIO_104_IDIO_16 tristate "ACCES 104-IDIO-16 GPIO support" - depends on PC104 && ISA_BUS_API + depends on PC104 + select ISA_BUS_API select GPIOLIB_IRQCHIP help Enables GPIO support for the ACCES 104-IDIO-16 family (104-IDIO-16, @@ -611,7 +613,8 @@ config GPIO_104_IDIO_16 config GPIO_104_IDI_48 tristate "ACCES 104-IDI-48 GPIO support" - depends on PC104 && ISA_BUS_API + depends on PC104 + select ISA_BUS_API select GPIOLIB_IRQCHIP help Enables GPIO support for the ACCES 104-IDI-48 family (104-IDI-48A, @@ -631,7 +634,8 @@ config GPIO_F7188X config GPIO_GPIO_MM tristate "Diamond Systems GPIO-MM GPIO support" - depends on PC104 && ISA_BUS_API + depends on PC104 + select ISA_BUS_API help Enables GPIO support for the Diamond Systems GPIO-MM and GPIO-MM-12. @@ -700,7 +704,7 @@ config GPIO_TS5500 config GPIO_WS16C48 tristate "WinSystems WS16C48 GPIO support" - depends on ISA_BUS_API + select ISA_BUS_API select GPIOLIB_IRQCHIP help Enables GPIO support for the WinSystems WS16C48. The base port