linux/drivers/char
Bjorn Helgaas 9626f1f117 rtc: fall back to requesting only the ports we actually use
Firmware like PNPBIOS or ACPI can report the address space consumed by the
RTC.  The actual space consumed may be less than the size (RTC_IO_EXTENT)
assumed by the RTC driver.

The PNP core doesn't request resources yet, but I'd like to make it do so.
If/when it does, the RTC_IO_EXTENT request may fail, which prevents the RTC
driver from loading.

Since we only use the RTC index and data registers at RTC_PORT(0) and
RTC_PORT(1), we can fall back to requesting just enough space for those.

If the PNP core requests resources, this results in typical I/O port usage
like this:

    0070-0073 : 00:06		<-- PNP device 00:06 responds to 70-73
      0070-0071 : rtc		<-- RTC driver uses only 70-71

instead of the current:

    0070-0077 : rtc		<-- RTC_IO_EXTENT == 8

Signed-off-by: Bjorn Helgaas <bjorn.helgaas@hp.com>
Cc: Alessandro Zummo <a.zummo@towertech.it>
Cc: David Brownell <david-b@pacbell.net>
Cc: Ralf Baechle <ralf@linux-mips.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2007-11-14 18:45:41 -08:00
..
agp x86 gart: rename CONFIG_IOMMU to CONFIG_GART_IOMMU 2007-10-30 00:22:22 +01:00
drm drm: DRM: fix memset size error 2007-11-06 10:12:44 +10:00
hw_random Convert files to UTF-8 and some cleanups 2007-10-19 23:21:04 +02:00
ip2 drivers/char/ip2: separate polling and irq-driven work entry points 2007-10-23 19:53:16 -04:00
ipmi
mwave
pcmcia cm40x0_cs.c: fix debug macros 2007-11-14 18:45:37 -08:00
rio
tpm Eliminate pointless casts from void* in a few driver irq handlers. 2007-10-23 19:53:16 -04:00
.gitignore
amiserial.c
apm-emulation.c
applicom.c
applicom.h
briq_panel.c
cd1865.h
ChangeLog
consolemap.c
cp437.uni
cs5535_gpio.c
cyclades.c Char: cyclades, fix potential NULL dereference 2007-10-23 08:32:06 -07:00
defkeymap.c_shipped
defkeymap.map
digi1.h
digiFep1.h
digiPCI.h
ds1286.c
ds1302.c
ds1620.c
dsp56k.c
dtlk.c
efirtc.c
epca.c
epca.h
epcaconfig.h
esp.c Convert files to UTF-8 and some cleanups 2007-10-19 23:21:04 +02:00
generic_nvram.c
generic_serial.c
genrtc.c
hangcheck-timer.c
hpet.c
hvc_beat.c
hvc_console.c
hvc_console.h
hvc_iseries.c
hvc_rtas.c
hvc_vio.c
hvc_xen.c
hvcs.c
hvsi.c
i8k.c Convert files to UTF-8 and some cleanups 2007-10-19 23:21:04 +02:00
ip27-rtc.c
isicom.c
istallion.c
Kconfig Virtio console driver 2007-10-23 15:49:55 +10:00
keyboard.c
lcd.c
lcd.h
lp.c
Makefile Remove old lguest bus and drivers. 2007-10-23 15:49:55 +10:00
mbcs.c
mbcs.h
mem.c x86 merge fallout: uml 2007-10-29 07:41:32 -07:00
misc.c
mmtimer.c
moxa.c
mspec.c
mxser_new.c
mxser_new.h
mxser.c
mxser.h
n_hdlc.c
n_r3964.c
n_tty.c Fix misspellings of "system", "controller", "interrupt" and "necessary". 2007-10-19 23:10:43 +02:00
nsc_gpio.c
nvram.c
nwbutton.c
nwbutton.h
nwflash.c
pc8736x_gpio.c
ppdev.c [PARPORT] Remove unused 'irq' argument from parport irq functions 2007-10-23 19:53:16 -04:00
ps3flash.c
pty.c
random.c
raw.c
riscom8_reg.h
riscom8.c drivers/char/riscom8: clean up irq handling 2007-10-23 19:53:17 -04:00
riscom8.h
rocket_int.h
rocket.c Fix misspellings of "system", "controller", "interrupt" and "necessary". 2007-10-19 23:10:43 +02:00
rocket.h
rtc.c rtc: fall back to requesting only the ports we actually use 2007-11-14 18:45:41 -08:00
scc.h
scx200_gpio.c
selection.c
ser_a2232.c
ser_a2232.h
ser_a2232fw.ax
ser_a2232fw.h
serial167.c
snsc_event.c
snsc.c
snsc.h
sonypi.c Convert files to UTF-8 and some cleanups 2007-10-19 23:21:04 +02:00
specialix_io8.h
specialix.c
stallion.c
sx.c Use helpers to obtain task pid in printks 2007-10-19 11:53:43 -07:00
sx.h
sxboards.h
sxwindow.h
synclink_gt.c
synclink.c
synclinkmp.c
sysrq.c
tb0219.c
tipar.c
tlclk.c
toshiba.c
tty_audit.c
tty_io.c Fix misspellings of "system", "controller", "interrupt" and "necessary". 2007-10-19 23:10:43 +02:00
tty_ioctl.c [TTY]: Fix network driver interactions with TCGET/SET calls. 2007-11-07 04:14:19 -08:00
vc_screen.c
viocons.c
viotape.c
virtio_console.c virtio/virtcons: fix section mismatch warning 2007-11-05 15:12:32 -08:00
vme_scc.c
vr41xx_giu.c
vt_ioctl.c
vt.c