From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 88492C433FE for ; Thu, 17 Mar 2022 21:08:30 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230099AbiCQVJq (ORCPT ); Thu, 17 Mar 2022 17:09:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53854 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229989AbiCQVJp (ORCPT ); Thu, 17 Mar 2022 17:09:45 -0400 Received: from mail.enpas.org (zhong.enpas.org [IPv6:2a03:4000:2:537::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id C937F221B85; Thu, 17 Mar 2022 14:08:27 -0700 (PDT) Received: from [127.0.0.1] (localhost [127.0.0.1]) by mail.enpas.org (Postfix) with ESMTPSA id EE5B7FF86A; Thu, 17 Mar 2022 21:08:26 +0000 (UTC) Date: Thu, 17 Mar 2022 22:08:22 +0100 From: Max Staudt To: Marc Kleine-Budde Cc: Vincent Mailhol , Wolfgang Grandegger , linux-can@vger.kernel.org, Oliver Neukum , linux-kernel@vger.kernel.org, Greg Kroah-Hartman , Jiri Slaby Subject: Re: [PATCH v3] can, tty: elmcan CAN/ldisc driver for ELM327 based OBD-II adapters Message-ID: <20220317220822.4595c89f.max@enpas.org> In-Reply-To: <20220317205717.pfgfdxxyucmeuuwr@pengutronix.de> References: <20220307214303.1822590-1-max@enpas.org> <20220309135414.34f77251.max@enpas.org> <20220314220408.hn4vdohtjdbfoaqo@pengutronix.de> <20220317212359.71252c57.max@enpas.org> <20220317205717.pfgfdxxyucmeuuwr@pengutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 17 Mar 2022 21:57:17 +0100 Marc Kleine-Budde wrote: > On 17.03.2022 21:23:59, Max Staudt wrote: > > On Mon, 14 Mar 2022 23:04:08 +0100 > > Marc Kleine-Budde wrote: > > > > > On 09.03.2022 22:49:49, Vincent Mailhol wrote: > > > > Either we agree that using can_rx_offload without implementing > > > > the mailbox_read() is OK and in that case, the can_rx_offload > > > > framework should be modified to allow mailbox_read() to be a > > > > NULL pointer. > > > > > > > > Either it is not the case and you use the more classic > > > > netif_rx(). > > > > > > > > And I do not have the answer. I haven't studied can_rx_offload > > > > enough to be a judge here. Sorry. > > > > > > > > @Marc, any thoughts? > > > > > > Use can_rx_offload_add_manual() instead. > > > > m-( > > > > Yes, it's right underneath _add_fifo() and does the right thing. No > > idea how I missed it, I thought I had looked through all variants. > > I think that function was not there form the beginning, maybe you > looked at the rx-offload code when it was not available. Indeed, it was added in 5.10, and my rx-offload work likely just about missed that. Thanks! Max