]> rtime.felk.cvut.cz Git - socketcan-devel.git/log
socketcan-devel.git
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

15 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

15 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

15 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

15 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

16 years agoUpdated new 'cangen' and 'candump' in the trunk.
hartkopp [Mon, 5 May 2008 12:20:34 +0000 (12:20 +0000)]
Updated new 'cangen' and 'candump' in the trunk.

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

16 years agoUpdated check for correct net device namespaces introduced in Kernel 2.6.26
hartkopp [Fri, 2 May 2008 12:04:42 +0000 (12:04 +0000)]
Updated check for correct net device namespaces introduced in Kernel 2.6.26
by YOSHIFUJI Hideaki:

[NET] NETNS: Omit net_device->nd_net without CONFIG_NET_NS.

Introduce per-net_device inlines: dev_net(), dev_net_set().
Without CONFIG_NET_NS, no namespace other than &init_net exists.
Let's explicitly define them to help compiler optimizations.

http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=c346dca10840a874240c78efe3f39acf4312a1f2

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

16 years agoAdded some code simplifications suggested by Wolfgang Grandegger and
hartkopp [Sat, 26 Apr 2008 09:50:42 +0000 (09:50 +0000)]
Added some code simplifications suggested by Wolfgang Grandegger and
Sam Ravnborg. Tnx.

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

16 years agoFix copy_[to|from]_user() results interpretation as pointed out from
hartkopp [Fri, 25 Apr 2008 18:59:00 +0000 (18:59 +0000)]
Fix copy_[to|from]_user() results interpretation as pointed out from
Pavel Emelyanov on netdev-ML:
http://marc.info/?l=linux-netdev&m=120912754109768&w=2

Both copy_to_ and _from_user return the number of bytes, that failed to
reach their destination, not the 0/-EXXX values.

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

16 years agoAdded tst-bcm-dump to which is used for rx throttle tests.
hartkopp [Wed, 16 Apr 2008 07:39:20 +0000 (07:39 +0000)]
Added tst-bcm-dump to which is used for rx throttle tests.

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

16 years agoAdded hrtimer support for the CAN Broadcast Manager as committed to
hartkopp [Wed, 16 Apr 2008 07:24:36 +0000 (07:24 +0000)]
Added hrtimer support for the CAN Broadcast Manager as committed to
net-2.6.26 git tree: http://marc.info/?t=120829160200001&r=1&w=2

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

16 years agoChanged bcm throttle flush handling as prerequisite for the hrtimer
hartkopp [Wed, 16 Apr 2008 07:04:33 +0000 (07:04 +0000)]
Changed bcm throttle flush handling as prerequisite for the hrtimer
support (to be able to follow the upcoming changes).

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

16 years agoThe struct sockaddr_can has been simplified in the code review process.
hartkopp [Sat, 12 Apr 2008 07:01:36 +0000 (07:01 +0000)]
The struct sockaddr_can has been simplified in the code review process.
This patch updates this simplification also in the associated
documentation in can.txt

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

16 years agoAdded the better timer handling for the broadcast manager introduced in
hartkopp [Tue, 1 Apr 2008 14:48:57 +0000 (14:48 +0000)]
Added the better timer handling for the broadcast manager introduced in
r696 also to the trunk and the cannetdriver26 branch.

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

16 years agoAllow commandline option '-?' to print the help text.
hartkopp [Thu, 13 Mar 2008 21:52:20 +0000 (21:52 +0000)]
Allow commandline option '-?' to print the help text.

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

16 years agoUpdated help text for commandline options.
hartkopp [Thu, 13 Mar 2008 21:44:20 +0000 (21:44 +0000)]
Updated help text for commandline options.

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

16 years agoFixed section mismatches in old sja1000 and i82527 drivers.
hartkopp [Wed, 13 Feb 2008 14:36:00 +0000 (14:36 +0000)]
Fixed section mismatches in old sja1000 and i82527 drivers.
Thanks to Wolfgang for the hint.

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

16 years agoMove the definitions from AF_CAN and PF_CAN from the Makefile to
hartkopp [Tue, 12 Feb 2008 16:05:06 +0000 (16:05 +0000)]
Move the definitions from AF_CAN and PF_CAN from the Makefile to
compat.h which is only included in kernel versions <2.6.25.
This makes CAN core compile under 2.6.25 without any warning.

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

16 years agoAdded the include of <linux/version.h> as we are using the
hartkopp [Tue, 12 Feb 2008 15:25:19 +0000 (15:25 +0000)]
Added the include of <linux/version.h> as we are using the
LINUX_VERSION_CODE.

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

16 years agoFix TX bug in MSCAN driver
wolf [Tue, 12 Feb 2008 13:27:25 +0000 (13:27 +0000)]
Fix TX bug in MSCAN driver

