From: Nicolas Ferre <nicolas.ferre@atmel.com>
To: Paul Schilling <paul.s.schilling@gmail.com>
Cc: Nicolas Pitre <nicolas.pitre@linaro.org>,
Kukjin Kim <kgene.kim@samsung.com>,
Russell King <linux@arm.linux.org.uk>,
linux-serial@vger.kernel.org, Boojin Kim <boojin.kim@samsung.com>,
Greg Kroah-Hartman <gregkh@suse.de>,
linux-kernel@vger.kernel.org, Ben Dooks <ben-linux@fluff.org>,
linux-arm-kernel@lists.infradead.org,
Alan Cox <alan@linux.intel.com>
Subject: Re: [PATCH 02/14] ARM : SAMSUNG : Add RS485 support.
Date: Fri, 04 Nov 2011 11:18:44 +0100 [thread overview]
Message-ID: <4EB3BC04.1090203@atmel.com> (raw)
In-Reply-To: <1319255194-4799-1-git-send-email-paul.s.schilling@gmail.com>
On 10/22/2011 05:46 AM, Paul Schilling :
> Add RS485 tranmit/recieve control line capabilities
> This RS485 driver uses two methodes to determine if the transmit
> should be disabled.
[..]
> This patch adds an additional variable to the serial RS-485 struct so
> that a program can change the terminate token value via the IOCTL.
[..]
> diff --git a/include/linux/serial.h b/include/linux/serial.h
> index ef91406..826b1c0 100644
> --- a/include/linux/serial.h
> +++ b/include/linux/serial.h
> @@ -211,9 +211,12 @@ struct serial_rs485 {
> #define SER_RS485_RTS_ON_SEND (1 << 1)
> #define SER_RS485_RTS_AFTER_SEND (1 << 2)
> #define SER_RS485_RTS_BEFORE_SEND (1 << 3)
> +#define SER_RS485_ALWAYS_LISTEN (1 << 4)
This value is already in another patch (now in Linus' tree).
> +#define SER_RS485_TOGGLE_ON_TOKEN (1 << 5)
> __u32 delay_rts_before_send; /* Milliseconds */
> __u32 delay_rts_after_send; /* Milliseconds */
> - __u32 padding[5]; /* Memory is cheap, new structs
> + __u32 toggle_token; /* Token used to toggle to receive */
Do not forget to add this new value in the RS485 device tree bindings
[1] that appeared during this merge window. Once converted to device
tree, your platform may need to retrieve this value from it.
[1]: Documentation/devicetree/bindings/serial/rs485.txt
Best regards,
--
Nicolas Ferre
prev parent reply other threads:[~2011-11-04 10:18 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <samsung_rs485>
2011-10-22 3:46 ` [PATCH 02/14] ARM : SAMSUNG : Add RS485 support Paul Schilling
2011-10-22 13:47 ` Russell King - ARM Linux
2011-10-23 17:12 ` Paul Schilling
2011-10-23 20:20 ` Russell King - ARM Linux
2011-11-01 12:18 ` Alan Cox
2011-11-01 14:57 ` Paul Schilling
2011-11-01 19:12 ` Paul Schilling
2011-11-01 19:22 ` Paul Schilling
2011-11-01 19:55 ` Alan Cox
2011-11-04 10:18 ` Nicolas Ferre [this message]
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=4EB3BC04.1090203@atmel.com \
--to=nicolas.ferre@atmel.com \
--cc=alan@linux.intel.com \
--cc=ben-linux@fluff.org \
--cc=boojin.kim@samsung.com \
--cc=gregkh@suse.de \
--cc=kgene.kim@samsung.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-serial@vger.kernel.org \
--cc=linux@arm.linux.org.uk \
--cc=nicolas.pitre@linaro.org \
--cc=paul.s.schilling@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;
as well as URLs for NNTP newsgroup(s).