From: Marc Kleine-Budde <mkl@pengutronix.de>
To: Oliver Hartkopp <socketcan@hartkopp.net>
Cc: Bernd Krumboeck <b.krumboeck@gmail.com>,
linux-can@vger.kernel.org, linux-usb@vger.kernel.org,
info@gerhard-bertelsmann.de, gediminas@8devices.com,
Bernd Krumboeck <krumboeck@universalnet.at>
Subject: Re: [PATCH v9] usb_8dev: Add support for USB2CAN interface from 8 devices
Date: Tue, 15 Jan 2013 21:23:15 +0100 [thread overview]
Message-ID: <50F5BAB3.3090902@pengutronix.de> (raw)
In-Reply-To: <50F471AC.50902@hartkopp.net>
[-- Attachment #1: Type: text/plain, Size: 3501 bytes --]
On 01/14/2013 09:59 PM, Oliver Hartkopp wrote:
> Hi Bernd,
>
> On 16.12.2012 08:01, Bernd Krumboeck wrote:
>
>> Add device driver for USB2CAN interface from "8 devices" (http://www.8devices.com).
>>
>> changes since v8:
>> * remove all sysfs files
>>
>> changes since v7:
>> * add sysfs documentation
>> * fix minor styling issue
>> * fixed can state for passive mode
>> * changed handling for crc errors
>>
>> changes since v6:
>> * changed some variable types to big endian equivalent
>> * small cleanups
>>
>> changes since v5:
>> * unlock mutex on error
>>
>> changes since v4:
>> * removed FSF address
>> * renamed struct usb_8dev
>> * removed unused variable free_slots
>> * replaced some _to_cpu functions with pointer equivalent
>> * fix return value for usb_8dev_set_mode
>> * handle can errors with separate function
>> * fix overrun error handling
>> * rewrite error handling for usb_8dev_start_xmit
>> * fix urb submit in usb_8dev_start
>> * various small fixes
>>
>> Signed-off-by: Bernd Krumboeck <krumboeck@universalnet.at>
>> Acked-by: Wolfgang Grandegger <wg@grandegger.com>
>
>
> Tested-by: Oliver Hartkopp <socketcan@hartkopp.net>
>
> Fortunately i got my adapter today ...
>
> [ 52.984254] usb 2-1.4: new full-speed USB device number 6 using ehci-pci
> [ 53.078690] usb 2-1.4: New USB device found, idVendor=0483, idProduct=1234
> [ 53.078698] usb 2-1.4: New USB device strings: Mfr=1, Product=2, SerialNumber=3
> [ 53.078703] usb 2-1.4: Product: USB2CAN converter
> [ 53.078707] usb 2-1.4: Manufacturer: edevices
> [ 53.078711] usb 2-1.4: SerialNumber: ED000212
> [ 53.111990] usb_8dev 2-1.4:1.0 can2: firmware: 1.4, hardware: 255.255
> [ 53.112090] usbcore: registered new interface driver usb_8dev
>
> Looks good :-)
>
> When detaching the device from the CAN bus when sending/receiving CAN traffic
> i got these dmesg infos:
>
> [ 960.047130] usb_8dev 2-1.4:1.0 can2: Unknown status/error message (0)
> [ 976.544343] usb_8dev 2-1.4:1.0 can2: Unknown status/error message (0)
>
> Did you check these kind of 'unfriendly user' tests?
>
> E.g. pulling the USB under receive load brings this output:
>
> [ 1343.786427] usb_8dev 2-1.4:1.0 can2: Rx URB aborted (-32)
> [ 1343.786640] usb_8dev 2-1.4:1.0 can2: Rx URB aborted (-32)
>
> (..) another 344 of these URB aborted messages
>
> [ 1343.872620] usb_8dev 2-1.4:1.0 can2: Rx URB aborted (-32)
> [ 1343.872867] usb_8dev 2-1.4:1.0 can2: Rx URB aborted (-32)
> [ 1343.873124] usb_8dev 2-1.4:1.0 can2: Rx URB aborted (-32)
> [ 1343.873269] usb 2-1.4: USB disconnect, device number 6
> [ 1343.873363] usb_8dev 2-1.4:1.0 can2: Rx URB aborted (-32)
> [ 1343.875259] usb_8dev 2-1.4:1.0 can2: device disconnected
> [ 1343.875366] usb_8dev 2-1.4:1.0 can2: sending command message failed
> [ 1343.875371] usb_8dev 2-1.4:1.0 can2: couldn't stop device
>
>
> Tomorrow i will do some more testing.
>
> The LED handling of the device is really fine:
>
> - interface down -> red
> - interface up -> green
> - interface error passive -> green blinking
>
> Regards,
> Oliver
What do you suggest? Add the driver or fix the errors first?
Marc
--
Pengutronix e.K. | Marc Kleine-Budde |
Industrial Linux Solutions | Phone: +49-231-2826-924 |
Vertretung West/Dortmund | Fax: +49-5121-206917-5555 |
Amtsgericht Hildesheim, HRA 2686 | http://www.pengutronix.de |
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 263 bytes --]
next prev parent reply other threads:[~2013-01-15 20:23 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-12-16 7:01 [PATCH v9] usb_8dev: Add support for USB2CAN interface from 8 devices Bernd Krumboeck
[not found] ` <1355641315-15739-1-git-send-email-krumboeck-Hi41barv6paIERSsAYjmKA@public.gmane.org>
2013-01-14 20:59 ` Oliver Hartkopp
2013-01-15 20:23 ` Marc Kleine-Budde [this message]
[not found] ` <50F5BAB3.3090902-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org>
2013-01-15 20:30 ` Oliver Hartkopp
2013-01-15 20:40 ` Marc Kleine-Budde
[not found] ` <50F471AC.50902-fJ+pQTUTwRTk1uMJSBkQmQ@public.gmane.org>
2013-01-15 22:05 ` "Bernd Krumböck"
[not found] ` <ae58b62ae76e6261e66774c458012a87.squirrel-2RFepEojUI0eLjVtqu/qlogRFKwBiOYo@public.gmane.org>
2013-01-16 6:13 ` Oliver Hartkopp
2013-01-16 7:51 ` "Bernd Krumböck"
2013-01-16 8:07 ` "Bernd Krumböck"
2013-01-17 21:16 ` Oliver Hartkopp
2013-01-18 19:55 ` Oliver Hartkopp
2013-01-19 6:36 ` "Bernd Krumböck"
-- strict thread matches above, loose matches on Subject: below --
2013-01-18 14:31 "Bernd Krumböck"
2013-01-18 19:47 ` Oliver Hartkopp
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=50F5BAB3.3090902@pengutronix.de \
--to=mkl@pengutronix.de \
--cc=b.krumboeck@gmail.com \
--cc=gediminas@8devices.com \
--cc=info@gerhard-bertelsmann.de \
--cc=krumboeck@universalnet.at \
--cc=linux-can@vger.kernel.org \
--cc=linux-usb@vger.kernel.org \
--cc=socketcan@hartkopp.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).