2003-03-21 22:26:50

by Alan

[permalink] [raw]
Subject: PATCH: newer boards put other hw at rtc + 0x08

diff -u --new-file --recursive --exclude-from /usr/src/exclude linux-2.5.65/drivers/char/rtc.c linux-2.5.65-ac2/drivers/char/rtc.c
--- linux-2.5.65/drivers/char/rtc.c 2003-03-18 16:46:47.000000000 +0000
+++ linux-2.5.65-ac2/drivers/char/rtc.c 2003-03-18 16:58:24.000000000 +0000
@@ -47,7 +47,7 @@

#define RTC_VERSION "1.11"

-#define RTC_IO_EXTENT 0x10 /* Only really two ports, but... */
+#define RTC_IO_EXTENT 0x8

/*
* Note that *all* calls to CMOS_READ and CMOS_WRITE are done with


2003-03-25 09:00:45

by Chris Wedgwood

[permalink] [raw]
Subject: Re: PATCH: newer boards put other hw at rtc + 0x08

On Fri, Mar 21, 2003 at 07:24:37PM +0000, Alan Cox wrote:

> -#define RTC_IO_EXTENT 0x10 /* Only really two ports, but... */
> +#define RTC_IO_EXTENT 0x8

If the comment was/is correct then was not 0x2?


--cw

2003-03-25 16:16:52

by Randy.Dunlap

[permalink] [raw]
Subject: Re: PATCH: newer boards put other hw at rtc + 0x08

On Tue, 25 Mar 2003 01:11:53 -0800 Chris Wedgwood <[email protected]> wrote:

| On Fri, Mar 21, 2003 at 07:24:37PM +0000, Alan Cox wrote:
|
| > -#define RTC_IO_EXTENT 0x10 /* Only really two ports, but... */
| > +#define RTC_IO_EXTENT 0x8
|
| If the comment was/is correct then was not 0x2?

The comment is only partially correct, depending on how the device
is used. It can be used in modes that use 8 ports.

--
~Randy