2.6.x kernels & PCI-to-PCMCIA bridges [again]
Komuro
komurojun at mbn.nifty.com
Mon Jun 28 09:20:41 EDT 2004
>PS, could I have a patch to add a MODULE_AUTHOR line to the version in
>2.6.7-mm1 please?
Please see the following patch for 2.6.7-mm3
I've fixed card_start problem.
Most client driver set card_start=0,
So
mem->card_start - mem->sys_start equals -mem->sys_start. wrong!
Please see the following patch for 2.6.7-mm3
This fix is needed for yenta_socket, i82092 and i82365 driver too.
Best Regards
Komuro
--- linux/drivers/pcmcia/pd6729.c.orig 2004-06-28 09:38:21.960143712 +0900
+++ linux/drivers/pcmcia/pd6729.c 2004-06-28 09:59:10.721303160 +0900
@@ -28,11 +28,13 @@
#include "cirrus.h"
MODULE_LICENSE("GPL");
+MODULE_DESCRIPTION("Driver for the Cirrus PD6729 PCI-PCMCIA bridge");
+MODULE_AUTHOR("Jun Komuro <komurojun at mbn.nifty.com>");
#define MAX_SOCKETS 2
-/* simple helper functions */
-/* External clock time, in nanoseconds. 120 ns = 8.33 MHz */
+/* Simple helper function
+ External clock time, in nanoseconds. 120 ns = 8.33 MHz */
#define to_cycles(ns) ((ns)/120)
static spinlock_t port_lock = SPIN_LOCK_UNLOCKED;
@@ -535,7 +537,7 @@
/* card start */
- i = ((mem->card_start - mem->sys_start) >> 12) & 0x3fff;
+ i = (mem->card_start >> 12) & 0x3fff;
if (mem->flags & MAP_WRPROT)
i |= I365_MEM_WRPROT;
if (mem->flags & MAP_ATTRIB) {
More information about the linux-pcmcia
mailing list