android_kernel_motorola_sm6225/drivers/net/can
Marc Kleine-Budde 3a5655a5b5 can: at91_can: make can_id of mailbox 0 configurable
Due to a chip bug (errata 50.2.6.3 & 50.3.5.3 in
"AT91SAM9263 Preliminary 6249H-ATARM-27-Jul-09") the contents of mailbox
0 may be send under certain conditions (even if disabled or in rx mode).

The workaround in the errata suggests not to use the mailbox and load it
with an unused identifier.

This patch implements the second part of the workaround. A sysfs entry
"mb0_id" is introduced. While the interface is down it can be used to
configure the can_id of mailbox 0. The default value id 0x7ff.

In order to use an extended can_id add the CAN_EFF_FLAG (0x80000000U)
to the can_id. Example:

- standard id 0x7ff:
echo 0x7ff      > /sys/class/net/can0/mb0_id

- extended id 0x1fffffff:
echo 0x9fffffff > /sys/class/net/can0/mb0_id

Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Acked-by: Wolfgang Grandegger <wg@grandegger.com>
Acked-by: Kurt Van Dijck <kurt.van.dijck@eia.be>
For the Documentation-part:
Acked-by: Wolfram Sang <w.sang@pengutronix.de>
2011-01-24 14:56:37 +01:00
..
mscan drivers/net/can: Update WARN uses 2010-11-09 09:22:30 -08:00
sja1000 drivers/net/*/: Use static const 2010-12-21 02:16:10 -08:00
usb can: Add driver for esd CAN-USB/2 device 2010-08-03 16:37:58 -07:00
at91_can.c can: at91_can: make can_id of mailbox 0 configurable 2011-01-24 14:56:37 +01:00
bfin_can.c net: trans_start cleanups 2010-05-10 05:01:31 -07:00
dev.c include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit slab.h inclusion from percpu.h 2010-03-30 22:02:32 +09:00
flexcan.c can: flexcan: fix use after free of priv 2010-10-26 10:48:58 -07:00
janz-ican3.c drivers/net: remove unnecessary flush_scheduled_work() calls 2010-12-12 16:45:14 +01:00
Kconfig can: add slcan driver for serial/USB-serial CAN adapters 2010-12-08 09:03:32 -08:00
Makefile can: add slcan driver for serial/USB-serial CAN adapters 2010-12-08 09:03:32 -08:00
mcp251x.c can: mcp251x: fix reception of standard RTR frames 2010-10-26 10:48:59 -07:00
pch_can.c pch_can: Fix array miss-pointing issue 2010-12-22 15:25:40 -08:00
slcan.c can: slcan: Add missing linux/sched.h include. 2010-12-08 18:41:03 -08:00
ti_hecc.c Fix some #includes in CAN drivers (rebased for net-next-2.6) 2010-04-13 03:32:42 -07:00
vcan.c include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit slab.h inclusion from percpu.h 2010-03-30 22:02:32 +09:00