linux/arch/powerpc/sysdev/bestcomm
Anatolij Gustschin 7ea6fd7e2d [POWERPC] Fix Oops with TQM5200 on TQM5200
The "bestcomm-core" driver defines its of_match table as follows

static struct of_device_id mpc52xx_bcom_of_match[] = {
	{ .type = "dma-controller", .compatible = "fsl,mpc5200-bestcomm", },
	{ .type = "dma-controller", .compatible = "mpc5200-bestcomm", },
	{},
};

so while registering the driver, the driver's probe function won't be
called, because the device tree node doesn't have a device_type
property.  Thus the driver's bcom_engine structure won't be allocated.
Referencing this structure later causes observed Oops.

Checking bcom_eng pointer for NULL before referencing data pointed
by it prevents oopsing, but fec driver still doesn't work (because
of the lost bestcomm match and resulted task allocation failure).
Actually the compatible property exists and should match and so
the fec driver should work.

This removes .type = "dma-controller" from the bestcomm driver's
mpc52xx_bcom_of_match table to solve the problem.

Signed-off-by: Anatolij Gustschin <agust@denx.de>
Acked-by: Grant Likely <grant.likely@secretlab.ca>
Signed-off-by: Paul Mackerras <paulus@samba.org>
2008-03-24 17:55:51 +11:00
..
ata.c [POWERPC] bestcomm: ATA task support 2007-10-16 17:09:42 -06:00
ata.h [POWERPC] bestcomm: ATA task support 2007-10-16 17:09:42 -06:00
bcom_ata_task.c [POWERPC] bestcomm: ATA task support 2007-10-16 17:09:42 -06:00
bcom_fec_rx_task.c [POWERPC] bestcomm: FEC task support 2007-10-16 17:09:49 -06:00
bcom_fec_tx_task.c [POWERPC] bestcomm: FEC task support 2007-10-16 17:09:49 -06:00
bcom_gen_bd_rx_task.c [POWERPC] bestcomm: GenBD task support 2007-10-16 17:09:56 -06:00
bcom_gen_bd_tx_task.c [POWERPC] bestcomm: GenBD task support 2007-10-16 17:09:56 -06:00
bestcomm_priv.h [POWERPC] bestcomm: core bestcomm support for Freescale MPC5200 2007-10-16 17:09:34 -06:00
bestcomm.c [POWERPC] Fix Oops with TQM5200 on TQM5200 2008-03-24 17:55:51 +11:00
bestcomm.h [POWERPC] arch/powerpc/: Spelling fixes 2007-12-20 16:15:51 +11:00
fec.c [POWERPC] bestcomm: FEC task support 2007-10-16 17:09:49 -06:00
fec.h [POWERPC] bestcomm: FEC task support 2007-10-16 17:09:49 -06:00
gen_bd.c [POWERPC] bestcomm: GenBD task support 2007-10-16 17:09:56 -06:00
gen_bd.h [POWERPC] bestcomm: GenBD task support 2007-10-16 17:09:56 -06:00
Kconfig [POWERPC] bestcomm: GenBD task support 2007-10-16 17:09:56 -06:00
Makefile [POWERPC] bestcomm: GenBD task support 2007-10-16 17:09:56 -06:00
sram.c [POWERPC] bestcomm: core bestcomm support for Freescale MPC5200 2007-10-16 17:09:34 -06:00
sram.h [POWERPC] bestcomm: core bestcomm support for Freescale MPC5200 2007-10-16 17:09:34 -06:00