From: William Breathitt Gray <vilhelm.gray@gmail.com>
To: Guenter Roeck <linux@roeck-us.net>
Cc: gregkh@linuxfoundation.org, akpm@linux-foundation.org,
x86@kernel.org, linux-next@vger.kernel.org,
linux-gpio@vger.kernel.org, linux-iio@vger.kernel.org,
linux-kernel@vger.kernel.org, linux-watchdog@vger.kernel.org,
Linus Torvalds <torvalds@linux-foundation.org>
Subject: Re: [PATCH 1/4] isa: Allow ISA-style drivers on modern systems
Date: Mon, 23 May 2016 13:43:12 -0400 [thread overview]
Message-ID: <20160523174312.GA1073@sophia> (raw)
In-Reply-To: <20160523172125.GA8264@roeck-us.net>
On Mon, May 23, 2016 at 10:21:25AM -0700, Guenter Roeck wrote:
>On Mon, May 23, 2016 at 10:58:41AM -0400, William Breathitt Gray wrote:
>> +config ISA_BUS_API
>> + def_bool ISA
>> +
>> +config ISA_BUS
>> + bool "ISA-style bus support on modern systems" if (X86 && EXPERT)
>> + default y
>
>Sure you want it enabled by default ?
Since the X86 ISA bus driver is more of an abstraction interface and
doesn't perform any hardware operations, I believe it's safe enough to
enable by default, thus allowing drivers dependent on it to show up for
selection in menuconfig.
>> + select ISA_BUS_API
>> + help
>> + Enables ISA-style drivers on modern systems. This is necessary to
>> + support PC/104 devices on X86_64 platforms.
>> +
>> + If unsure, say Y.
>> +
>> # x86_64 have no ISA slots, but can have ISA-style DMA.
>> config ISA_DMA_API
>> bool "ISA-style DMA support" if (X86_64 && EXPERT)
>> diff --git a/drivers/base/Makefile b/drivers/base/Makefile
>> index 6b2a84e..2609ba2 100644
>> --- a/drivers/base/Makefile
>> +++ b/drivers/base/Makefile
>> @@ -10,7 +10,7 @@ obj-$(CONFIG_DMA_CMA) += dma-contiguous.o
>> obj-y += power/
>> obj-$(CONFIG_HAS_DMA) += dma-mapping.o
>> obj-$(CONFIG_HAVE_GENERIC_DMA_COHERENT) += dma-coherent.o
>> -obj-$(CONFIG_ISA) += isa.o
>> +obj-$(CONFIG_ISA_BUS_API) += isa.o
>
>Unless I am missing something, this is insufficient, and I am a bit surprised
>that it actually works. include/linux/isa.h declares isa_register_driver()
>and isa_unregister_driver() as dummies if CONFIG_ISA is not enabled.
>Doesn't this cause a compile error ? Confused.
You are correct: CONFIG_ISA in include/linux/isa.h should be
CONFIG_ISA_BUS_API. I'll add the change and submit version 2 of this
patchset after retesting.
William Breathitt Gray
next prev parent reply other threads:[~2016-05-23 17:43 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-05-23 14:58 [PATCH 0/4] Allow ISA-style drivers on modern systems William Breathitt Gray
2016-05-23 14:58 ` [PATCH 1/4] isa: " William Breathitt Gray
2016-05-23 17:21 ` Guenter Roeck
2016-05-23 17:43 ` William Breathitt Gray [this message]
2016-05-23 18:03 ` Linus Torvalds
2016-05-23 14:58 ` [PATCH 2/4] gpio: Allow PC/104 devices on X86_64 William Breathitt Gray
[not found] ` <cover.1464014576.git.vilhelm.gray-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2016-05-23 14:59 ` [PATCH 3/4] iio: stx104: Allow build for X86_64 William Breathitt Gray
2016-05-23 14:59 ` [PATCH 4/4] watchdog: ebc-c384_wdt: " William Breathitt Gray
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20160523174312.GA1073@sophia \
--to=vilhelm.gray@gmail.com \
--cc=akpm@linux-foundation.org \
--cc=gregkh@linuxfoundation.org \
--cc=linux-gpio@vger.kernel.org \
--cc=linux-iio@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-next@vger.kernel.org \
--cc=linux-watchdog@vger.kernel.org \
--cc=linux@roeck-us.net \
--cc=torvalds@linux-foundation.org \
--cc=x86@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).