"status" property checks

2010-01-07 Thread Hollis Blanchard
Right now, a number of drivers honor the "status" property on device nodes (via of_device_is_available() checks), but it's open-coded in each driver. I'm thinking of "hiding" arbitrary devices from the kernel, and setting this property seems like the best approach, but at the moment that would requ

[PATCH net-next v4 2/3] can: mscan-mpc5xxx: add support for the MPC512x processor

2010-01-07 Thread Wolfgang Grandegger
From: Wolfgang Grandegger The main differences compared to the MSCAN on the MPC5200 are: - More flexibility in choosing the CAN source clock and frequency: Three different clock sources can be selected: "ip", "ref" or "sys". For the latter two, a clock divider can be defined as well. If the

[PATCH net-next v4 1/3] can: mscan: fix improper return if dlc < 8 in start_xmit function

2010-01-07 Thread Wolfgang Grandegger
From: Wolfgang Grandegger The start_xmit function of the MSCAN Driver did return improperly if the CAN dlc check failed (skb not freed and invalid return code). This patch adds a proper check of the frame lenght and data size and returns now correctly. The invalid skb packets are dropped silently

[PATCH net-next v4 3/3] powerpc/mpc5xxx: add OF platform binding doc for FSL MSCAN devices

2010-01-07 Thread Wolfgang Grandegger
From: Wolfgang Grandegger This patch adds documentation for the MSCAN OF device bindings for the MPC512x and moves the one for the MPC5200 to the new common file "Documentation/powerpc/dts-bindings/fsl/can.txt". Signed-off-by: Wolfgang Grandegger Reviewed-by: Wolfram Sang --- Documentation/po

[PATCH net-next v4 0/3] can: mscan-mpc5xxx: add support for the Freescale MPC512x

2010-01-07 Thread Wolfgang Grandegger
This patch series adds support for the MPC512x from Freescale to the mpc5xxx_can MSCAN driver. It has been tested on a MPC5121 and MPC5200B board. Changes since v3: - drop invalid skb packets in mscan_start_xmit() silently as suggested by David Miller in the thread "[RFC] ndo_validate_skb: Let

RE: RFC: proposal to extend the open-pic interrupt specifierdefinition

2010-01-07 Thread Yoder Stuart-B08248
> -Original Message- > From: > devicetree-discuss-bounces+stuart.yoder=freescale@lists.oz labs.org [mailto:devicetree-discuss-> bounces+stuart.yoder=freescale@lists.ozlabs.org] On > Behalf Of David Gibson > Sent: Wednesday, January 06, 2010 10:55 PM > To: Yoder Stuart-B08248 >

Re: [Power.org:parch] Re: RFC: proposal to extend the open-pic interrupt specifierdefinition

2010-01-07 Thread Scott Wood
David Gibson wrote: On Wed, Jan 06, 2010 at 08:33:03PM -0700, Yoder Stuart-B08248 wrote: "type" specifies the type of interrupt-- example timer, MSI, etc and would define the meaning of the interrupt number portion of the interrupt specifier. A given "type" may or may not have a "subtype" depe

Re: [PATCH net-next v3 2/3] can: mscan-mpc5xxx: add support for the MPC512x processor

2010-01-07 Thread Wolfram Sang
On Thu, Jan 07, 2010 at 03:10:20PM +0100, Wolfgang Grandegger wrote: > From: Wolfgang Grandegger > > The main differences compared to the MSCAN on the MPC5200 are: > > - More flexibility in choosing the CAN source clock and frequency: > > Three different clock sources can be selected: "ip", "

[PATCH net-next v3 1/3] can: mscan: fix improper return if dlc < 8 in start_xmit function

2010-01-07 Thread Wolfgang Grandegger
From: Wolfgang Grandegger The start_xmit function of the MSCAN Driver did return improperly if the CAN dlc check failed (skb not freed and invalid return code). This patch adds a proper check of the frame lenght and data size and returns now correctly. Furthermore, a typo has been fixed. Signed-

[PATCH net-next v3 2/3] can: mscan-mpc5xxx: add support for the MPC512x processor

2010-01-07 Thread Wolfgang Grandegger
From: Wolfgang Grandegger The main differences compared to the MSCAN on the MPC5200 are: - More flexibility in choosing the CAN source clock and frequency: Three different clock sources can be selected: "ip", "ref" or "sys". For the latter two, a clock divider can be defined as well. If the

[PATCH net-next v3 3/3] powerpc/mpc5xxx: add OF platform binding doc for FSL MSCAN devices

2010-01-07 Thread Wolfgang Grandegger
From: Wolfgang Grandegger This patch adds documentation for the MSCAN OF device bindings for the MPC512x and moves the one for the MPC5200 to the new common file "Documentation/powerpc/dts-bindings/fsl/can.txt". Signed-off-by: Wolfgang Grandegger Reviewed-by: Wolfram Sang --- Documentation/po

[PATCH net-next v3 0/3] can: mscan-mpc5xxx: add support for the Freescale MPC512x

2010-01-07 Thread Wolfgang Grandegger
This patch series adds support for the MPC512x from Freescale to the mpc5xxx_can MSCAN driver. It has been tested on a MPC5121 and MPC5200B board. Changes since v2: - Debugging for development code remove. - Bus-off recovery tested and fixed for MPC5121. Changes since v1: - Various coding style