Linux CAN drivers development
 help / color / mirror / Atom feed
From: "Trevitz, Daniel" <Daniel.Trevitz@wika.com>
To: Marc Kleine-Budde <mkl@pengutronix.de>,
	"linux-can@vger.kernel.org" <linux-can@vger.kernel.org>
Cc: Ryan Edwards <ryan.edwards@gmail.com>
Subject: RE: [PATCH v2 0/3] can: gs_usb: cleanups and termination support
Date: Sun, 18 Sep 2022 22:00:35 +0000	[thread overview]
Message-ID: <de6f97b076ca4a06862cbb91a50fc718@wika.com> (raw)
In-Reply-To: <20220918211802.692405-1-mkl@pengutronix.de>

Is there a place to document this?

Example setting termination state:
	on: ip link set dev can0 type can termination 120
	off: ip link set dev can0 type can termination 0

Read the state:
	ip -details link show can0 

58: can0: <NOARP,ECHO> mtu 16 qdisc noop state DOWN mode DEFAULT group default qlen 10
    link/can  promiscuity 0 minmtu 0 maxmtu 0 
    can state STOPPED restart-ms 0 
          gs_usb: tseg1 1..16 tseg2 1..8 sjw 1..4 brp 1..1024 brp_inc 1
          termination 120 [ 0, 120
          clock 48000000 numtxqueues 1 numrxqueues 1 gso_max_size 65536 gso_max_segs 65535 gro_max_size 65536 parentbus usb parentdev 3-12.2:1.0





**CONFIDENTIALITY NOTICE**


This communication, including any attachments, is from WIKA Mobile Control, LP and contains confidential information intended only for the addressee(s). If you are not the intended recipient, any use, dissemination, distribution or copying of this document or its contents is strictly prohibited. If you have received this communication in error, please contact the sender by reply e-mail immediately and destroy all copies of the original message. 


-----Original Message-----
From: Marc Kleine-Budde <mkl@pengutronix.de> 
Sent: Sunday, September 18, 2022 5:18 PM
To: linux-can@vger.kernel.org
Cc: Trevitz, Daniel <Daniel.Trevitz@wika.com>; Ryan Edwards <ryan.edwards@gmail.com>
Subject: [PATCH v2 0/3] can: gs_usb: cleanups and termination support


Hello,

this series first cleans up the driver a bit and then adds switchable termination support.

regards,
Marc

changes since v1 https://lore.kernel.org/all/20220918202348.675850-1-mkl@pengutronix.de:
- add 1/3: "can: gs_usb: gs_make_candev(): convert from usb_control_msg() to usb_control_msg_recv()"
  to make error handling easier
- add 2/3: "can: gs_usb: gs_make_candev(): clean up error handling"
  which introduces a cleanup label
- move 1/3 to 3/3:
  - fix gs_usb_get_termination(), set term value
  - remove check of termination value from gs_usb_set_termination()
  - check for initial termination in gs_make_candev()

  parent reply	other threads:[~2022-09-18 22:01 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-09-18 21:17 [PATCH v2 0/3] can: gs_usb: cleanups and termination support Marc Kleine-Budde
2022-09-18 21:18 ` [PATCH v2 1/3] can: gs_usb: gs_make_candev(): convert from usb_control_msg() to usb_control_msg_recv() Marc Kleine-Budde
2022-09-18 21:18 ` [PATCH v2 2/3] can: gs_usb: gs_make_candev(): clean up error handling Marc Kleine-Budde
2022-09-18 21:18 ` [PATCH v2 3/3] can: gs_usb: add switchable termination support Marc Kleine-Budde
2022-09-19 17:14   ` Trevitz, Daniel
2022-09-19 19:33     ` Marc Kleine-Budde
2022-09-20 11:48       ` Trevitz, Daniel
2022-09-18 22:00 ` Trevitz, Daniel [this message]
2022-09-19  7:34   ` [PATCH v2 0/3] can: gs_usb: cleanups and " Marc Kleine-Budde

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=de6f97b076ca4a06862cbb91a50fc718@wika.com \
    --to=daniel.trevitz@wika.com \
    --cc=linux-can@vger.kernel.org \
    --cc=mkl@pengutronix.de \
    --cc=ryan.edwards@gmail.com \
    /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