[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20210224225246.11346-1-dariobin@libero.it>
Date: Wed, 24 Feb 2021 23:52:40 +0100
From: Dario Binacchi <dariobin@...ero.it>
To: linux-kernel@...r.kernel.org
Cc: Dario Binacchi <dariobin@...ero.it>,
"David S. Miller" <davem@...emloft.net>,
Jakub Kicinski <kuba@...nel.org>,
Marc Kleine-Budde <mkl@...gutronix.de>,
Oliver Hartkopp <socketcan@...tkopp.net>,
Vincent Mailhol <mailhol.vincent@...adoo.fr>,
Wolfgang Grandegger <wg@...ndegger.com>,
YueHaibing <yuehaibing@...wei.com>,
Zhang Qilong <zhangqilong3@...wei.com>,
linux-can@...r.kernel.org, netdev@...r.kernel.org
Subject: [PATCH 0/6] can: c_can: add support to 64 messages objects
The D_CAN controller supports up to 128 messages. Until now the driver
only managed 32 messages although Sitara processors and DRA7 SOC can
handle 64.
The series was tested on a beaglebone board.
Note:
I have not changed the type of tx_field (belonging to the c_can_priv
structure) to atomic64_t because I think the atomic_t type has size
of at least 32 bits on x86 and arm, which is enough to handle 64
messages.
http://marc.info/?l=linux-can&m=139746476821294&w=2 reports the results
of tests performed just on x86 and arm architectures.
Dario Binacchi (6):
can: c_can: remove unused code
can: c_can: fix indentation
can: c_can: fix control interface used by c_can_do_tx
can: c_can: use 32-bit write to set arbitration register
can: c_can: prepare to up the message objects number
can: c_can: add support to 64 messages objects
drivers/net/can/c_can/c_can.c | 83 ++++++++++++++++----------
drivers/net/can/c_can/c_can.h | 32 ++++------
drivers/net/can/c_can/c_can_platform.c | 6 +-
3 files changed, 69 insertions(+), 52 deletions(-)
--
2.17.1
Powered by blists - more mailing lists