]> rtime.felk.cvut.cz Git - socketcan-devel.git/log
socketcan-devel.git
15 years agoChange can_set_bittiming() to allow
hartkopp [Mon, 6 Oct 2008 13:59:11 +0000 (13:59 +0000)]
Change can_set_bittiming() to allow
- pre-defined parameters
- non-available do_set_bittiming() functions

git-svn-id: svn://svn.berlios.de//socketcan/trunk@830 030b6a49-0b11-0410-94ab-b0dab22257f2

15 years agoApplied two cosmetic issues from Kurt van Dijck:
hartkopp [Mon, 6 Oct 2008 11:54:19 +0000 (11:54 +0000)]
Applied two cosmetic issues from Kurt van Dijck:
https://lists.berlios.de/pipermail/socketcan-core/2008-October/001885.html
https://lists.berlios.de/pipermail/socketcan-core/2008-October/001883.html

git-svn-id: svn://svn.berlios.de//socketcan/trunk@829 030b6a49-0b11-0410-94ab-b0dab22257f2

15 years agoCleanup new bittime interface on Softing Cards as proposed by Kurt van Dijck:
hartkopp [Mon, 6 Oct 2008 09:32:02 +0000 (09:32 +0000)]
Cleanup new bittime interface on Softing Cards as proposed by Kurt van Dijck:
https://lists.berlios.de/pipermail/socketcan-core/2008-October/001868.html
https://lists.berlios.de/pipermail/socketcan-core/2008-October/001870.html

git-svn-id: svn://svn.berlios.de//socketcan/trunk@828 030b6a49-0b11-0410-94ab-b0dab22257f2

15 years agoSupport the new bittime interface.
hartkopp [Sun, 5 Oct 2008 17:00:52 +0000 (17:00 +0000)]
Support the new bittime interface.
Fixes in softing_reinit() in softing_fw.c:
- calculate bittiming at re-init the chips
- in debug trace: use card->bus[1]->can.bittiming.bitrate for bus1

git-svn-id: svn://svn.berlios.de//socketcan/trunk@827 030b6a49-0b11-0410-94ab-b0dab22257f2

15 years agoAdded MCP251x SPI CAN driver posted by Chris Elston <celston@katalix.com>
hartkopp [Sat, 4 Oct 2008 18:55:01 +0000 (18:55 +0000)]
Added MCP251x SPI CAN driver posted by Chris Elston <celston@katalix.com>
and Christian Pellegrin <chripell@evolware.org> in
https://lists.berlios.de/pipermail/socketcan-core/2008-October/001861.html
after updating the driver to the new bitrate setting interface.

git-svn-id: svn://svn.berlios.de//socketcan/trunk@826 030b6a49-0b11-0410-94ab-b0dab22257f2

15 years agoAdded new interface for setting bit-timing parameters.
hartkopp [Sat, 4 Oct 2008 17:18:23 +0000 (17:18 +0000)]
Added new interface for setting bit-timing parameters.
See details at:
https://lists.berlios.de/pipermail/socketcan-core/2008-September/001850.html

git-svn-id: svn://svn.berlios.de//socketcan/trunk@825 030b6a49-0b11-0410-94ab-b0dab22257f2

15 years agoAdded new interface for setting bit-timing parameters.
hartkopp [Sat, 4 Oct 2008 17:17:07 +0000 (17:17 +0000)]
Added new interface for setting bit-timing parameters.
See details at
https://lists.berlios.de/pipermail/socketcan-core/2008-September/001850.html

git-svn-id: svn://svn.berlios.de//socketcan/trunk@824 030b6a49-0b11-0410-94ab-b0dab22257f2

15 years agoAdded new interface for setting bit-timing parameters.
hartkopp [Sat, 4 Oct 2008 17:15:39 +0000 (17:15 +0000)]
Added new interface for setting bit-timing parameters.
See details at
https://lists.berlios.de/pipermail/socketcan-core/2008-September/001850.html

git-svn-id: svn://svn.berlios.de//socketcan/trunk@823 030b6a49-0b11-0410-94ab-b0dab22257f2

15 years agoStart candump in silent mode, when logging into a file.
hartkopp [Thu, 2 Oct 2008 13:47:43 +0000 (13:47 +0000)]
Start candump in silent mode, when logging into a file.

git-svn-id: svn://svn.berlios.de//socketcan/trunk@822 030b6a49-0b11-0410-94ab-b0dab22257f2

15 years agonetns: Use net_eq() to compare net-namespaces for optimization.
hartkopp [Thu, 18 Sep 2008 10:05:16 +0000 (10:05 +0000)]
netns: Use net_eq() to compare net-namespaces for optimization.

Without CONFIG_NET_NS, namespace is always &init_net.
Compiler will be able to omit namespace comparisons with this patch.

Signed-off-by: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
git commit 721499e8931c5732202481ae24f2dfbf9910f129

git-svn-id: svn://svn.berlios.de//socketcan/trunk@821 030b6a49-0b11-0410-94ab-b0dab22257f2

15 years agoThe number for the SLCAN line discipline can not be found in
hartkopp [Wed, 17 Sep 2008 13:02:49 +0000 (13:02 +0000)]
The number for the SLCAN line discipline can not be found in
<linux/tty.h> anyway but needs to be written as module alias

tty-ldisc-17 slcan

So we remove the annoying #error output and use the correctly defined
'17' from Kernel 2.6.25+ as default.

