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 D8C51C433F5 for ; Fri, 7 Jan 2022 08:13:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345967AbiAGINd (ORCPT ); Fri, 7 Jan 2022 03:13:33 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43768 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345551AbiAGINS (ORCPT ); Fri, 7 Jan 2022 03:13:18 -0500 Received: from mail-wm1-x32a.google.com (mail-wm1-x32a.google.com [IPv6:2a00:1450:4864:20::32a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0EC73C061212 for ; Fri, 7 Jan 2022 00:13:18 -0800 (PST) Received: by mail-wm1-x32a.google.com with SMTP id v10-20020a05600c214a00b00345e59928eeso4977806wml.0 for ; Fri, 07 Jan 2022 00:13:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=aNFvFjfPzdhSbUOj3hcvdY5IUVIwY9ysmaaDPH4hqEw=; b=HUJvC2rBCYnYMrPsMuDGh5OBNDPyw9iliDH6ctc4PaORQ0/4CSBi69707k3xI1vEOU DO/gPV3PusSvyCYUT7bwBx20/VWRSsiJJdeKi36YIPRDn4Jbgjo5x8IAH38qndXNOK4M kTUx/TVrhRIkhXWRQ/ZrVd7al9tAT1+PIpX/8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=aNFvFjfPzdhSbUOj3hcvdY5IUVIwY9ysmaaDPH4hqEw=; b=itK7jECaSwb9IreRXzMimCxo5aR5phgfKHvT9EVWObY+OiTY2x28qLK3yATz6M7i+o 3S3dIiequOWWsqz79bAEmeqCcJzGT2j3yvd8/XQTOlVjSk7s2fcE2NVCyalgA0eGQnzp br8z4M6hDN4Exz6V7FK23PgMnSxlbs65wr0TU4kr43HAEuUZzT5eVULx9J2mIyLvUa6k HaV8JxGFa9R5Ya/XCAQyLQ8Mc9qEhFbf6bwG/GWhX/6naZm7HMzucscUjYWKt3cDFC5X sLUVEPB9BJQy0XUVtRxRoiuLBCc8GzPysX//UNGx90nJiRCWoNEELVNx1c6+4x0MxibE pSZw== X-Gm-Message-State: AOAM530z3lSLE2NlKycEepBapxapOza3KsFBtX9tvLIeK9A3k/sdXiwv xwxBQNVsVO/8szuimK45Du/53pw93iaurw== X-Google-Smtp-Source: ABdhPJwjkacrYJEH7D3L5LAfAOudyDPO3yGwNl/aaJB4R6tP6IVdM2JWpRn8ogz65SxvbkbCOD2rTA== X-Received: by 2002:a05:600c:a0a:: with SMTP id z10mr10025256wmp.126.1641543196271; Fri, 07 Jan 2022 00:13:16 -0800 (PST) Received: from dario-ThinkPad-T14s-Gen-2i.amarulasolutions.com (mob-5-90-38-18.net.vodafone.it. [5.90.38.18]) by smtp.gmail.com with ESMTPSA id w17sm4280633wmc.14.2022.01.07.00.13.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 07 Jan 2022 00:13:15 -0800 (PST) From: Dario Binacchi To: linux-kernel@vger.kernel.org Cc: Marc Kleine-Budde , linux-can@vger.kernel.org, Dario Binacchi , "David S. Miller" , Jakub Kicinski , Jonathan Corbet , linux-doc@vger.kernel.org, netdev@vger.kernel.org Subject: [RFC PATCH 2/2] docs: networking: device drivers: can: add flexcan Date: Fri, 7 Jan 2022 09:13:06 +0100 Message-Id: <20220107081306.3681899-3-dario.binacchi@amarulasolutions.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20220107081306.3681899-1-dario.binacchi@amarulasolutions.com> References: <20220107081306.3681899-1-dario.binacchi@amarulasolutions.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add initial documentation for Flexcan driver. Signed-off-by: Dario Binacchi --- .../device_drivers/can/freescale/flexcan.rst | 25 +++++++++++++++++++ .../networking/device_drivers/can/index.rst | 2 ++ 2 files changed, 27 insertions(+) create mode 100644 Documentation/networking/device_drivers/can/freescale/flexcan.rst diff --git a/Documentation/networking/device_drivers/can/freescale/flexcan.rst b/Documentation/networking/device_drivers/can/freescale/flexcan.rst new file mode 100644 index 000000000000..1a5bb2ed08a3 --- /dev/null +++ b/Documentation/networking/device_drivers/can/freescale/flexcan.rst @@ -0,0 +1,25 @@ +.. SPDX-License-Identifier: GPL-2.0+ + +============================= +Flexcan CAN Controller driver +============================= + +Authors: Marc Kleine-Budde , +Dario Binacchi + +On/off RTR frames reception +=========================== + + 1. interface down:: + + ethtool --set-priv-flags can0 rx-rtr {off|on} + + 2. interface up:: + + ip link set dev can0 down + ethtool --set-priv-flags can0 rx-rtr {off|on} + ip link set dev can0 up + +Note. For the Flexcan on i.MX25, i.Mx28, i.MX35 and i.Mx53 SOCs, the reception +of RTR frames is possible only if the controller is configured in RxFIFO mode. +In this mode only 6 of the 64 message buffers are used for reception. diff --git a/Documentation/networking/device_drivers/can/index.rst b/Documentation/networking/device_drivers/can/index.rst index 218276818968..58b6e0ad3030 100644 --- a/Documentation/networking/device_drivers/can/index.rst +++ b/Documentation/networking/device_drivers/can/index.rst @@ -10,6 +10,8 @@ Contents: .. toctree:: :maxdepth: 2 + freescale/flexcan + .. only:: subproject and html Indices -- 2.32.0