Reboot at die_probe
Hi , i have strange problems with my cf card driver on our MPC5200 embedded board. The cf card is mapped to memory space and interrupt is connected to IRQ1(rising edge sensitive). First the driver was written for Kernel 2.6.14 and worked pretty. Now I ported it to Kernel 2.6.24 and get strange behaviour I do not understand. After I load the modul, the kernel start to reboot when i call function ide_device_add(). The reboot appears while device responses in function actual_try_to_identify (ide-probe.c), after kernel sent the identify command (0xec) to status/command register (hwif-outb(cmd, DIE_COMMAND_REG;). To figure out whether card will be identify correct, I changed irq from edge sensitive to level sensitive and card will be identified proper, but get error lost interrupt. I habe no idea what happend. Kindly regards Hans ___ Linuxppc-embedded mailing list Linuxppc-embedded@ozlabs.org https://ozlabs.org/mailman/listinfo/linuxppc-embedded
AW: External Interrupt
Marco, ASFAIK there where some changes and you have to get the irq with irq_create_mapping() or irq_of_parse_and_map() Kindly regards Hans Mit freundlichen Grüßen Hans Lehmann Dipl.-Ing. Elektrotechnik RITTER Elektronik GmbH Leverkuser Strasse 65 D-42897 Remscheid Tel.+49 (0) 2191 - 67 32 40 Fax +49 (0) 2191 - 67 14 29 Email [EMAIL PROTECTED] Homepage www.ritter-elektronik.de Geschäftsführer: Manfred A. Wagner, Dr. Uwe Baader Sitz der Gesellschaft: Oberhausen HRB 17168 DuisburgUSt-ID DE 814009849 -Ursprüngliche Nachricht- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Im Auftrag von Marco Stornelli Gesendet: Freitag, 1. Februar 2008 09:11 An: Linuxppc Embedded Mailing List Betreff: External Interrupt Hi, I used the linux kernel 2.6.10 with a processor MPC8548E. I wrote a driver for a device connected with the local bus. This device has an external interrupt. In the local bus driver I have used the macro MPC85xx_IRQ_EXTX to get the interrupt number and pass it to the driver and after that register the ISR. Now with a kernel 2.6.21 this macro isn't available because in the header file irq.h there is the option CONFIG_PPC_MERGE that disable those options. I think this problem is related to the migration of ppc code towards powerpc. I know that now there is the new device tree source file where I can add a device and its interrupt number but I think in this file I should describe only the platform device, and this device is not a platform device. Then, how can I get now this value? Is there some function to call? How can I perform this operation? Thanks in advance. Marco ___ Linuxppc-embedded mailing list Linuxppc-embedded@ozlabs.org https://ozlabs.org/mailman/listinfo/linuxppc-embedded ___ Linuxppc-embedded mailing list Linuxppc-embedded@ozlabs.org https://ozlabs.org/mailman/listinfo/linuxppc-embedded