MPC5200, PCI, udelay(10)
Hello.
Please, help me to investigate why the delays present in the "mpc5xxx_read_config_dword" and "mpc5xxx_write_config_dword" functions in the "arch/ppc/kernel/mpc52xx_pci.c" file.
I.e.
==========================
*(volatile u32 *)MPC5xxx_PCI_CAR = 0;
Quoted 1 line
udelay(10);
return 0;
==========================
I was neither able to find any reference at the MPC5200 documentation supplied by FreeScale nor reproduce any error with these lines got removed.
Thank you.
Signature · 2 lines
Roman Kuzmenko <[email protected]> Auriga, Inc.
Quoted 10 lines · Roman Kuzmenko
Hello.
Please, help me to investigate why the delays present in the "
mpc5xxx_read_config_dword" and "mpc5xxx_write_config_dword" functions in the "arch/ppc/kernel/mpc52xx_pci.c" file.I.e.
==========================
*(volatile u32 *)MPC5xxx_PCI_CAR = 0;Quoted 1 line
udelay(10);
Quoted 9 lines
return 0;
==========================I was neither able to find any reference at the MPC5200 documentation supplied by FreeScale nor reproduce any error with these lines got removed.
Thank you.
kernel version?
--
Regards
Andrey Volkov
Quoted 10 lines · Roman Kuzmenko
Hello.
Please, help me to investigate why the delays present in the "
mpc5xxx_read_config_dword" and "mpc5xxx_write_config_dword" functions in the "arch/ppc/kernel/mpc52xx_pci.c" file.I.e.
==========================
*(volatile u32 *)MPC5xxx_PCI_CAR = 0;
Quoted 8 lines
Quoted 1 line
udelay(10);
return 0;
==========================I was neither able to find any reference at the MPC5200 documentation supplied by FreeScale nor reproduce any error with these lines got removed.
I wasn't able to reproduce any problem either but people kept reporting problems. But it seems that it's not a delay that's needed but a mb() to ensure the write all _completly_ done before the next write. A udelay(10) almost ensure that also but is a lot less elegant imho.
Sylvain