> No. This driver was implemented and tested in a MPC5200 system. Most likely > I missed some endian issues as you already noticed. I suggest you start with > looking at this line: > > jedec_id = *(u32 *)&rxbuf[4]; > > And add some endian functions here, e.g. be32_to_cpu(). This might help with > the detection. But other endian related issues might still be present in > other parts of the driver as well.
Replacing this line with the following works better : jedec_id = be32_to_cpu(*(u32 *)&rxbuf[4]); At least, on detecting the FPGA... I will send a patch, but there is only three places where there is a be32_to_cpu() to add. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/