Searched hist:"3 a5655a5b545e9647c3437473ee3d815fe1b9050" (Results 1 – 2 of 2) sorted by relevance
/openbmc/linux/Documentation/ABI/testing/ |
H A D | sysfs-platform-at91 | 3a5655a5b545e9647c3437473ee3d815fe1b9050 Mon Jan 10 13:44:22 CST 2011 Marc Kleine-Budde <mkl@pengutronix.de> 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>
|
/openbmc/linux/drivers/net/can/ |
H A D | at91_can.c | diff 07a648e668aa7f7c94d41d8d2e4ad53b609e391d Tue May 31 17:20:17 CDT 2011 Marc Kleine-Budde <mkl@pengutronix.de> can: at91_can: register mb0 sysfs entry only on at91sam9263
This patch prepares the driver for the at91sam9X5 processors, which don't have the mb0 bug. (See commit 3a5655a5b545e9647c3437473ee3d815fe1b9050 for more details.)
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de> diff 3a5655a5b545e9647c3437473ee3d815fe1b9050 Mon Jan 10 13:44:22 CST 2011 Marc Kleine-Budde <mkl@pengutronix.de> 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>
|