PCMCIA support for 8xx using platform devices
Subsystems (5)
RFC PATCH 1/1 PCMCIA support for 8xx using platform devices
This utilizes PCMCIA on mpc885ads and mpc866ads from arch/powerpc. In the new approach,
direct IMMR accesses from within drivers/ were totally eliminated, that requires hardware_enable, hardware_disable, voltage_set board-specific functions to be moved over to BSP code section (arch/powerpc/platforms/8xx in 885 case). There is just no way to have both arch/ppc and arch/powerpc approaches to work simultaneously because of that.
It implies a bit of work to move other target's bits over to BSP region, but no ifdef hell worths it, in addition to the fact of being moved/merged to arch/powerpc, the code would spot this problem anyway.
---
This is FW of original message sent to [email protected] to attach wider audience. Original maillist kept in loop to prevent misunderstanding...
arch/powerpc/boot/dts/mpc885ads.dts | 12 + arch/powerpc/platforms/8xx/mpc885ads.h | 5 arch/powerpc/platforms/8xx/mpc885ads_setup.c | 63 +++++ arch/powerpc/sysdev/fsl_soc.c | 58 ++++ drivers/pcmcia/Kconfig | 1 drivers/pcmcia/m8xx_pcmcia.c | 342 ++++++++++++-------------- include/linux/fs_pcmcia_pd.h | 27 ++ 7 files changed, 318 insertions(+), 190 deletions(-)
arch/powerpc/boot/dts/mpc885ads.dts +12 -0
@@ -112,6 +112,18 @@ compatible = "CPM"; }; + pcmcia@0080 { + linux,phandle = <0080>; + #interrupt-cells = <1>; + #size-cells = <2>; + compatible = "8xx"; + device_type = "pcmcia"; + reg = <80 80>; + clock-frequency = <2faf080>; + interrupt-parent = <ff000000>; + interrupts = <d 1>; + }; + cpm@ff000000 { linux,phandle = <ff000000>; #address-cells = <1>;
arch/powerpc/platforms/8xx/mpc885ads.h +5 -0
@@ -91,5 +91,10 @@ #define PC_ENET_RENA ((ushort)0x0800)#define SICR_ENET_MASK ((uint)0x00ff0000)#define SICR_ENET_CLKRT ((uint)0x002c0000) +/* Some internal interrupt registers use an 8-bit mask for the interrupt +* level instead of a number. +*/ +#define mk_int_int_mask (IL ) (1 << (7 - (IL/2))) +#endif /* __ASM_MPC885ADS_H__ */ #endif /* __KERNEL__ */
arch/powerpc/platforms/8xx/mpc885ads_setup.c +63 -0
75 lines not on this page · raw message
arch/powerpc/sysdev/fsl_soc.c +58 -0
75 lines not on this page · raw message
drivers/pcmcia/Kconfig +1 -0
@@ -183,6 +183,7 @@ config PCMCIA_M8XX tristate "MPC8xx PCMCIA support" depends on PCMCIA && PPC && 8xx select PCCARD_IODYN + select PCCARD_NONSTATIC help Say Y here to include support for PowerPC 8xx series PCMCIA controller.
drivers/pcmcia/m8xx_pcmcia.c +152 -190
595 lines not on this page · raw message
include/linux/fs_pcmcia_pd.h new file +27 -0
@@ -0,0 +1,27 @@ +/* +* Platform information definitions for the CPM Uart driver. +* +* 2007 (c) MontaVista Software, Inc. +* Yuri Shpilevsky <[email protected]> +* +* This file is licensed under the terms of the GNU General Public License +* version 2. This program is licensed "as is" without any warranty of any +* kind, whether express or implied. +*/ + +#ifndef FS_PCMCIA_PD_H +#define FS_PCMCIA_PD_H + +#include <linux/version.h> +#include <asm/types.h> + +struct fs_pcmcia_platform_data { +void (*hw_setup)(int slot,int enable); +int (*voltage_set)(int slot,int vcc,int vpp); + +/* device specific information */ +int hwirq; +u32 bus_freq; +}; + +#endif
Signature · 15 lines
Sincerely, Vitaly -- Sincerely, Vitaly _______________________________________________ Linux PCMCIA reimplementation list http://lists.infradead.org/mailman/listinfo/linux-pcmcia -- Sincerely, Vitaly
Quoted 7 lines · Vitaly Bordug
This utilizes PCMCIA on mpc885ads and mpc866ads from
arch/powerpc. In the new approach, direct IMMR accesses from withindrivers/were totally eliminated, that requireshardware_enable,hardware_disable,voltage_setboard-specific functions to be moved over to BSP code section (arch/powerpc/platforms/8xxin 885 case). There is just no way to have botharch/ppcandarch/powerpcapproaches to work simultaneously because of that.
Maybe I'm missing a key issue here, but what's the point of adding more platform_devices for stuff that is already in the device tree? Shouldn't this be made an of_platform_driver instead so you can use the existing of_device directly?
Arnd <><
Quoted 9 lines · On Sun, 22 Apr 2007 23:49:41 +0200 Arnd Bergmann wrote:
Quoted 7 lines · Vitaly Bordug
This utilizes PCMCIA on mpc885ads and mpc866ads from
arch/powerpc. In the new approach, direct IMMR accesses from withindrivers/were totally eliminated, that requireshardware_enable,hardware_disable,voltage_setboard-specific functions to be moved over to BSP code section (arch/powerpc/platforms/8xxin 885 case). There is just no way to have botharch/ppcandarch/powerpcapproaches to work simultaneously because of that.
Quoted 5 lines
Maybe I'm missing a key issue here, but what's the point of adding more
platform_devicesfor stuff that is already in the device tree? Shouldn't this be made anof_platform_driverinstead so you can use the existingof_devicedirectly?
Was thinking of it but platform_device is better for migration purposes. Hence,
assuming somebody would want to have pcmcia working not bothering to add whole arch/powerpc support,
it can be accomplished quickly. OTOH, further change from pd to of_device is not hard as well. So far, most ppc stuff (if not all) still existing both in ppc/ and powerpc/ paths, and to keep consistency platform_devices are used here and there. So, with pd approach arch/ppc/ boards are encouraged to get source device/driver bus ready, hereby simplifying transition to of_device later.
With current bootwrapper activities it may happen sooner, but there are many places in kernel nobody want to move for almost zero value..
Signature · 1 line
Sincerely, Vitaly
Quoted 12 lines · Vitaly Bordug
Quoted 9 lines · On Sun, 22 Apr 2007 23:49:41 +0200 Arnd Bergmann wrote:
Quoted 7 lines · Vitaly Bordug
This utilizes PCMCIA on mpc885ads and mpc866ads from
arch/powerpc. In the new approach, direct IMMR accesses from withindrivers/were totally eliminated, that requireshardware_enable,hardware_disable,voltage_setboard-specific functions to be moved over to BSP code section (arch/powerpc/platforms/8xxin 885 case). There is just no way to have botharch/ppcandarch/powerpcapproaches to work simultaneously because of that.
Quoted 8 lines
Quoted 5 lines
Maybe I'm missing a key issue here, but what's the point of adding more
platform_devicesfor stuff that is already in the device tree? Shouldn't this be made anof_platform_driverinstead so you can use the existingof_devicedirectly?Was thinking of it but
platform_deviceis better for migration purposes. Hence, assuming somebody would want to have pcmcia working not bothering to add wholearch/powerpcsupport, it can be accomplished quickly.
That's a horrible argument. Please do it properly, and let arch/ppc die as it should. We shouldn't be adding anything to it anymore anyway.
Quoted 19 lines · On Mon, 23 Apr 2007 08:59:57 +0100 Christoph Hellwig wrote:
Quoted 18 lines · Vitaly Bordug
Quoted 15 lines · On Sun, 22 Apr 2007 23:49:41 +0200 Arnd Bergmann wrote:
Quoted 8 lines · Vitaly Bordug
This utilizes PCMCIA on mpc885ads and mpc866ads from
arch/powerpc. In the new approach, direct IMMR accesses from withindrivers/were totally eliminated, that requireshardware_enable,hardware_disable,voltage_setboard-specific functions to be moved over to BSP code section (arch/powerpc/platforms/8xxin 885 case). There is just no way to have botharch/ppcandarch/powerpcapproaches to work simultaneously because of that.Maybe I'm missing a key issue here, but what's the point of adding more
platform_devicesfor stuff that is already in the device tree? Shouldn't this be made anof_platform_driverinstead so you can use the existingof_devicedirectly?
Quoted 9 lines
Quoted 4 lines
Was thinking of it but
platform_deviceis better for migration purposes. Hence, assuming somebody would want to have pcmcia working not bothering to add wholearch/powerpcsupport, it can be accomplished quickly.That's a horrible argument. Please do it properly, and let
arch/ppcdie as it should. We shouldn't be adding anything to it anymore anyway.
I understand your point, but we shouldn't trash existing bits either. Things are a bit different with embedded
stuff, and especially in case of 8xx, there are targets without OF-powered uboot. Bootwrapper thing might be helpful in resolving it, but not a holy tablet after all.
The main point is: current 8xx pcmcia code is a holy mess of ifdefs, direct immr accesses (assuming it is io_block_mapped 1:1) etc. And limiting pcmcia to 885ads only (the only 8xx that supports OF so far) is not good. We have to admit, that many 8xx boards will remain in ppc/ for a while, and instead of just dropping BSP bits
I'm going to let them be refactored via pdevs (with announcement in feature removal reference) as it would take couple of hrs only. If nobody will care, then the whole 8xx pcmcia driver will be cleaned up and switched to of_device.
Does that make sense?
Signature · 1 line
Sincerely, Vitaly
Quoted 5 lines
Quoted 4 lines
That's a horrible argument. Please do it properly, and let
arch/ppcdie as it should. We shouldn't be adding anything to it anymore anyway.I understand your point, but we shouldn't trash existing bits either.
Why not? The things that haven't been ported over yet obviously are unmaintained. If we can make the few remaining board ports in there utterly broken, we can finally remove arch/ppc/ completely :-)
Since nothing new gets added to arch/ppc/ anymore, anyone who wants it can get it from an older kernel tree, no?
[Yes, I'm half joking. No, not fully.]
Segher
PATCH 1/1 ide-cs: recognize 2GB CompactFlash from Transcend
Without the following patch, the kernel does not automatically detect 2GB CompactFlash cards from Transcend.
I'm not sure which correct values must be assigned to the 3th and 4th parameters (here: 0x709b1bf1, 0xf54a91c8). Anyway, the patch is working with these values. Tested on arch=mips.
===================================================================
--- linux-2.6.20.7-orig/drivers/ide/legacy/ide-cs.c 2007-04-15
21:08:02.000000000 +0200
+++ linux-2.6.20.7/drivers/ide/legacy/ide-cs.c 2007-04-25 10:53:53.000000000 +0200
@@ -64,6 +64,7 @@
#define INT_MODULE_PARM(n, v) static int n = v; module_param(n, int, 0)
+#define PCMCIA_DEBUG 1
#ifdef PCMCIA_DEBUG
INT_MODULE_PARM(pc_debug, PCMCIA_DEBUG);
#define DEBUG(n, args...) if (pc_debug>(n)) printk(KERN_DEBUG args)
@@ -399,6 +400,7 @@
PCMCIA_DEVICE_PROD_ID12("TOSHIBA", "MK2001MPL", 0xb4585a1a,
0x3489e003),
PCMCIA_DEVICE_PROD_ID1("TRANSCEND 512M ", 0xd0909443),
PCMCIA_DEVICE_PROD_ID12("TRANSCEND", "TS1GCF80", 0x709b1bf1,
0x2a54d4b1),
+ PCMCIA_DEVICE_PROD_ID12("TRANSCEND", "TS2GCF120", 0x709b1bf1,
0xf54a91c8),
PCMCIA_DEVICE_PROD_ID12("TRANSCEND", "TS4GCF120", 0x709b1bf1,
0xf54a91c8),
PCMCIA_DEVICE_PROD_ID12("WIT", "IDE16", 0x244e5994, 0x3e232852),
PCMCIA_DEVICE_PROD_ID12("WEIDA", "TWTTI", 0xcc7cf69c,0x212bb918),
Re: [PATCH] ide-cs: recognize 2GB CompactFlash from Transcend
Quoted 6 lines · Fabrice
I'm not sure which correct values must be assigned to the 3th and 4th parameters (here:
0x709b1bf1,0xf54a91c8). Anyway, the patch is working with these values. Tested on arch=mips.+ PCMCIA_DEVICE_PROD_ID12("TRANSCEND", "TS2GCF120",
0x709b1bf1,0xf54a91c8),
According to /usr/src/linux/Documentation/pcmcia/devicetable.txt and crc32hash.c the 4th parameter should be 0x969aa4f2.
//Peter
Re: [PATCH] ide-cs: recognize 2GB CompactFlash from Transcend
In reply to Aeschbacher, FabriceQuoted 7 lines · Fabrice
Without the following patch, the kernel does not automatically detect 2GB CompactFlash cards from Transcend.
I'm not sure which correct values must be assigned to the 3th and 4th parameters (here:
0x709b1bf1,0xf54a91c8). Anyway, the patch is working with these values. Tested on arch=mips.
Thanks. Your patch was wordwrapped and had tabs replaced by spaces, btw.
Quoted 7 lines
===================================================================
---linux-2.6.20.7-orig/drivers/ide/legacy/ide-cs.c2007-04-15
21:08:02.000000000 +0200
+++linux-2.6.20.7/drivers/ide/legacy/ide-cs.c2007-04-25 10:53:53.000000000 +0200
Review line 70
Quoted 7 lines
(quoted diff) +1
-0@@ -64,6 +64,7 @@ #define INT_MODULE_PARM(n, v) static int n = v; module_param(n, int, 0) +#define PCMCIA_DEBUG 1 #ifdef PCMCIA_DEBUG INT_MODULE_PARM(pc_debug, PCMCIA_DEBUG); #define DEBUG(n, args...) if (pc_debug>(n)) printk(KERN_DEBUG args)
I removed the above change
Quoted 12 lines
(quoted diff) +1
-0@@ -399,6 +400,7 @@ PCMCIA_DEVICE_PROD_ID12("TOSHIBA", "MK2001MPL", 0xb4585a1a, 0x3489e003), PCMCIA_DEVICE_PROD_ID1("TRANSCEND 512M ", 0xd0909443), PCMCIA_DEVICE_PROD_ID12("TRANSCEND", "TS1GCF80", 0x709b1bf1, 0x2a54d4b1), + PCMCIA_DEVICE_PROD_ID12("TRANSCEND", "TS2GCF120", 0x709b1bf1, 0xf54a91c8),PCMCIA_DEVICE_PROD_ID12("TRANSCEND", "TS4GCF120", 0x709b1bf1, 0xf54a91c8), PCMCIA_DEVICE_PROD_ID12("WIT", "IDE16", 0x244e5994, 0x3e232852), PCMCIA_DEVICE_PROD_ID12("WEIDA", "TWTTI", 0xcc7cf69c,
Quoted 1 line
0x212bb918),
I'm never sure whether it's Bart or Dominik who handles pcmcia-cs patches.
RE: [PATCH] ide-cs: recognize 2GB CompactFlash from Transcend
As pointed to by Peter, and also as indicated by a judicious output in dmesg, the 4th parameter should be 0x969aa4f2. Please find below the corrected patch:
===================================================================
--- linux-2.6.20.7-orig/drivers/ide/legacy/ide-cs.c 2007-04-15
21:08:02.000000000 +0200
+++ linux-2.6.20.7/drivers/ide/legacy/ide-cs.c 2007-04-26
11:13:13.000000000 +0200
@@ -399,6 +399,7 @@
PCMCIA_DEVICE_PROD_ID12("TOSHIBA", "MK2001MPL", 0xb4585a1a,0x3489e003),
PCMCIA_DEVICE_PROD_ID1("TRANSCEND 512M ", 0xd0909443),
PCMCIA_DEVICE_PROD_ID12("TRANSCEND", "TS1GCF80", 0x709b1bf1,0x2a54d4b1),
+ PCMCIA_DEVICE_PROD_ID12("TRANSCEND", "TS2GCF120", 0x709b1bf1,0x969aa4f2),
PCMCIA_DEVICE_PROD_ID12("TRANSCEND", "TS4GCF120", 0x709b1bf1,0xf54a91c8),
PCMCIA_DEVICE_PROD_ID12("WIT", "IDE16", 0x244e5994, 0x3e232852), PCMCIA_DEVICE_PROD_ID12("WEIDA", "TWTTI", 0xcc7cf69c,0x212bb918),
===================================================================
Quoted 65 lines
-----Original Message-----
From: Andrew Morton [mailto:[email protected]]
Sent: Donnerstag, 26. April 2007 02:16
To: Aeschbacher, Fabrice
Cc: [email protected]; lkml; Dominik Brodowski; Bartlomiej Zolnierkiewicz
Subject: Re: [PATCH] ide-cs: recognize 2GB CompactFlash from TranscendQuoted 1 line · Fabrice
Without the following patch, the kernel does not
automatically detect
Quoted 3 lines
2GB CompactFlash cards from Transcend.
I'm not sure which correct values must be assigned to the
3th and 4th
Quoted 3 lines
parameters (here:
0x709b1bf1,0xf54a91c8). Anyway, the patch is working with these values. Tested on arch=mips.Thanks. Your patch was wordwrapped and had tabs replaced by spaces, btw.
Review line 65
Quoted 9 lines
===================================================================
---linux-2.6.20.7-orig/drivers/ide/legacy/ide-cs.c2007-04-15
21:08:02.000000000 +0200
+++linux-2.6.20.7/drivers/ide/legacy/ide-cs.c2007-04-25 10:53:53.000000000 +0200(quoted diff) +0
-0@@ -64,6 +64,7 @@ #define INT_MODULE_PARM(n, v) static int n = v;module_param(n, int,
Review line 70
Quoted 5 lines
(quoted diff) +1
-00) +#define PCMCIA_DEBUG 1 #ifdef PCMCIA_DEBUG INT_MODULE_PARM(pc_debug, PCMCIA_DEBUG); #define DEBUG(n,args...)
Quoted 1 line
if (pc_debug>(n))
printk(KERN_DEBUG args)I removed the above change
Review line 403
Quoted 5 lines
(quoted diff) +0
-0@@ -399,6 +400,7 @@ PCMCIA_DEVICE_PROD_ID12("TOSHIBA", "MK2001MPL", 0xb4585a1a, 0x3489e003), PCMCIA_DEVICE_PROD_ID1("TRANSCEND 512M ", 0xd0909443), PCMCIA_DEVICE_PROD_ID12("TRANSCEND", "TS1GCF80",
0x709b1bf1,Review line 405
Quoted 2 lines
(quoted diff) +1
-00x2a54d4b1), + PCMCIA_DEVICE_PROD_ID12("TRANSCEND", "TS2GCF120",
0x709b1bf1,Quoted 2 lines
(quoted diff) +0
-00xf54a91c8),PCMCIA_DEVICE_PROD_ID12("TRANSCEND", "TS4GCF120",
0x709b1bf1,Quoted 2 lines
0xf54a91c8),PCMCIA_DEVICE_PROD_ID12("WIT", "IDE16", 0x244e5994,
0x3e232852),Quoted 2 lines
PCMCIA_DEVICE_PROD_ID12("WEIDA", "TWTTI", 0xcc7cf69c,
0x212bb918),I'm never sure whether it's Bart or Dominik who handles pcmcia-cs patches.
Andrew Morton
Acked-by Alan CoxRe: [PATCH] ide-cs: recognize 2GB CompactFlash from Transcend
Quoted 23 lines · Fabrice
As pointed to by Peter, and also as indicated by a judicious output in dmesg, the 4th parameter should be
0x969aa4f2. Please find below the corrected patch:Signed-off-by Fabrice Aeschbacher <[email protected]>===================================================================
---linux-2.6.20.7-orig/drivers/ide/legacy/ide-cs.c2007-04-15
21:08:02.000000000 +0200
+++linux-2.6.20.7/drivers/ide/legacy/ide-cs.c2007-04-26
11:13:13.000000000 +0200(quoted diff) +1
-0@@ -399,6 +399,7 @@ PCMCIA_DEVICE_PROD_ID12("TOSHIBA", "MK2001MPL", 0xb4585a1a, 0x3489e003), PCMCIA_DEVICE_PROD_ID1("TRANSCEND 512M ", 0xd0909443), PCMCIA_DEVICE_PROD_ID12("TRANSCEND", "TS1GCF80", 0x709b1bf1, 0x2a54d4b1), + PCMCIA_DEVICE_PROD_ID12("TRANSCEND", "TS2GCF120", 0x709b1bf1, 0x969aa4f2),PCMCIA_DEVICE_PROD_ID12("TRANSCEND", "TS4GCF120",
0x709b1bf1,0xf54a91c8),(quoted diff) +0
-0PCMCIA_DEVICE_PROD_ID12("WIT", "IDE16", 0x244e5994, 0x3e232852), PCMCIA_DEVICE_PROD_ID12("WEIDA", "TWTTI", 0xcc7cf69c,
Quoted 2 lines
0x212bb918),
===================================================================
This one-liner is turning into a fiasco. All the top-posting and word-wrapped patches aren't helping :(
I presently have two patches. Please check them.
ide-cs-recognize-2gb-compactflash-from-transcend.patch:
From: "Aeschbacher, Fabrice" <[email protected]>
Without the following patch, the kernel does not automatically detect 2GB CompactFlash cards from Transcend.
---
drivers/ide/legacy/ide-cs.c | 2 ++ 1 files changed, 2 insertions(+)
drivers/ide/legacy/ide-cs.c renamed from drivers/ide/legacy/ide-cs.c~ide-cs-recognize-2gb-compactflash-from-transcend +2 -0
@@ -401,6 +401,8 @@ static struct pcmcia_device_id ide_ids[]PCMCIA_DEVICE_PROD_ID12 ("TOSHIBA" ,"MK2001MPL" ,0xb4585a1a ,0x3489e003 ),PCMCIA_DEVICE_PROD_ID1 ("TRANSCEND 512M " ,0xd0909443 ),PCMCIA_DEVICE_PROD_ID12 ("TRANSCEND" ,"TS1GCF80" ,0x709b1bf1 ,0x2a54d4b1 ), +PCMCIA_DEVICE_PROD_ID12 ("TRANSCEND" ,"TS2GCF120" ,0x709b1bf1 ,0xf54a91c8 ), +PCMCIA_DEVICE_PROD_ID12 ("TRANSCEND" ,"TS2GCF120" ,0x709b1bf1 ,0x969aa4f2 ),PCMCIA_DEVICE_PROD_ID12 ("TRANSCEND" ,"TS4GCF120" ,0x709b1bf1 ,0xf54a91c8 ),PCMCIA_DEVICE_PROD_ID12 ("WIT" ,"IDE16" ,0x244e5994 ,0x3e232852 ), PCMCIA_DEVICE_PROD_ID12("WEIDA", "TWTTI", 0xcc7cf69c, 0x212bb918),
_
Is this really supposed to add a TS2GCF120 entry with the same IDs as TS4GCF120?
And pata_pcmcia-recognize-2gb-compactflash-from-transcend.patch:
From: "Aeschbacher, Fabrice" <[email protected]>
Allow the pata_pcmcia driver to automatically detect 2GB CompactFlash cards from Transcend.
---
drivers/ata/pata_pcmcia.c | 1 + 1 files changed, 1 insertion(+)
drivers/ata/pata_pcmcia.c renamed from drivers/ata/pata_pcmcia.c~pata_pcmcia-recognize-2gb-compactflash-from-transcend +1 -0
@@ -396,6 +396,7 @@ static struct pcmcia_device_id pcmcia_dePCMCIA_DEVICE_PROD_ID12 ("TOSHIBA" ,"MK2001MPL" ,0xb4585a1a ,0x3489e003 ),PCMCIA_DEVICE_PROD_ID1 ("TRANSCEND 512M " ,0xd0909443 ),PCMCIA_DEVICE_PROD_ID12 ("TRANSCEND" ,"TS1GCF80" ,0x709b1bf1 ,0x2a54d4b1 ), +PCMCIA_DEVICE_PROD_ID12 ("TRANSCEND" ,"TS2GCF120" ,0x709b1bf1 ,0x969aa4f2 ),PCMCIA_DEVICE_PROD_ID12 ("TRANSCEND" ,"TS4GCF120" ,0x709b1bf1 ,0xf54a91c8 ),PCMCIA_DEVICE_PROD_ID12 ("WIT" ,"IDE16" ,0x244e5994 ,0x3e232852 ), PCMCIA_DEVICE_PROD_ID12("WEIDA", "TWTTI", 0xcc7cf69c, 0x212bb918),
_
Peter Stuge
Acked-byRe: [PATCH] ide-cs: recognize 2GB CompactFlash from Transcend
Quoted 16 lines · Andrew Morton
This one-liner is turning into a fiasco.
diff -puNdrivers/ide/legacy/ide-cs.c~ide-cs-recognize-2gb-compactflash-from-transcenddrivers/ide/legacy/ide-cs.cdrivers/ide/legacy/ide-cs.c renamed from drivers/ide/legacy/ide-cs.c~ide-cs-recognize-2gb-compactflash-from-transcend +2
-0@@ -401,6 +401,8 @@ static struct pcmcia_device_id ide_ids[]PCMCIA_DEVICE_PROD_ID12 ("TOSHIBA" ,"MK2001MPL" ,0xb4585a1a ,0x3489e003 ),PCMCIA_DEVICE_PROD_ID1 ("TRANSCEND 512M " ,0xd0909443 ),PCMCIA_DEVICE_PROD_ID12 ("TRANSCEND" ,"TS1GCF80" ,0x709b1bf1 ,0x2a54d4b1 ), +PCMCIA_DEVICE_PROD_ID12 ("TRANSCEND" ,"TS2GCF120" ,0x709b1bf1 ,0xf54a91c8 ), +PCMCIA_DEVICE_PROD_ID12 ("TRANSCEND" ,"TS2GCF120" ,0x709b1bf1 ,0x969aa4f2 ),PCMCIA_DEVICE_PROD_ID12 ("TRANSCEND" ,"TS4GCF120" ,0x709b1bf1 ,0xf54a91c8 ),PCMCIA_DEVICE_PROD_ID12 ("WIT" ,"IDE16" ,0x244e5994 ,0x3e232852 ), PCMCIA_DEVICE_PROD_ID12("WEIDA", "TWTTI", 0xcc7cf69c, 0x212bb918),_
Quoted 2 lines
Is this really supposed to add a TS2GCF120 entry with the same IDs as TS4GCF120?
That's probably a copy and paste error. 0x969aa4f2 is the correct ID.
Quoted 1 line
And pata_pcmcia-recognize-2gb-compactflash-from-transcend.patch:
This one is all right so for what it's worth, it gets:
//Peter
PATCH 1/1 pata_pcmcia: recognize 2GB CompactFlash from Transcend
In reply to Aeschbacher, FabriceThis patch allows the pata_pcmcia driver to automatically detect 2GB CompactFlash cards from Transcend.
=====================================================================
--- linux-2.6.20.7-orig/drivers/ata/pata_pcmcia.c 2007-04-15
21:08:02.000000000 +0200
+++ linux-2.6.20.7/drivers/ata/pata_pcmcia.c 2007-04-26
11:35:38.000000000 +0200
@@ -350,6 +350,7 @@
PCMCIA_DEVICE_PROD_ID12("TOSHIBA", "MK2001MPL", 0xb4585a1a,0x3489e003),
PCMCIA_DEVICE_PROD_ID1("TRANSCEND 512M ", 0xd0909443),
PCMCIA_DEVICE_PROD_ID12("TRANSCEND", "TS1GCF80", 0x709b1bf1,0x2a54d4b1),
+ PCMCIA_DEVICE_PROD_ID12("TRANSCEND", "TS2GCF120", 0x709b1bf1,0x969aa4f2),
PCMCIA_DEVICE_PROD_ID12("TRANSCEND", "TS4GCF120", 0x709b1bf1,0xf54a91c8),
PCMCIA_DEVICE_PROD_ID12("WIT", "IDE16", 0x244e5994, 0x3e232852), PCMCIA_DEVICE_PROD_ID12("WEIDA", "TWTTI", 0xcc7cf69c,0x212bb918),
Quoted 10 lines · Vitaly Bordug
arch/powerpc/boot/dts/mpc885ads.dts +2
-0@@ -112,6 +112,18 @@ compatible = "CPM"; }; + pcmcia@0080 { + linux,phandle = <0080>;
arch/powerpc/boot/dts/mpc885ads.dts line 126
Quoted 10 lines
arch/powerpc/boot/dts/mpc885ads.dts +10
-0+ #interrupt-cells = <1>; + #size-cells = <2>; + compatible = "8xx"; + device_type = "pcmcia"; + reg = <80 80>; + clock-frequency = <2faf080>; + interrupt-parent = <ff000000>; + interrupts = <d 1>; + }; +
DTC supports labels now; we should be using those instead of hardcoded phandles. Also, please indent by tabs.
-Scott