Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp1663380pxp; Thu, 17 Mar 2022 13:57:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwqJz0Zs97ZaI0oHIfv3msE3MH2bMLcxpoPHUVFqZsw/l8fqihUpEGjKf1qfwMGeXS93d0a X-Received: by 2002:a17:90b:2496:b0:1b9:a6dd:ae7 with SMTP id nt22-20020a17090b249600b001b9a6dd0ae7mr17992911pjb.35.1647550669265; Thu, 17 Mar 2022 13:57:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1647550669; cv=none; d=google.com; s=arc-20160816; b=uFNNlFylGDT2ohYbkvxVFkKbN4pdfjOzlz72g+UyliT4Tm+P+47GM/33pOZGLFTMcn DijBRzn3ukEYLEXQDpjmd/9mURHA9cGl3raUfcTKNV8TtSVaCcOP2JIDhLBLzPk246ft YA5GOOQI0S6db2i2vnNAk/biX/ASQbAd6L5XaVl6sT4kdZOPX6AFcnSEiYnFHkghGXrc HCI6p0HFiji4zfVO6aig1xf7+kA4ZTPOMp+uiCuYvo3XFJQikN1OmAyU+eqJJQEEF9FW XXwPK9R8xys0V8aqwvykgQcgUbeLFdjpLg3ahyC/0ug1j7qM/Gr2mVMwL8hUF6ws4SXg JsvA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date; bh=CD26GiuhezEM+4iXK0lKkC4frpuQhdP/3EMIcrkpagw=; b=Ga5wXtYIH31Y2VOIHDMLSJINoULwBkMJyfDPV1PzjkLxWOyCQbe+dntffv0p3BZ8aG MlU9A8cEgJlfuARKVCw6gzVbqmBDfB935sP7A7kSU4a3LPTlGoYxsFjnMyrJaVLy24MJ dFVZeNgVpHZZz9QA3pB11l7MM8pVMhTbucwDhk3GUd0Vs8TH1D13YhnNwpxUwgtKmyD4 1tCPbH6Uo+03vnyNrbStsRnvPPXGV2/O0WT2rCFuqP0T2mb2Pv1v3Y/aGFTHU0bopNAf UQItYoPWYpXvgyvu3UvJY/WWc4iwV48XCBVgZAKVePRwPBeQcT2wM9O26h7w1MjGqqJI Ee4g== ARC-Authentication-Results: i=1; mx.google.com; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id p11-20020a635b0b000000b003816043ee8bsi3008321pgb.128.2022.03.17.13.57.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 17 Mar 2022 13:57:49 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id A9DC2147AE2; Thu, 17 Mar 2022 13:24:10 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229635AbiCQUZW (ORCPT + 99 others); Thu, 17 Mar 2022 16:25:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57508 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229595AbiCQUZT (ORCPT ); Thu, 17 Mar 2022 16:25:19 -0400 Received: from mail.enpas.org (zhong.enpas.org [46.38.239.100]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id ABD4F144B7A; Thu, 17 Mar 2022 13:24:02 -0700 (PDT) Received: from [127.0.0.1] (localhost [127.0.0.1]) by mail.enpas.org (Postfix) with ESMTPSA id B9C01FF86A; Thu, 17 Mar 2022 20:24:01 +0000 (UTC) Date: Thu, 17 Mar 2022 21:23:59 +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: <20220317212359.71252c57.max@enpas.org> In-Reply-To: <20220314220408.hn4vdohtjdbfoaqo@pengutronix.de> References: <20220307214303.1822590-1-max@enpas.org> <20220309135414.34f77251.max@enpas.org> <20220314220408.hn4vdohtjdbfoaqo@pengutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. Thanks! > > Also give a look at can_dropped_invalid_skb(). > > ACK Done. > Marc Max