From patchwork Mon Jun 6 13:42:49 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Marc Kleine-Budde X-Patchwork-Id: 98901 X-Patchwork-Delegate: davem@davemloft.net Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id AC11AB6F7F for ; Mon, 6 Jun 2011 23:43:14 +1000 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754267Ab1FFNnH (ORCPT ); Mon, 6 Jun 2011 09:43:07 -0400 Received: from metis.ext.pengutronix.de ([92.198.50.35]:48396 "EHLO metis.ext.pengutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751965Ab1FFNnG (ORCPT ); Mon, 6 Jun 2011 09:43:06 -0400 Received: from gallifrey.ext.pengutronix.de ([2001:6f8:1178:4:5054:ff:fe8d:eefb] helo=hardanger.do.blackshift.org) by metis.ext.pengutronix.de with esmtp (Exim 4.72) (envelope-from ) id 1QTa5A-0002QH-2s; Mon, 06 Jun 2011 15:43:04 +0200 From: Marc Kleine-Budde To: davem@davemloft.net Cc: socketcan-core@lists.berlios.de, netdev@vger.kernel.org Subject: [PATCH 00/11] can: at91_can: add support for AT91SAM9X5 series Date: Mon, 6 Jun 2011 15:42:49 +0200 Message-Id: <1307367780-30715-1-git-send-email-mkl@pengutronix.de> X-Mailer: git-send-email 1.7.4.1 MIME-Version: 1.0 X-SA-Exim-Connect-IP: 2001:6f8:1178:4:5054:ff:fe8d:eefb X-SA-Exim-Mail-From: mkl@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: netdev@vger.kernel.org Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org 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