linux-serial.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Uwe Kleine-König" <ukleinek@informatik.uni-freiburg.de>
To: linux-serial@vger.kernel.org
Subject: lalal
Date: Fri, 23 Mar 2007 10:03:48 +0100	[thread overview]
Message-ID: <20070323090348.GA4194@lala> (raw)

Hello,

I'm reimplementing a driver for the serial ports of the NetSilicon 9360
processor and have a few questions concerning this.

For your information, I'm using v2.6.21-rc3 and if your interested in
the specs of the UART, you can find it at

	http://ftp1.digi.com/support/documentation/90000675_C.pdf

- I cannot find anything about out1 and out2 in the HRM.  Are these
  signals optional?  (set_mctrl)

- The UART has two different loopback modes.  Citing the HRM:

	- Remote loopback (RL)
	  Provides a remote loopback feature.  When RL is set to 1, the
	  TXD transmit output is connected to the RXD receive input. The
	  RL field immediately echoes receive data back as transmit
	  data.
	  This field is used primarily as a test vehicle for external
	  data equipment.

	- Local loopback (LL)
	  Provides an internal local loopback feature.  When LL is set
	  to 1, the internal receive data stream is connected to the TXD
	  output signal. LL connects the serial channel receiver
	  directly to the serial channel transmitter.
	  This field is used primarily as a test vehicle for the serial
	  channel driver firmware.

  I think I should set at least LL in set_mctrl, if mctrl has TIOCM_LOOP
  set.  What about RL, should I set that, too?

- Documentation/serial/driver lists the bits relevant for get_mctrl.
  One of them is TIOCM_DCD.  When grepping for that in the linux tree,
  the only match is Documentation/serial/driver itself.  The reference
  implementation (amba_pl011.c) uses TIOCM_CAR instead.  Probably the
  documentation should be fixed?

- grepping for TIOCM_RI shows that for all architectures this is defined
  as follows:

  	#define TIOCM_RI   TIOCM_RNG

  For me it looks as if TIOCM_RI were deprecated?  If so,
  Documentation/serial/driver should better use TIOCM_RNG?  amba_pl011.c
  uses TIOCM_RNG, too.

For now that's it, but I expect to have some more questions as the
driver is far from being complete.

Best regards
Uwe

-- 
Uwe Kleine-König

http://www.google.com/search?q=half+a+cup+in+teaspoons
-
To unsubscribe from this list: send the line "unsubscribe linux-serial" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

                 reply	other threads:[~2007-03-23  9:53 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=20070323090348.GA4194@lala \
    --to=ukleinek@informatik.uni-freiburg.de \
    --cc=linux-serial@vger.kernel.org \
    /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).