git-svn-id: svn://svn.berlios.de//socketcan/trunk@820 030b6a49-0b11-0410-94ab-b0dab22257f2

15 years agoAdded support for Kernel 2.6.27 following slip.c changes from git commit
hartkopp [Wed, 17 Sep 2008 09:32:49 +0000 (09:32 +0000)]
Added support for Kernel 2.6.27 following slip.c changes from git commit
a352def21a642133758b868c71bee12ab34ad5c5 ('tty: Ldisc revamp')

git-svn-id: svn://svn.berlios.de//socketcan/trunk@819 030b6a49-0b11-0410-94ab-b0dab22257f2

15 years agoAdded support for Kernel 2.6.26 following slip.c changes from git commit
hartkopp [Wed, 17 Sep 2008 08:59:03 +0000 (08:59 +0000)]
Added support for Kernel 2.6.26 following slip.c changes from git commit
f34d7a5b7010b82fe97da95496b9971435530062

git-svn-id: svn://svn.berlios.de//socketcan/trunk@818 030b6a49-0b11-0410-94ab-b0dab22257f2

15 years agoFixed some typos reported by Hans-Juergen Koch and C. Boone.
hartkopp [Tue, 16 Sep 2008 08:54:00 +0000 (08:54 +0000)]
Fixed some typos reported by Hans-Juergen Koch and C. Boone.

git-svn-id: svn://svn.berlios.de//socketcan/trunk@817 030b6a49-0b11-0410-94ab-b0dab22257f2

15 years agoAdded some documentation about virtual CAN driver.
hartkopp [Mon, 15 Sep 2008 14:56:39 +0000 (14:56 +0000)]
Added some documentation about virtual CAN driver.
To be reviewed.

git-svn-id: svn://svn.berlios.de//socketcan/trunk@816 030b6a49-0b11-0410-94ab-b0dab22257f2

15 years agoAdded support for comments in logfiles.
hartkopp [Tue, 9 Sep 2008 12:56:05 +0000 (12:56 +0000)]
Added support for comments in logfiles.
Added some sanity checks and error messages.

git-svn-id: svn://svn.berlios.de//socketcan/trunk@815 030b6a49-0b11-0410-94ab-b0dab22257f2

15 years agoRemoved obsolete include of <pcmcia/version.h> which was dead since 2005-07-08:
hartkopp [Thu, 14 Aug 2008 12:29:59 +0000 (12:29 +0000)]
Removed obsolete include of <pcmcia/version.h> which was dead since 2005-07-08:

http://git.kernel.org/?p=linux/kernel/git/stable/linux-2.6.26.y.git;a=commitdiff;h=a00db1ba7c33619cbd7c3153e4746d15881c0383

The include file itself has been removed completely in 2.6.27.

git-svn-id: svn://svn.berlios.de//socketcan/trunk@814 030b6a49-0b11-0410-94ab-b0dab22257f2

15 years agoCreate an informative error message when detecting a wrong line format.
hartkopp [Fri, 25 Jul 2008 06:32:20 +0000 (06:32 +0000)]
Create an informative error message when detecting a wrong line format.

git-svn-id: svn://svn.berlios.de//socketcan/trunk@813 030b6a49-0b11-0410-94ab-b0dab22257f2

15 years agoChanged comment line recognition:
hartkopp [Thu, 24 Jul 2008 19:12:19 +0000 (19:12 +0000)]
Changed comment line recognition:
Everything without a '(' at the beginning of an input line is treated as comment.
Changed buffer size to allow long comment lines & added overflow handling.

git-svn-id: svn://svn.berlios.de//socketcan/trunk@812 030b6a49-0b11-0410-94ab-b0dab22257f2

15 years agoSupport for comment lines in the logfile:
hartkopp [Thu, 24 Jul 2008 13:03:18 +0000 (13:03 +0000)]
Support for comment lines in the logfile:
'#' at the beginning of a line marks comment lines.

git-svn-id: svn://svn.berlios.de//socketcan/trunk@811 030b6a49-0b11-0410-94ab-b0dab22257f2

15 years agoAdded missing help test.
hartkopp [Thu, 10 Jul 2008 11:01:37 +0000 (11:01 +0000)]
Added missing help test.

git-svn-id: svn://svn.berlios.de//socketcan/trunk@810 030b6a49-0b11-0410-94ab-b0dab22257f2

15 years agoAdded -f option to filter only on the CAN-ID and not on the content.
hartkopp [Thu, 10 Jul 2008 10:59:37 +0000 (10:59 +0000)]
Added -f option to filter only on the CAN-ID and not on the content.
This can be useful when the timestamp cyle needs to be displayed.

git-svn-id: svn://svn.berlios.de//socketcan/trunk@809 030b6a49-0b11-0410-94ab-b0dab22257f2

15 years agoUpdated can_if start script to support vcan creation.
hartkopp [Sun, 6 Jul 2008 19:15:24 +0000 (19:15 +0000)]
Updated can_if start script to support vcan creation.

git-svn-id: svn://svn.berlios.de//socketcan/trunk@808 030b6a49-0b11-0410-94ab-b0dab22257f2

15 years agoFix order for sanity check before grabbing the netdev.
hartkopp [Wed, 2 Jul 2008 17:39:45 +0000 (17:39 +0000)]
Fix order for sanity check before grabbing the netdev.

git-svn-id: svn://svn.berlios.de//socketcan/trunk@807 030b6a49-0b11-0410-94ab-b0dab22257f2

