Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp7289328rwb; Tue, 6 Dec 2022 03:59:40 -0800 (PST) X-Google-Smtp-Source: AA0mqf6lj3Kw4uJP9NFmgh4d+jWYXMFabxiL1wSJbGOGBBExtMm89XGKtMiwrewNtlmUEiHYBu2P X-Received: by 2002:a05:6a00:1647:b0:576:c5e1:9b13 with SMTP id m7-20020a056a00164700b00576c5e19b13mr12895537pfc.67.1670327980071; Tue, 06 Dec 2022 03:59:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670327980; cv=none; d=google.com; s=arc-20160816; b=mzrKqwb5/0BCDFqQW7OPAVqH1h4eE9+IKKS4wEGA7/NJqfTJ6Vpd0zFxpBYE+PEJoe f9Z/iEkXzPK0NSC5D49RVYmDWdxKh3OCEQQD+SET7cmBwd/NcNBsUkhEJu8iC9nm/coB ru65HpnYGHdRXnONO0kCJ+Uz3filKJzx+mD1GoqzxXR+yKhBXXo9rVngIuWzmbMKVht5 ZiDF6w3IlqLh6R1TknmV5uiFppXvOb0FpohvMnRVL9kEeQlhchIRjNyJq90A1kKUtpg2 TVh4w5ETUvHovMOrsJj7zvRfcYi6/Lx6clqNL18nwycL1tsZn7Es8l9oid80opMlvtO4 pTJA== 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 Return-Path: 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.59.29; Tue, 06 Dec 2022 03:59:40 -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 + 79 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 ); 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 ; Tue, 6 Dec 2022 03:57:37 -0800 (PST) Received: by mail-ej1-x636.google.com with SMTP id qk9so5617251ejc.3 for ; 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 To: Chandrasekar Ramakrishnan , Marc Kleine-Budde , Wolfgang Grandegger Cc: linux-can@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Markus Schneider-Pargmann 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: X-Mailing-List: linux-kernel@vger.kernel.org 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 -- 2.38.1