Patchwork [00/11] can: at91_can: add support for AT91SAM9X5 series

login
register
mail settings
Submitter Marc Kleine-Budde
Date June 6, 2011, 1:42 p.m.
Message ID <1307367780-30715-1-git-send-email-mkl@pengutronix.de>
Download mbox
Permalink /patch/98901/
State Accepted
Delegated to: David Miller
Headers show

Pull-request

git://git.pengutronix.de/git/mkl/linux-2.6.git can/at91-sam9x5

Comments

Marc Kleine-Budde - June 6, 2011, 1:42 p.m.
Hello,

this patch series add support for the at91_can core on the upcoming
at91sam9x5 SOC series.

The original at91_can driver supports the at91sam9263 which has 16
mailboxes, but the CAN core on the at91sam9x5 has only 8. Most constants
used in the RX and TX path are derived from the number of mailboxes.

This patch series changes the driver from a static, compile time setup
of the mailboxes to a dynamic one. Patches 1-4 clean up the driver, 5+6
simplify the usage of the constants, patch 7 converts all derived constants
into functions. Patch 8 will add id_table support to the driver then all
remaining constants are converted into functions using the run time
selected mailbox constants. The next patch (9) takes care about an
at91sam9263 specific errata fix. Patch 10 and 11 will finally add supoprt
for the at91sam9x5 SOC.

This patch series applies to current net-next-2.6/master and has been tested
on a sam9263 and sam9x5ek.
(Allthough, the sam9x5 support is not mainline yet).

please review and consider to apply,
Marc

The following changes since commit e3cc055c18ab575291acf0af7622a2e97c4728fa:

  include/net: Remove unnecessary semicolons (2011-06-05 14:33:40 -0700)

are available in the git repository at:
  git://git.pengutronix.de/git/mkl/linux-2.6.git can/at91-sam9x5

Marc Kleine-Budde (10):
      can: at91_can: don't align struct definitions
      can: at91_can: fix comment about priv->tx_next
      can: at91_can: don't copy data to rx'ed RTR frames
      can: at91_can: let get_tx_* functions return unsigned int
      can: at91_can: directly define AT91_MB_RX_LAST
      can: at91_can: rename AT91_MB_RX_MASK to AT91_IRQ_MB_RX
      can: at91_can: convert derived mailbox constants into functions
      can: at91_can: add id_table and convert prime mailbox constats to functions
      can: at91_can: register mb0 sysfs entry only on at91sam9263
      can: at91_can: add support for the AT91SAM9X5 SOCs

Uwe Kleine-K├Ânig (1):
      net/can: allow CAN_AT91 on AT91SAM9X5

 drivers/net/can/Kconfig    |    5 +-
 drivers/net/can/at91_can.c |  366 +++++++++++++++++++++++++++++++-------------
 2 files changed, 259 insertions(+), 112 deletions(-)


--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
David Miller - June 7, 2011, 8:05 a.m.
From: Marc Kleine-Budde <mkl@pengutronix.de>
Date: Mon,  6 Jun 2011 15:42:49 +0200

> Hello,
> 
> this patch series add support for the at91_can core on the upcoming
> at91sam9x5 SOC series.
> 
> The original at91_can driver supports the at91sam9263 which has 16
> mailboxes, but the CAN core on the at91sam9x5 has only 8. Most constants
> used in the RX and TX path are derived from the number of mailboxes.
> 
> This patch series changes the driver from a static, compile time setup
> of the mailboxes to a dynamic one. Patches 1-4 clean up the driver, 5+6
> simplify the usage of the constants, patch 7 converts all derived constants
> into functions. Patch 8 will add id_table support to the driver then all
> remaining constants are converted into functions using the run time
> selected mailbox constants. The next patch (9) takes care about an
> at91sam9263 specific errata fix. Patch 10 and 11 will finally add supoprt
> for the at91sam9x5 SOC.
> 
> This patch series applies to current net-next-2.6/master and has been tested
> on a sam9263 and sam9x5ek.
> (Allthough, the sam9x5 support is not mainline yet).
> 
> please review and consider to apply,
> Marc
> 
> The following changes since commit e3cc055c18ab575291acf0af7622a2e97c4728fa:
> 
>   include/net: Remove unnecessary semicolons (2011-06-05 14:33:40 -0700)
> 
> are available in the git repository at:
>   git://git.pengutronix.de/git/mkl/linux-2.6.git can/at91-sam9x5

Pulled, t hanks Marc.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html