15 years agoDo not allow to create error frame filters via standard filter sets.
hartkopp [Wed, 2 Jul 2008 04:19:07 +0000 (04:19 +0000)]
Do not allow to create error frame filters via standard filter sets.

git-svn-id: svn://svn.berlios.de//socketcan/trunk@806 030b6a49-0b11-0410-94ab-b0dab22257f2

15 years agoAdded automatic extended frame format recognition.
hartkopp [Wed, 2 Jul 2008 04:05:11 +0000 (04:05 +0000)]
Added automatic extended frame format recognition.

Most SocketCAN userspace tools (like cansend) recognize the EFF by the
stringlength of the given CAN-ID: 3 -> SFF , 8 -> EFF.
This was missing in the candump filter definition and therefore the
values had to be specified with the CAN_EFF_FLAG set in the value, e.g.
92345678 for the extended CAN-ID 12345678 - this was not really nice.

Now the filtersets for extended frames can be specified as expected:
12345678:1FFFFFFF to filter for only 12345678 extended CAN-ID
000000AA:1FFFFFFF to filter for only AA extended CAN-ID.

git-svn-id: svn://svn.berlios.de//socketcan/trunk@805 030b6a49-0b11-0410-94ab-b0dab22257f2

15 years agoAdded silent correction for can_dlc out of range.
hartkopp [Tue, 1 Jul 2008 11:31:59 +0000 (11:31 +0000)]
Added silent correction for can_dlc out of range.

git-svn-id: svn://svn.berlios.de//socketcan/trunk@804 030b6a49-0b11-0410-94ab-b0dab22257f2

15 years agoAdded Softing driver contributed by Kurt Van Dijck (EIA Electronics).
hartkopp [Tue, 1 Jul 2008 10:09:12 +0000 (10:09 +0000)]
Added Softing driver contributed by Kurt Van Dijck (EIA Electronics).

git-svn-id: svn://svn.berlios.de//socketcan/trunk@803 030b6a49-0b11-0410-94ab-b0dab22257f2

15 years agoRemoved spaces after type casts. Fixed typo.
hartkopp [Tue, 1 Jul 2008 09:16:34 +0000 (09:16 +0000)]
Removed spaces after type casts. Fixed typo.

git-svn-id: svn://svn.berlios.de//socketcan/trunk@802 030b6a49-0b11-0410-94ab-b0dab22257f2

15 years agoFollow the changes that added more sanity checks in rev800.
hartkopp [Tue, 1 Jul 2008 08:51:21 +0000 (08:51 +0000)]
Follow the changes that added more sanity checks in rev800.

git-svn-id: svn://svn.berlios.de//socketcan/trunk@801 030b6a49-0b11-0410-94ab-b0dab22257f2

15 years agoAdded some sanity checks to prevent skbuffs from containing inconsistent
hartkopp [Tue, 1 Jul 2008 08:47:47 +0000 (08:47 +0000)]
Added some sanity checks to prevent skbuffs from containing inconsistent
CAN frames.

git-svn-id: svn://svn.berlios.de//socketcan/trunk@800 030b6a49-0b11-0410-94ab-b0dab22257f2

15 years agoFixed condition pointed out by Uwe Bonnes:
hartkopp [Thu, 26 Jun 2008 14:35:46 +0000 (14:35 +0000)]
Fixed condition pointed out by Uwe Bonnes:
https://lists.berlios.de/pipermail/socketcan-core/2008-June/001625.html

git-svn-id: svn://svn.berlios.de//socketcan/trunk@799 030b6a49-0b11-0410-94ab-b0dab22257f2

15 years agoAdd script mkseries to create kernel patches from the trunk
wolf [Wed, 25 Jun 2008 09:07:06 +0000 (09:07 +0000)]
Add script mkseries to create kernel patches from the trunk

To continue developing Socket-CAN on the SVN trunk, the script mkseries
has been provided to create kernel patches suitible for posting on the
netdev mailing list. It requires a kernel version >= 2.6.25 against
which patches will be created.

Signed-off-by: Wolfgang Grandeger <wg@grandegger.com>
git-svn-id: svn://svn.berlios.de//socketcan/trunk@798 030b6a49-0b11-0410-94ab-b0dab22257f2

15 years agoRemoved copyright and license info from the Makefiles.
hartkopp [Tue, 24 Jun 2008 06:12:18 +0000 (06:12 +0000)]
Removed copyright and license info from the Makefiles.

git-svn-id: svn://svn.berlios.de//socketcan/trunk@797 030b6a49-0b11-0410-94ab-b0dab22257f2

15 years agoRemoved module revision dates due to discussion on socketcan-sore ML.
hartkopp [Mon, 23 Jun 2008 12:05:42 +0000 (12:05 +0000)]
Removed module revision dates due to discussion on socketcan-sore ML.

git-svn-id: svn://svn.berlios.de//socketcan/trunk@795 030b6a49-0b11-0410-94ab-b0dab22257f2

15 years agoFix checkpatch "ERROR: do not use assignment in if condition"
hartkopp [Sun, 22 Jun 2008 18:54:20 +0000 (18:54 +0000)]
Fix checkpatch "ERROR: do not use assignment in if condition"

git-svn-id: svn://svn.berlios.de//socketcan/trunk@794 030b6a49-0b11-0410-94ab-b0dab22257f2

15 years agoAdded missing casts that produced warnings on 64-bit compilers.
hartkopp [Sun, 22 Jun 2008 10:47:01 +0000 (10:47 +0000)]
Added missing casts that produced warnings on 64-bit compilers.

