Message ID | 20221206115728.1056014-1-msp@baylibre.com |
---|---|
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp2774654wrr; Tue, 6 Dec 2022 03:59:02 -0800 (PST) X-Google-Smtp-Source: AA0mqf4tXt24XNeVUhtTPCRSiUZuawbUas4OE2Uq5CO9Hqv+0IXRus+6oTSQ1Ype82Vw9qa9MasQ X-Received: by 2002:a05:6a00:4009:b0:563:2ada:30a3 with SMTP id by9-20020a056a00400900b005632ada30a3mr70354116pfb.27.1670327942622; Tue, 06 Dec 2022 03:59:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670327942; cv=none; d=google.com; s=arc-20160816; b=UAOXOWBLKaDr64wj+Y85tPE6fcrCEAZwMk9FkEKcWJCOi3NpkgmVrjKbvuVHKh5lSg /fhYzYu+6L4Tsi9g1Q+b+U24z4pXKTb9/DzbadRdGKqoFMya9yHwG22SeYsndZrSaAqF 6oFGIDj7dcnDlucVJ41rlioxOtv4zZGcQq74pIijiFMgMVTAoGCsGKWx0sba7yDAy5z6 qY0vVXdOMDkwbP4yak3jb9B6W61G3rzbqka3UBPvj3t7L9VjXba1lwOe1pJP+mFTJnGe l9Glt0TG1p1CN8GmDG0mwfPq1fLdIQlPiJiJAUDQIzf+CL6rl0oFEqIdaQJ8sLhPoon7 rEmQ== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=jN+SaF+zuxoUU81Nw24j+GhxhXHvVPtH9udHI+xrnjQ=; b=N94FrNz4yDQ1MZrovdjK5zL1vhnmsWjqy1zUMsKW6OqTAqkMrVGbDRQ1vVY4wfZ6OP +H88BLAFQhzsoE7LpuL/ky0Dczc0CV17VcqKxhhUhB+2yyWcF1FedxaJa2h7ia3rba2U PO3cQ0aEIRyi4Tp8uFL/a6F8evH+1v1J3I6cjpqDmkEG3WQF9LVTdTdo+4u9e1Y5A1+/ op9yicWsjQbhWSimXumw/KvYpcLrkLawNjvsCGW6iCL/ZsYZff2QLjO0PXu/JNtEIEjO dNLGvySfbfOCc3iiuqNyQICprk4UY3hKYK6VxToGy4oo3iVo8FKJRkBqfAqfor0y6j2t pj3Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20210112.gappssmtp.com header.s=20210112 header.b=xTaTf2TB; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id bc22-20020a656d96000000b00478bc014a29si5782638pgb.43.2022.12.06.03.58.48; Tue, 06 Dec 2022 03:59:02 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@baylibre-com.20210112.gappssmtp.com header.s=20210112 header.b=xTaTf2TB; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231715AbiLFL5m (ORCPT <rfc822;jaysivo@gmail.com> + 99 others); Tue, 6 Dec 2022 06:57:42 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50894 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234110AbiLFL5j (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Tue, 6 Dec 2022 06:57:39 -0500 Received: from mail-ej1-x636.google.com (mail-ej1-x636.google.com [IPv6:2a00:1450:4864:20::636]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 74EB7E3D for <linux-kernel@vger.kernel.org>; Tue, 6 Dec 2022 03:57:37 -0800 (PST) Received: by mail-ej1-x636.google.com with SMTP id qk9so5617251ejc.3 for <linux-kernel@vger.kernel.org>; Tue, 06 Dec 2022 03:57:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20210112.gappssmtp.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=jN+SaF+zuxoUU81Nw24j+GhxhXHvVPtH9udHI+xrnjQ=; b=xTaTf2TBlJ0riAw3zVxcG64JhSxN9FcWFLIMmcX0wofkLtWC5FsleYIdwiEITwJ+Gv 5Gei4HbvI6mEjtas3s5gFhjtdqKbB1Tf5+ZGEYVZihdtxMtgiLvqJsc5ulBwo7bLbZLw b2z+jFz/E+92taEGUrEehphYCmDlGCCmcMXmnQ5EST2xzIGI/VxEPqr2HqzNk6Ij2GP/ lJPM8fuD0Renq0iiUZGQkeAnJzA+zZRKSFZZibmnfJeQlObM+lnmUPuM8v7crfCV+lxy pA00CBqGy759uIBV3CwywMBK3fZxakGrBpmilUsBbc7Tbh0f75UJOXxRK99JTrZ+/y20 Hxig== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=jN+SaF+zuxoUU81Nw24j+GhxhXHvVPtH9udHI+xrnjQ=; b=2qXQsMIgONfAH15DKmfYkxlqsRz4wsZQbCW4OSngs9dhp8sHRkn4iRTRIA4BtBC8yw pGrWQhyPTZ2EB11m4UU62tbnfyP4FtCedn1vlyenXxLvj8MVRSEq7SbKUmsspXMhCRO+ 6Z7Q1QAS0aNYSAPC94RXMoX4ORvcHiXPah/BbJUWK7tWCpmHe/NZ8cgZerRN61T4AaWM 93UMxTB2vxooyA6WQ6cSyUGgpVEtr0sbZxXjXEq4hdVBIHcM48b63DQHlh/xeeRvHWDo afJh1J5R7Smw4MYTWt6nwND/5wbYOaAufUx0mAqh3Qn7RlmCt7DJW82E5Rvww0YyOXKa tfDA== X-Gm-Message-State: ANoB5pnHXRpChYyIYCTVP9S44gqNEBO9AU9LywfxpDSy2fQSl8WDcTl1 PXGsrSQbLg7W4Z8bMvca3Hos8A== X-Received: by 2002:a17:906:960f:b0:7c1:133a:37bd with SMTP id s15-20020a170906960f00b007c1133a37bdmr788393ejx.470.1670327855730; Tue, 06 Dec 2022 03:57:35 -0800 (PST) Received: from blmsp.fritz.box ([2001:4091:a245:805c:8713:84e4:2a9e:cbe8]) by smtp.gmail.com with ESMTPSA id ky20-20020a170907779400b007c0ac4e6b6esm6472076ejc.143.2022.12.06.03.57.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 06 Dec 2022 03:57:35 -0800 (PST) From: Markus Schneider-Pargmann <msp@baylibre.com> To: Chandrasekar Ramakrishnan <rcsekar@samsung.com>, Marc Kleine-Budde <mkl@pengutronix.de>, Wolfgang Grandegger <wg@grandegger.com> Cc: linux-can@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Markus Schneider-Pargmann <msp@baylibre.com> Subject: [PATCH v2 00/11] can: m_can: Optimizations for tcan and peripheral chips Date: Tue, 6 Dec 2022 12:57:17 +0100 Message-Id: <20221206115728.1056014-1-msp@baylibre.com> X-Mailer: git-send-email 2.38.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=unavailable 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1751465792739814649?= X-GMAIL-MSGID: =?utf-8?q?1751465792739814649?= |
Series |
can: m_can: Optimizations for tcan and peripheral chips
|
|
Message
Markus Schneider-Pargmann
Dec. 6, 2022, 11:57 a.m. UTC
Hi Marc and everyone, as requested I split the series into two parts. This is the first parts with simple improvements to reduce the number of SPI transfers. The second part will be the rest with coalescing support and more complex optimizations. Changes in v2: - Fixed register ranges - Added fixes: tag for two patches Sorry that I am one day later than promised. Best, Markus Markus Schneider-Pargmann (11): can: m_can: Eliminate double read of TXFQS in tx_handler can: m_can: Avoid reading irqstatus twice can: m_can: Read register PSR only on error can: m_can: Count TXE FIFO getidx in the driver can: m_can: Count read getindex in the driver can: m_can: Batch acknowledge transmit events can: m_can: Batch acknowledge rx fifo can: tcan4x5x: Remove invalid write in clear_interrupts can: tcan4x5x: Fix use of register error status mask can: tcan4x5x: Fix register range of first two blocks can: tcan4x5x: Specify separate read/write ranges drivers/net/can/m_can/m_can.c | 90 +++++++++++++++---------- drivers/net/can/m_can/tcan4x5x-core.c | 19 ++---- drivers/net/can/m_can/tcan4x5x-regmap.c | 47 ++++++++++--- 3 files changed, 100 insertions(+), 56 deletions(-) base-commit: 76dcd734eca23168cb008912c0f69ff408905235