[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20220513115223.b56etkaejphldjok@pengutronix.de>
Date: Fri, 13 May 2022 13:52:23 +0200
From: Marc Kleine-Budde <mkl@...gutronix.de>
To: Vincent Mailhol <vincent.mailhol@...il.com>
Cc: Max Staudt <max@...as.org>,
Wolfgang Grandegger <wg@...ndegger.com>,
linux-can@...r.kernel.org,
Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
Oliver Neukum <oneukum@...e.com>, linux-kernel@...r.kernel.org
Subject: Re: [PATCH v6] can, tty: can327 CAN/ldisc driver for ELM327 based
OBD-II adapters
On 13.05.2022 11:38:31, Vincent Mailhol wrote:
> > +
> > + /* We shouldn't get here after a hardware fault:
> > + * can_bus_off() calls netif_carrier_off()
> > + */
> > + WARN_ON_ONCE(elm->uart_side_failure);
> > +
> > + if (!elm->tty ||
> > + elm->uart_side_failure ||
> > + elm->can.ctrlmode & CAN_CTRLMODE_LISTENONLY) {
>
> Can the xmit function get called when CAN_CTRLMODE_LISTENONLY is on?
I think yes. You can skip the whole CAN stack by injecting CAN frames in
the kernel via the packet socket. Maybe we should add a check to
can_dropped_invalid_skb().
Marc
--
Pengutronix e.K. | Marc Kleine-Budde |
Embedded Linux | https://www.pengutronix.de |
Vertretung West/Dortmund | Phone: +49-231-2826-924 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
Download attachment "signature.asc" of type "application/pgp-signature" (489 bytes)
Powered by blists - more mailing lists