The bug is trigged when there are TX messages pending but not yet
completed and a RX interrupt occures. For some reason this is more
likely under certain conditions e.g. when running under -rt.

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

16 years agoAdapt MSCAN drivers to netdev changes introduced with 2.6.24
wolf [Tue, 12 Feb 2008 13:24:24 +0000 (13:24 +0000)]
Adapt MSCAN drivers to netdev changes introduced with 2.6.24

This patch fixes issues with changes in the netdev layer (NAPI, device stats)
introduced with kernel version 2.6.24.

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

16 years agoRename/remove some variables.
thuermann [Wed, 6 Feb 2008 23:19:30 +0000 (23:19 +0000)]
Rename/remove some variables.
Some white-space clean-up.

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

16 years agoCall request_module() only if CONFIG_KMOD is set.
thuermann [Wed, 6 Feb 2008 23:18:14 +0000 (23:18 +0000)]
Call request_module() only if CONFIG_KMOD is set.

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

16 years agoMove calls to proto_{,un}register() outside of spin-locked region,
thuermann [Wed, 6 Feb 2008 11:56:52 +0000 (11:56 +0000)]
Move calls to proto_{,un}register() outside of spin-locked region,
since proto_register() changed and can now sleep.

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

16 years agoUse request_module() string capabilities instead of creating an own
hartkopp [Wed, 6 Feb 2008 09:02:17 +0000 (09:02 +0000)]
Use request_module() string capabilities instead of creating an own
character array module_name[].

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

16 years agoFixed file list for mkpatch script.
hartkopp [Thu, 31 Jan 2008 19:48:55 +0000 (19:48 +0000)]
Fixed file list for mkpatch script.

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

16 years agoAdded some converions for Kernel 2.4 backport.
hartkopp [Thu, 24 Jan 2008 14:10:14 +0000 (14:10 +0000)]
Added some converions for Kernel 2.4 backport.

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

16 years agoReverted the CAN version back to 20071116 after discussion with David Miller on netde...
hartkopp [Fri, 28 Dec 2007 10:14:22 +0000 (10:14 +0000)]
Reverted the CAN version back to 20071116 after discussion with David Miller on netdev ML.

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

16 years agoVersion 20071227.
hartkopp [Thu, 27 Dec 2007 08:21:35 +0000 (08:21 +0000)]
Version 20071227.

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

16 years agoRemoved 'return' statement to look like 2.6 code.
hartkopp [Wed, 26 Dec 2007 10:36:26 +0000 (10:36 +0000)]
Removed 'return' statement to look like 2.6 code.

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

16 years agoRenamed plain int definitions in struct bcm_msg_head to __u32 as
hartkopp [Wed, 26 Dec 2007 10:21:38 +0000 (10:21 +0000)]
Renamed plain int definitions in struct bcm_msg_head to __u32 as
corectly pointed out by Sam Ravenborg:
https://lists.berlios.de/pipermail/socketcan-core/2007-December/001000.html

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

16 years agoFixed the temporary hack to run with 2.6.24-rc5 again.
hartkopp [Sun, 23 Dec 2007 18:17:29 +0000 (18:17 +0000)]
Fixed the temporary hack to run with 2.6.24-rc5 again.

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

16 years agoSet version to 20071116-backport-pre4
hartkopp [Mon, 17 Dec 2007 12:43:18 +0000 (12:43 +0000)]
Set version to 20071116-backport-pre4

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

16 years agoCosmetics.
hartkopp [Mon, 17 Dec 2007 12:41:03 +0000 (12:41 +0000)]
Cosmetics.

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

16 years agoBackport of 2.6 notifier handling.
hartkopp [Mon, 17 Dec 2007 12:28:04 +0000 (12:28 +0000)]
Backport of 2.6 notifier handling.

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

16 years agoBackport of 2.6 loopback handling.
hartkopp [Mon, 17 Dec 2007 09:12:06 +0000 (09:12 +0000)]
Backport of 2.6 loopback handling.
Cleanup can_create() and can_ioctl().
Cosmetics to reduce 2.4 <-> 2.6 differences.

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

16 years agocosmetics.
hartkopp [Mon, 17 Dec 2007 07:49:05 +0000 (07:49 +0000)]
cosmetics.

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

16 years agoBackport 2.6 procfs handling to 2.4.
hartkopp [Mon, 17 Dec 2007 07:41:56 +0000 (07:41 +0000)]
Backport 2.6 procfs handling to 2.4.

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

16 years agoCosmetics.
hartkopp [Fri, 14 Dec 2007 11:29:43 +0000 (11:29 +0000)]
Cosmetics.

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