From patchwork Fri Jan 7 08:13:05 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dario Binacchi X-Patchwork-Id: 12706349 X-Patchwork-Delegate: kuba@kernel.org 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 59523C43219 for ; Fri, 7 Jan 2022 08:13:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345499AbiAGINS (ORCPT ); Fri, 7 Jan 2022 03:13:18 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43756 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345570AbiAGINR (ORCPT ); Fri, 7 Jan 2022 03:13:17 -0500 Received: from mail-wr1-x429.google.com (mail-wr1-x429.google.com [IPv6:2a00:1450:4864:20::429]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 281FBC06118C for ; Fri, 7 Jan 2022 00:13:16 -0800 (PST) Received: by mail-wr1-x429.google.com with SMTP id r10so1886753wrc.3 for ; Fri, 07 Jan 2022 00:13:16 -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=y5vv85VvwS9MS7JlafP+Njn1B1aPbUU7IaGWNQUgbis=; b=iL8oFfe43QgftfpgHnQgjVBubyyuLqUpSLqUuyf72+AdnVY5pkBhR2O1qtoN8yBp2K 3A2ayZWo16ycvCobtZkcAr10oKUS3kiB3Syngs28BfMwZyba3NTBiaKqnrPZzd4sqmIV AMuNWq3z2ioyIpUNGZOSvSTEV8BKw82l+Ucr4= 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=y5vv85VvwS9MS7JlafP+Njn1B1aPbUU7IaGWNQUgbis=; b=y3giQjA+K0XSCs1vjWsgZdd4m6EDNeK9KMpd/8UAjECf3CfZnnsoUE2ewWFHdPEn/n 4lqs+HHoErr7FTuLUeBMj4VLcub4mAhjX8xsqW9QMZym+9U5kT6VZn7XKURNb10N230w XTL6j2EGcyr343JAGtSYaJQd1MOa3unk4ikt6HfABfp4bWgPLxxD9Dnrx3u4WpI2Wmi7 BX8XEkVDuVnNcILhvldKMdcK+SrdjGRIET1B3kXJK1denAdPEpPH9NOiepg5Cd6HkN0c xLKuXLBUGSe9Z9Uojo1QGTfnUULzBiuseunKdKaiQPWK9IMXtHSQLkWBMFmhoG6JyVlL 7nzg== X-Gm-Message-State: AOAM5335Dmq3afE93KhunOjbfeYUSCP/gPyJV78eHX1wsLhKYJYB6uVw SNoo9lKBekeXMBQeh8oM17XDGQ== X-Google-Smtp-Source: ABdhPJyPwaMZa0yQeRjywazx6ncmfSazFg4h+xLedFtfm2vQlCvyJNrBejHstFH3Rpo0cAI3CmiyTA== X-Received: by 2002:a5d:4525:: with SMTP id j5mr9452235wra.519.1641543194804; Fri, 07 Jan 2022 00:13:14 -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.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 07 Jan 2022 00:13:14 -0800 (PST) From: Dario Binacchi To: linux-kernel@vger.kernel.org Cc: Marc Kleine-Budde , linux-can@vger.kernel.org, Dario Binacchi , Coiby Xu , "David S. Miller" , Greg Kroah-Hartman , Jakub Kicinski , Jonathan Corbet , M Chetan Kumar , linux-doc@vger.kernel.org, netdev@vger.kernel.org Subject: [RFC PATCH 1/2] docs: networking: device drivers: add can sub-folder Date: Fri, 7 Jan 2022 09:13:05 +0100 Message-Id: <20220107081306.3681899-2-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 Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org X-Patchwork-Delegate: kuba@kernel.org X-Patchwork-State: RFC Add the container for CAN drivers documentation. Signed-off-by: Dario Binacchi --- .../networking/device_drivers/can/index.rst | 18 ++++++++++++++++++ .../networking/device_drivers/index.rst | 1 + 2 files changed, 19 insertions(+) create mode 100644 Documentation/networking/device_drivers/can/index.rst diff --git a/Documentation/networking/device_drivers/can/index.rst b/Documentation/networking/device_drivers/can/index.rst new file mode 100644 index 000000000000..218276818968 --- /dev/null +++ b/Documentation/networking/device_drivers/can/index.rst @@ -0,0 +1,18 @@ +.. SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) + +Controller Area Network (CAN) Device Drivers +============================================ + +Device drivers for CAN devices. + +Contents: + +.. toctree:: + :maxdepth: 2 + +.. only:: subproject and html + + Indices + ======= + + * :ref:`genindex` diff --git a/Documentation/networking/device_drivers/index.rst b/Documentation/networking/device_drivers/index.rst index 3a5a1d46e77e..5f5cfdb2a300 100644 --- a/Documentation/networking/device_drivers/index.rst +++ b/Documentation/networking/device_drivers/index.rst @@ -11,6 +11,7 @@ Contents: appletalk/index atm/index cable/index + can/index cellular/index ethernet/index fddi/index From patchwork Fri Jan 7 08:13:06 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dario Binacchi X-Patchwork-Id: 12706350 X-Patchwork-Delegate: kuba@kernel.org 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 9E3DBC433F5 for ; Fri, 7 Jan 2022 08:13:28 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345740AbiAGINX (ORCPT ); Fri, 7 Jan 2022 03:13:23 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43770 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345627AbiAGINS (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 0EFC1C0611FD for ; Fri, 7 Jan 2022 00:13:18 -0800 (PST) Received: by mail-wm1-x32a.google.com with SMTP id c126-20020a1c9a84000000b00346f9ebee43so2421232wme.4 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=YzAs9J0IeuaHARbgo6dohf3Ez8Fi563nk/mWdzEFqW/Bssq13FeJz7AON75hZerbdq oggQIH95WYp6OlTuIH1sVB2NEY3TK1alEvBJKF9pJgWgqM9FWdPgYLe5vljLrNND8Ndi ANtwOqvB4jjx4pqomaJpCUFd7+uuCeoojBKc4c5Tk/MIezIs6mxyQq6z8eqLcQVbsC+D y1sh7PapHklHNkeMj6ECSszA/OHGirrzkX8T5bNtnjuihc955/NhCzhx/dif/b7dAPfh iSwTC1VvgIuZQE/kxIaUWrsDPxVowlMJw8pUDAS36W62GvtRsa9p+JXNLxnDNb5VfLRf 0fHw== X-Gm-Message-State: AOAM532jgxIQwt7Eh3H8RijvL7quKeqzRGuuga4Mqsb8r4oUlbvv0vH3 /jA4iAxm4N/tfqnaTycSS23MLA== 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 Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org X-Patchwork-Delegate: kuba@kernel.org X-Patchwork-State: RFC 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