git-svn-id: svn://svn.berlios.de//socketcan/trunk@793 030b6a49-0b11-0410-94ab-b0dab22257f2

15 years agoAdded dev->name to startup output.
hartkopp [Fri, 20 Jun 2008 12:19:15 +0000 (12:19 +0000)]
Added dev->name to startup output.

git-svn-id: svn://svn.berlios.de//socketcan/trunk@792 030b6a49-0b11-0410-94ab-b0dab22257f2

15 years agoFixed spacing.
hartkopp [Fri, 20 Jun 2008 12:05:14 +0000 (12:05 +0000)]
Fixed spacing.

git-svn-id: svn://svn.berlios.de//socketcan/trunk@791 030b6a49-0b11-0410-94ab-b0dab22257f2

15 years agoAdded kernel log output on module start.
hartkopp [Fri, 20 Jun 2008 12:01:56 +0000 (12:01 +0000)]
Added kernel log output on module start.

git-svn-id: svn://svn.berlios.de//socketcan/trunk@790 030b6a49-0b11-0410-94ab-b0dab22257f2

15 years agoFixed channel counting and enhanced kernel log output.
hartkopp [Fri, 20 Jun 2008 11:36:26 +0000 (11:36 +0000)]
Fixed channel counting and enhanced kernel log output.

git-svn-id: svn://svn.berlios.de//socketcan/trunk@789 030b6a49-0b11-0410-94ab-b0dab22257f2

15 years agoFix typo.
hartkopp [Fri, 20 Jun 2008 09:19:13 +0000 (09:19 +0000)]
Fix typo.

git-svn-id: svn://svn.berlios.de//socketcan/trunk@788 030b6a49-0b11-0410-94ab-b0dab22257f2

15 years agoFix commandline parameter handling for fixed canframe.data[] .
hartkopp [Fri, 20 Jun 2008 09:16:06 +0000 (09:16 +0000)]
Fix commandline parameter handling for fixed canframe.data[] .

git-svn-id: svn://svn.berlios.de//socketcan/trunk@787 030b6a49-0b11-0410-94ab-b0dab22257f2

15 years agoIntroduced new functions:
hartkopp [Fri, 20 Jun 2008 09:15:13 +0000 (09:15 +0000)]
Introduced new functions:
unsigned char asc2nibble(char c);
int hexstring2candata(char *arg, struct can_frame *cf);
(see documentation in lib.h)
As prerequsite to fix the commandline interface of cangen.

git-svn-id: svn://svn.berlios.de//socketcan/trunk@786 030b6a49-0b11-0410-94ab-b0dab22257f2

15 years agoClean up driver name and revision (in Kernel log)
hartkopp [Fri, 20 Jun 2008 07:10:42 +0000 (07:10 +0000)]
Clean up driver name and revision (in Kernel log)

git-svn-id: svn://svn.berlios.de//socketcan/trunk@785 030b6a49-0b11-0410-94ab-b0dab22257f2

15 years agoAdded EMS Wuensche CPC-Card driver contributed by Sebastian Haas.
hartkopp [Thu, 19 Jun 2008 10:44:13 +0000 (10:44 +0000)]
Added EMS Wuensche CPC-Card driver contributed by Sebastian Haas.

git-svn-id: svn://svn.berlios.de//socketcan/trunk@784 030b6a49-0b11-0410-94ab-b0dab22257f2

15 years agoAdded support form custom irq handlers.
hartkopp [Thu, 19 Jun 2008 10:42:05 +0000 (10:42 +0000)]
Added support form custom irq handlers.

git-svn-id: svn://svn.berlios.de//socketcan/trunk@783 030b6a49-0b11-0410-94ab-b0dab22257f2

15 years agoGet rid of ioctl.h for the new CAN drivers
wolf [Thu, 12 Jun 2008 12:41:05 +0000 (12:41 +0000)]
Get rid of ioctl.h for the new CAN drivers

This patch gets rid of include/linux/can/ioctl.h for the new
CAN device interface and drivers. The definitions have been
moved temporarily to include/linux/can/dev.h. Further cleanup
will follow when the bit timing code is updated. The ioctl.h
file has not been deleted, because it's still used by the old
CAN drivers.

Signed-off-by: Wolfgang Grandegger <wg@grandegger.com>
git-svn-id: svn://svn.berlios.de//socketcan/trunk@782 030b6a49-0b11-0410-94ab-b0dab22257f2

15 years agoRestrict use of strict_strtoul() to kernels 2.6.25+
wolf [Wed, 11 Jun 2008 20:44:00 +0000 (20:44 +0000)]
Restrict use of strict_strtoul() to kernels 2.6.25+

strict_strtoul() is not available for kernel version < 2.6.25.
This patch adds the missing kernel version macros.

Signed-off-by: Wolfgang Grandegger <wg@grandegger.com>
git-svn-id: svn://svn.berlios.de//socketcan/trunk@781 030b6a49-0b11-0410-94ab-b0dab22257f2

15 years agoFix checkpatch.pl complain pointed out by Robert Schwebel.
hartkopp [Wed, 11 Jun 2008 19:29:22 +0000 (19:29 +0000)]
Fix checkpatch.pl complain pointed out by Robert Schwebel.

[patch 34/41] slcan: use right header files
https://lists.berlios.de/pipermail/socketcan-core/2008-June/001363.html

