From: Greg KH <greg@kroah.com>
To: "Uwe Kleine-König" <u.kleine-koenig@pengutronix.de>
Cc: kernel@pengutronix.de, linux-serial@vger.kernel.org,
linux-arm-kernel@lists.infradead.org
Subject: Re: [PATCH] serial: imx: add rx and tx led trigger
Date: Wed, 31 Aug 2016 16:00:36 +0200 [thread overview]
Message-ID: <20160831140036.GC13298@kroah.com> (raw)
In-Reply-To: <1467646452-21243-1-git-send-email-u.kleine-koenig@pengutronix.de>
On Mon, Jul 04, 2016 at 05:34:12PM +0200, Uwe Kleine-König wrote:
> Add support for two led triggers per UART instance that blink on
> transmission and reception of data respectively.
>
> Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
> ---
> drivers/tty/serial/imx.c | 57 ++++++++++++++++++++++++++++++++++++++++++++++++
> 1 file changed, 57 insertions(+)
>
> diff --git a/drivers/tty/serial/imx.c b/drivers/tty/serial/imx.c
> index 621e488cbb12..2b6ba3b8bdd5 100644
> --- a/drivers/tty/serial/imx.c
> +++ b/drivers/tty/serial/imx.c
> @@ -39,6 +39,7 @@
> #include <linux/of_device.h>
> #include <linux/io.h>
> #include <linux/dma-mapping.h>
> +#include <linux/leds.h>
>
> #include <asm/irq.h>
> #include <linux/platform_data/serial-imx.h>
> @@ -227,6 +228,8 @@ struct imx_port {
> wait_queue_head_t dma_wait;
> unsigned int saved_reg[10];
> bool context_saved;
> + struct led_trigger led_trigger_rx;
> + struct led_trigger led_trigger_tx;
> };
>
> struct imx_port_ucrs {
> @@ -293,6 +296,10 @@ static inline int is_imx6q_uart(struct imx_port *sport)
> {
> return sport->devdata->devtype == IMX6Q_UART;
> }
> +
> +static unsigned long led_delay = 50;
> +module_param(led_delay, ulong, 0644);
I hate module parameters, and so should you, this isn't the 1990's
anymore :(
And I'm with Arnd, let's make this work for all tty drivers that want to
use it please.
thanks,
greg k-h
prev parent reply other threads:[~2016-08-31 14:00 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-07-04 15:34 [PATCH] serial: imx: add rx and tx led trigger Uwe Kleine-König
2016-07-04 15:43 ` Arnd Bergmann
2016-07-04 15:50 ` Uwe Kleine-König
2016-07-06 15:22 ` Arnd Bergmann
2016-07-06 17:30 ` Uwe Kleine-König
2016-07-06 20:09 ` Arnd Bergmann
2016-07-07 6:28 ` Uwe Kleine-König
2016-07-07 8:27 ` Arnd Bergmann
2016-07-07 8:33 ` Uwe Kleine-König
2016-07-07 8:43 ` Arnd Bergmann
2016-08-31 14:00 ` Greg KH [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=20160831140036.GC13298@kroah.com \
--to=greg@kroah.com \
--cc=kernel@pengutronix.de \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-serial@vger.kernel.org \
--cc=u.kleine-koenig@pengutronix.de \
/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