First, the bad news. The patch for pata_of_platform.c doesn't work anymore. The kernel devolopers have rewritten this file completely. io_res.start isn't available in the whole source code. compatible = "electra-ide" isn't available either. It's not possible to patch with the following lines:
Code: Select all
@@ -42,6 +42,17 @@ static int pata_of_platform_probe(struct
ctl_res = io_res;
ctl_res.start = ctl_res.start+0x3f6;
io_res.end = ctl_res.start-1;
+
+#ifdef CONFIG_PPC_PASEMI_SB600
+ } else if (of_device_is_compatible(dn, "electra-cf")) {
+ /* Task regs are at 0x800, with alt status @ 0x80e in the primary window
+ * on electra-cf. Adjust ctl_res and io_res accordingly.
+ */
+ ctl_res = io_res;
+ io_res.start += 0x800;
+ ctl_res.start = ctl_res.start + 0x80e;
+ io_res.end = ctl_res.start-1;
+#endif
} else {
ret = of_address_to_resource(dn, 1, &ctl_res);
if (ret) {
@@ -80,6 +96,9 @@ static int pata_of_platform_probe(struct
static struct of_device_id pata_of_platform_match[] = {
{ .compatible = "ata-generic", },
{ .compatible = "electra-ide", },
+#ifdef CONFIG_PPC_PASEMI_SB600
+ { .compatible = "electra-cf",},
+#endif
{},
};
Log msg:
But ..................................................... the good news is: I have reverted the changes and now, the kernel can recognize the CF card again.pata_of_platform: Remove "electra-ide" quirk
Download: vmlinux-3.18.0-rc1-KVM-PR-FTRACE-AmigaOneX1000.tar.bz2
Nemo patch: Kernel config: Please test the RC1.
Thanks,
Christian