git-svn-id: svn://svn.berlios.de//socketcan/trunk@780 030b6a49-0b11-0410-94ab-b0dab22257f2

15 years agosja: remove duplicate define
wolf [Wed, 11 Jun 2008 18:59:45 +0000 (18:59 +0000)]
sja: remove duplicate define

CONFIG_CAN_DEBUG_DEVICES is already defined in Kconfig.

Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
git-svn-id: svn://svn.berlios.de//socketcan/trunk@779 030b6a49-0b11-0410-94ab-b0dab22257f2

15 years agoold Kconfig: remove trailing whitespace
wolf [Wed, 11 Jun 2008 18:59:33 +0000 (18:59 +0000)]
old Kconfig: remove trailing whitespace

Subject says it all.

Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
git-svn-id: svn://svn.berlios.de//socketcan/trunk@778 030b6a49-0b11-0410-94ab-b0dab22257f2

15 years agosysfs: convert to strict_strtoul
wolf [Wed, 11 Jun 2008 18:59:13 +0000 (18:59 +0000)]
sysfs: convert to strict_strtoul

We should use strict_strtoul() instead of simple_strtoul() where
possible.

Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
git-svn-id: svn://svn.berlios.de//socketcan/trunk@777 030b6a49-0b11-0410-94ab-b0dab22257f2

15 years agomscan: don't use new typedefs
wolf [Wed, 11 Jun 2008 18:58:50 +0000 (18:58 +0000)]
mscan: don't use new typedefs

We should not add new typedefs.

Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
git-svn-id: svn://svn.berlios.de//socketcan/trunk@776 030b6a49-0b11-0410-94ab-b0dab22257f2

15 years agoioctl.h: don't use new typedefs
wolf [Wed, 11 Jun 2008 18:57:39 +0000 (18:57 +0000)]
ioctl.h: don't use new typedefs

We should not add new typedefs.

Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
git-svn-id: svn://svn.berlios.de//socketcan/trunk@775 030b6a49-0b11-0410-94ab-b0dab22257f2

15 years agofixed comment.
hartkopp [Wed, 11 Jun 2008 16:38:00 +0000 (16:38 +0000)]
fixed comment.

git-svn-id: svn://svn.berlios.de//socketcan/trunk@774 030b6a49-0b11-0410-94ab-b0dab22257f2

15 years agoRemoved bad hacks in vcan.c and slcan_attach.c.
hartkopp [Wed, 11 Jun 2008 16:35:19 +0000 (16:35 +0000)]
Removed bad hacks in vcan.c and slcan_attach.c.
Giving some hints for users of older kernels than 2.6.25 that a
compilation error is a normal behaviour in these cases.

git-svn-id: svn://svn.berlios.de//socketcan/trunk@773 030b6a49-0b11-0410-94ab-b0dab22257f2

15 years agoMake use of strict_strtoul() in Kernels 2.6.25+
hartkopp [Wed, 11 Jun 2008 15:15:11 +0000 (15:15 +0000)]
Make use of strict_strtoul() in Kernels 2.6.25+

Based in hint from Robert Schwebel:

[patch 42/44] slcan: convert to strict_strtoul
https://lists.berlios.de/pipermail/socketcan-core/2008-June/001437.html

git-svn-id: svn://svn.berlios.de//socketcan/trunk@772 030b6a49-0b11-0410-94ab-b0dab22257f2

15 years agosja1000: various coding style fixes and include linux/*
wolf [Wed, 11 Jun 2008 14:31:27 +0000 (14:31 +0000)]
sja1000: various coding style fixes and include linux/*

According to the Linux coding style:

- don't use assignments in if statements.
- Use __func__ instead of __FUNCTION__, which is not gcc specific.
- EXPORT_SYMBOL() has to follow directly it's function.
- Do not initialise statics to 0 or NULL.
- Don't put braces around single statements.
- Add KERN_* log levels to printks.

Furthermore, include linux/* instead of asm/*.

Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
git-svn-id: svn://svn.berlios.de//socketcan/trunk@771 030b6a49-0b11-0410-94ab-b0dab22257f2

15 years agoAdded missing include.
hartkopp [Wed, 11 Jun 2008 14:25:56 +0000 (14:25 +0000)]
Added missing include.

git-svn-id: svn://svn.berlios.de//socketcan/trunk@770 030b6a49-0b11-0410-94ab-b0dab22257f2

15 years agosja1000: use linux/io.h
wolf [Wed, 11 Jun 2008 14:24:30 +0000 (14:24 +0000)]
sja1000: use linux/io.h

Use linux/io.h instead of asm/io.h for newer Linux 2.6 kernels.

Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
git-svn-id: svn://svn.berlios.de//socketcan/trunk@769 030b6a49-0b11-0410-94ab-b0dab22257f2

15 years agomscan: various coding style fixes
wolf [Wed, 11 Jun 2008 14:21:45 +0000 (14:21 +0000)]
mscan: various coding style fixes

According to the Linux coding style:

- Don't use assignments in if statements.
- Fix _MSCAN_RESERVED_ macro coding style.
- EXPORT_SYMBOL() has to follow directly it's function.
- Use the standard __func_ instead of gcc specific __FUNCTION__.
- Add KERN_* debug levels for mscan.
- Labels should not be indented.

Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
git-svn-id: svn://svn.berlios.de//socketcan/trunk@768 030b6a49-0b11-0410-94ab-b0dab22257f2

15 years agoFixed cosmetic issues pointed out by Robert Schwebel:
hartkopp [Wed, 11 Jun 2008 14:21:40 +0000 (14:21 +0000)]
Fixed cosmetic issues pointed out by Robert Schwebel:

[patch 35/41] slcan: do not initialize static variables
https://lists.berlios.de/pipermail/socketcan-core/2008-June/001364.html

[patch 36/41] slcan: dont use assignments in if statements
https://lists.berlios.de/pipermail/socketcan-core/2008-June/001357.html

[patch 37/41] slcan: various coding style fixes
https://lists.berlios.de/pipermail/socketcan-core/2008-June/001366.html

[patch 38/41] slcan: no braces around single statements
https://lists.berlios.de/pipermail/socketcan-core/2008-June/001367.html

git-svn-id: svn://svn.berlios.de//socketcan/trunk@767 030b6a49-0b11-0410-94ab-b0dab22257f2

15 years agomscan: use linux/io.h
wolf [Wed, 11 Jun 2008 14:15:11 +0000 (14:15 +0000)]
mscan: use linux/io.h

Use linux/io.h instead of asm/io.h for newer Linux 2.6 kernels.

Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
git-svn-id: svn://svn.berlios.de//socketcan/trunk@766 030b6a49-0b11-0410-94ab-b0dab22257f2

15 years agoh7202: coding style fixes and use linux/io.h
wolf [Wed, 11 Jun 2008 14:13:35 +0000 (14:13 +0000)]
h7202: coding style fixes and use linux/io.h

According to the Linux coding style:
- Fix whitespace around operators.

Furthermore, use linux/io.h instead of asm/io.h for newer
Linux 2.6 kernels.

Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
git-svn-id: svn://svn.berlios.de//socketcan/trunk@765 030b6a49-0b11-0410-94ab-b0dab22257f2

15 years agoccan: coding style fixes and use linux/io.h
wolf [Wed, 11 Jun 2008 14:09:06 +0000 (14:09 +0000)]
ccan: coding style fixes and use linux/io.h

Various coding style fixes:
- Spaces around operators, no spaces after and before braces etc.
- Use __func__ instead of the gcc specific __FUNCTION__.

Furthermore, use linux/io.h instead of asm/io.h for newer
Linux 2.6 kernels.

Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
git-svn-id: svn://svn.berlios.de//socketcan/trunk@764 030b6a49-0b11-0410-94ab-b0dab22257f2

15 years agoSYSFS coding style cleanup (sysfs.c)
wolf [Wed, 11 Jun 2008 14:01:41 +0000 (14:01 +0000)]
SYSFS coding style cleanup (sysfs.c)

According to the Linux coding style:

- don't use assignments in if statements.
- put else on same line as {
- use tabs as indentation, not spaces
- convert to strict_strtoul

Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
git-svn-id: svn://svn.berlios.de//socketcan/trunk@763 030b6a49-0b11-0410-94ab-b0dab22257f2

15 years agoDevice interface coding style cleanup (dev.c, dev.h)
wolf [Wed, 11 Jun 2008 13:56:54 +0000 (13:56 +0000)]
Device interface coding style cleanup (dev.c, dev.h)

According to Linux coding style:

- Don't use assignments in if statements.
- EXPORT_SYMBOL() has to follow directly it's function.
- Use the standard __func_ instead of gcc specific __FUNCTION__.
- Labels should not be indented.
- No braces should be put around single statements.
- Pointers have to be written as "foo *bar", not "foo * bar".
- Static data doesn't have to be initialized with 0.

Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
git-svn-id: svn://svn.berlios.de//socketcan/trunk@762 030b6a49-0b11-0410-94ab-b0dab22257f2

15 years agoRemove trailing whitespace from ccan, h7202 and slcan driver
wolf [Wed, 11 Jun 2008 13:49:06 +0000 (13:49 +0000)]
Remove trailing whitespace from ccan, h7202 and slcan driver

Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
git-svn-id: svn://svn.berlios.de//socketcan/trunk@761 030b6a49-0b11-0410-94ab-b0dab22257f2

15 years agoTiny enhancements in Kconfig and Makefile sugested by Sam Ravnborg.
hartkopp [Wed, 11 Jun 2008 07:16:21 +0000 (07:16 +0000)]
Tiny enhancements in Kconfig and Makefile sugested by Sam Ravnborg.

git-svn-id: svn://svn.berlios.de//socketcan/trunk@760 030b6a49-0b11-0410-94ab-b0dab22257f2

15 years agoMove can-dev.ko CAN driver library to drivers/net/can/*
hartkopp [Tue, 10 Jun 2008 15:54:40 +0000 (15:54 +0000)]
Move can-dev.ko CAN driver library to drivers/net/can/*

git-svn-id: svn://svn.berlios.de//socketcan/trunk@759 030b6a49-0b11-0410-94ab-b0dab22257f2

15 years agoFixed compilation on 2.6.22 Kernels.
hartkopp [Sat, 7 Jun 2008 21:58:35 +0000 (21:58 +0000)]
Fixed compilation on 2.6.22 Kernels.
Whitespace fix.

git-svn-id: svn://svn.berlios.de//socketcan/trunk@757 030b6a49-0b11-0410-94ab-b0dab22257f2

15 years agoMoved CAN_SLCAN config entry behind the vcan driver.
hartkopp [Sat, 7 Jun 2008 21:52:12 +0000 (21:52 +0000)]
Moved CAN_SLCAN config entry behind the vcan driver.

git-svn-id: svn://svn.berlios.de//socketcan/trunk@756 030b6a49-0b11-0410-94ab-b0dab22257f2

15 years agoAdd driver for the PIPCAN module used on some SBC boards
wolf [Thu, 5 Jun 2008 17:37:38 +0000 (17:37 +0000)]
Add driver for the PIPCAN module used on some SBC boards

This patch adds support for the PIPCAN module used on some SBC
boards from MPL AG (http://www.mpl.ch).

Signed-off-by: David Müller <d.mueller@elsoft.ch>
git-svn-id: svn://svn.berlios.de//socketcan/trunk@755 030b6a49-0b11-0410-94ab-b0dab22257f2

16 years agoAdded Id properties that gone lost.
hartkopp [Tue, 3 Jun 2008 08:52:06 +0000 (08:52 +0000)]
Added Id properties that gone lost.

git-svn-id: svn://svn.berlios.de//socketcan/trunk@754 030b6a49-0b11-0410-94ab-b0dab22257f2

16 years agoWhitespace fixes. Indented the code following Linux styleguide to fix
hartkopp [Tue, 3 Jun 2008 08:46:57 +0000 (08:46 +0000)]
Whitespace fixes. Indented the code following Linux styleguide to fix
the mess between tabs and spaces.

git-svn-id: svn://svn.berlios.de//socketcan/trunk@753 030b6a49-0b11-0410-94ab-b0dab22257f2

16 years agoAdded binary output option to candump.c and sprint_long_canframe() in lib.c .
hartkopp [Mon, 2 Jun 2008 20:06:37 +0000 (20:06 +0000)]
Added binary output option to candump.c and sprint_long_canframe() in lib.c .

git-svn-id: svn://svn.berlios.de//socketcan/trunk@752 030b6a49-0b11-0410-94ab-b0dab22257f2

16 years agoAdded tiny tool to measure CAN busload.
hartkopp [Tue, 27 May 2008 13:47:20 +0000 (13:47 +0000)]
Added tiny tool to measure CAN busload.

git-svn-id: svn://svn.berlios.de//socketcan/trunk@751 030b6a49-0b11-0410-94ab-b0dab22257f2

16 years agoMSCAN driver: temporary fix for some issues with FDT probing, also for 2.6.25
wolf [Thu, 22 May 2008 20:14:00 +0000 (20:14 +0000)]
MSCAN driver: temporary fix for some issues with FDT probing, also for 2.6.25

FIXME: The driver should use of_register_platform_driver() sooner than later.

git-svn-id: svn://svn.berlios.de//socketcan/trunk@749 030b6a49-0b11-0410-94ab-b0dab22257f2

16 years agoOld MSCAN driver: fix some issues with FDT probing, also for 2.6.25
wolf [Thu, 22 May 2008 20:02:58 +0000 (20:02 +0000)]
Old MSCAN driver: fix some issues with FDT probing, also for 2.6.25

git-svn-id: svn://svn.berlios.de//socketcan/trunk@748 030b6a49-0b11-0410-94ab-b0dab22257f2

16 years agoOld MSCAN driver: fix a few issues with the new CAN device interface
wolf [Thu, 22 May 2008 20:01:17 +0000 (20:01 +0000)]
Old MSCAN driver: fix a few issues with the new CAN device interface

git-svn-id: svn://svn.berlios.de//socketcan/trunk@747 030b6a49-0b11-0410-94ab-b0dab22257f2

16 years agoAdapt the Makefile for the old MSCAN driver using the proper suffix
wolf [Thu, 22 May 2008 19:56:35 +0000 (19:56 +0000)]
Adapt the Makefile for the old MSCAN driver using the proper suffix

git-svn-id: svn://svn.berlios.de//socketcan/trunk@746 030b6a49-0b11-0410-94ab-b0dab22257f2

16 years agoRemoved the old CCAN driver from drivers/net/can.
hartkopp [Thu, 22 May 2008 19:34:36 +0000 (19:34 +0000)]
Removed the old CCAN driver from drivers/net/can.

git-svn-id: svn://svn.berlios.de//socketcan/trunk@745 030b6a49-0b11-0410-94ab-b0dab22257f2

16 years agoCopied ccan driver source to old/ccan.
hartkopp [Thu, 22 May 2008 19:31:45 +0000 (19:31 +0000)]
Copied ccan driver source to old/ccan.

git-svn-id: svn://svn.berlios.de//socketcan/trunk@744 030b6a49-0b11-0410-94ab-b0dab22257f2

16 years agoAllow == and != operators in cpp #if comparisons with LINUX_VERSION_CODE.
thuermann [Thu, 22 May 2008 11:10:35 +0000 (11:10 +0000)]
Allow == and != operators in cpp #if comparisons with LINUX_VERSION_CODE.

git-svn-id: svn://svn.berlios.de//socketcan/trunk@743 030b6a49-0b11-0410-94ab-b0dab22257f2

16 years agoMoved source of old/Kconfig right after selection of 'old' drivers prompting.
hartkopp [Thu, 22 May 2008 07:50:16 +0000 (07:50 +0000)]
Moved source of old/Kconfig right after selection of 'old' drivers prompting.

git-svn-id: svn://svn.berlios.de//socketcan/trunk@742 030b6a49-0b11-0410-94ab-b0dab22257f2

16 years agoUpdated file ist for patch generation.
hartkopp [Thu, 22 May 2008 07:44:21 +0000 (07:44 +0000)]
Updated file ist for patch generation.

git-svn-id: svn://svn.berlios.de//socketcan/trunk@741 030b6a49-0b11-0410-94ab-b0dab22257f2

16 years agoMoved SJA1000 platform device entries to appear right after selecting
hartkopp [Thu, 22 May 2008 07:15:22 +0000 (07:15 +0000)]
Moved SJA1000 platform device entries to appear right after selecting
SJA1000

git-svn-id: svn://svn.berlios.de//socketcan/trunk@740 030b6a49-0b11-0410-94ab-b0dab22257f2

16 years agoMoved Kconfig items for old drivers to old/Kconfig.
hartkopp [Thu, 22 May 2008 06:46:55 +0000 (06:46 +0000)]
Moved Kconfig items for old drivers to old/Kconfig.
Updated makefile for old targets.
TODO: The Makefiles for mscan and ccan in the old path are not working.
The inclusion of old/Kconfig and the patch file generation is untested.

git-svn-id: svn://svn.berlios.de//socketcan/trunk@739 030b6a49-0b11-0410-94ab-b0dab22257f2

16 years agoAlso saved a backup of the old ccan driver.
hartkopp [Wed, 21 May 2008 20:08:30 +0000 (20:08 +0000)]
Also saved a backup of the old ccan driver.

git-svn-id: svn://svn.berlios.de//socketcan/trunk@738 030b6a49-0b11-0410-94ab-b0dab22257f2

16 years agoForgot to move the old mscan driver before copying the branch into the trunk.
hartkopp [Wed, 21 May 2008 19:54:10 +0000 (19:54 +0000)]
Forgot to move the old mscan driver before copying the branch into the trunk.
But SVN was good to me so i took the previous revision to get the old mscan driver.

git-svn-id: svn://svn.berlios.de//socketcan/trunk@737 030b6a49-0b11-0410-94ab-b0dab22257f2

16 years agomake bcm.c compile with 2.6.26 again.
hartkopp [Wed, 21 May 2008 19:43:41 +0000 (19:43 +0000)]
make bcm.c compile with 2.6.26 again.
TODO: extend strip-src to cope with '=='

git-svn-id: svn://svn.berlios.de//socketcan/trunk@736 030b6a49-0b11-0410-94ab-b0dab22257f2

16 years agoUpdated trunk with current cannetdriver26 file versions.
hartkopp [Wed, 21 May 2008 19:16:07 +0000 (19:16 +0000)]
Updated trunk with current cannetdriver26 file versions.

git-svn-id: svn://svn.berlios.de//socketcan/trunk@735 030b6a49-0b11-0410-94ab-b0dab22257f2

16 years agoCopy new created files from cannetdriver26 into trunk.
hartkopp [Wed, 21 May 2008 17:47:29 +0000 (17:47 +0000)]
Copy new created files from cannetdriver26 into trunk.

git-svn-id: svn://svn.berlios.de//socketcan/trunk@734 030b6a49-0b11-0410-94ab-b0dab22257f2

16 years agoBrought Kconfig.kernel to the current Kconfig from Linux Mainline.
hartkopp [Sun, 11 May 2008 16:27:46 +0000 (16:27 +0000)]
Brought Kconfig.kernel to the current Kconfig from Linux Mainline.

git-svn-id: svn://svn.berlios.de//socketcan/trunk@732 030b6a49-0b11-0410-94ab-b0dab22257f2

16 years agoAdded hint about hexadecimal data representation.
hartkopp [Sun, 11 May 2008 11:46:00 +0000 (11:46 +0000)]
Added hint about hexadecimal data representation.

git-svn-id: svn://svn.berlios.de//socketcan/trunk@731 030b6a49-0b11-0410-94ab-b0dab22257f2

16 years agoOnly #define PF_CAN/AF_CAN when they are not already defined.
hartkopp [Wed, 7 May 2008 11:54:07 +0000 (11:54 +0000)]
Only #define PF_CAN/AF_CAN when they are not already defined.

git-svn-id: svn://svn.berlios.de//socketcan/trunk@730 030b6a49-0b11-0410-94ab-b0dab22257f2

16 years agoAdded patch basefile for 2.6.23.
hartkopp [Wed, 7 May 2008 10:50:37 +0000 (10:50 +0000)]
Added patch basefile for 2.6.23.
Removed definition of IFF_ECHO in 2.6.24 patch basefile.

git-svn-id: svn://svn.berlios.de//socketcan/trunk@729 030b6a49-0b11-0410-94ab-b0dab22257f2

16 years agoUpdated changes in rev727 to Kernel 2.4 path.
hartkopp [Tue, 6 May 2008 14:01:24 +0000 (14:01 +0000)]
Updated changes in rev727 to Kernel 2.4 path.

git-svn-id: svn://svn.berlios.de//socketcan/trunk@728 030b6a49-0b11-0410-94ab-b0dab22257f2

16 years agoThe local loopback of CAN frames and the statistics for packet counting
hartkopp [Tue, 6 May 2008 08:12:59 +0000 (08:12 +0000)]
The local loopback of CAN frames and the statistics for packet counting
should only happen in the case the CAN frame has been enqueued to the
netdevice tx queue successfully.

This follows the rule that only CAN frames that (potentially) touched
the CAN bus are looped back.

Patch for Linux Mainline (2.6.26) will follow tonight.

git-svn-id: svn://svn.berlios.de//socketcan/trunk@727 030b6a49-0b11-0410-94ab-b0dab22257f2