Received: by 2002:a05:6358:489b:b0:bb:da1:e618 with SMTP id x27csp207506rwn; Wed, 14 Sep 2022 19:08:45 -0700 (PDT) X-Google-Smtp-Source: AA6agR5QT8UKURC87bP5zm3bqFTTO+5FXGLuqXgEGlvjGeo48euDLQ7gBMGNnhr1PoWqHaq9IFvK X-Received: by 2002:a05:6402:e86:b0:440:d1be:20c7 with SMTP id h6-20020a0564020e8600b00440d1be20c7mr32822330eda.349.1663207725139; Wed, 14 Sep 2022 19:08:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663207725; cv=none; d=google.com; s=arc-20160816; b=V32+aCYG1+wJLT5f6zhLdq/FkdolD1iDBgcwz7cKiwfGy+U934Z3EshKPi/NKSx+w1 /7uF4aK1AQ9auP/YaN7yaXQMd3PVVaDiMe4m+jv8Pl25FIpDHqUzM7wAwdE8WAU6+8hs k7KMdcEQFa0kXWxlyOZiEj3RBeTdCsCydWBbc/8TpKFK2z03wx2bO1szOPDHhoeyQRLu QCPgKa73oxvQ+pQuVdJwO7ygf+JO/co8Dr+u2ijdwQWs3vx9tJobZAwDEiv3+yN6IdVl GQdt2WSDiD/2AW8Sm9JoAsXYEBQ0wZSjvozA/N3aOlGzmdUkZjvo7YxOOAa5G6Np3Qhr KsIQ== 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; bh=R+ZGW8Q0Hyb/jgYZFLEQE1e5pFKL5er3LtEug/jxKt4=; b=DkmfuIiqXPSnvSDOK0IJkNPiHY5Bqp3cDlYeOzj+cXLqMyQ5P0xmMmE1a+d+4LVbKZ QoMbQRtKxTAxI+5efOzTJKFWPpQ0B9NgB31EyzD31EgRA4FJeNQ+PARZpV1ayB97LeGA Esdqbh8lEbdHyMnpF5jWXWZmw63I0Pxy4cdOdCfrXsEOzCLUgct9IzjYwXCmNMViz1SB 5t6k2UIXiGZ/4ArrLZFM3tXMzS9ibs4Sh6pl9uiMBWAxvj6R/4DeoXT10LrGir+1Nb18 qc3fsH0S4HgJyZzbOXaMONndYVdpFmvQHOQbCGuf2k++IFtgfcz947WLTzU2WnLolmzB 7hZw== ARC-Authentication-Results: i=1; mx.google.com; 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; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i16-20020a170906851000b00773dd14c80asi10559245ejx.860.2022.09.14.19.08.12; Wed, 14 Sep 2022 19:08:45 -0700 (PDT) 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; 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; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230058AbiIOB4M (ORCPT + 99 others); Wed, 14 Sep 2022 21:56:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47492 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229709AbiIOB4E (ORCPT ); Wed, 14 Sep 2022 21:56:04 -0400 Received: from szxga08-in.huawei.com (szxga08-in.huawei.com [45.249.212.255]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1DD9C8E472; Wed, 14 Sep 2022 18:56:03 -0700 (PDT) Received: from canpemm500006.china.huawei.com (unknown [172.30.72.57]) by szxga08-in.huawei.com (SkyGuard) with ESMTP id 4MSgDf6Qdvz14QZV; Thu, 15 Sep 2022 09:52:02 +0800 (CST) Received: from localhost.localdomain (10.175.104.82) by canpemm500006.china.huawei.com (7.192.105.130) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Thu, 15 Sep 2022 09:56:00 +0800 From: Ziyang Xuan To: , , , , , CC: Subject: [PATCH v2 0/2] can: bcm: can: bcm: random optimizations Date: Thu, 15 Sep 2022 09:55:54 +0800 Message-ID: X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit X-Originating-IP: [10.175.104.82] X-ClientProxiedBy: dggems704-chm.china.huawei.com (10.3.19.181) To canpemm500006.china.huawei.com (7.192.105.130) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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 Do some small optimization for can_bcm. --- v2: - Continue to update currframe when can_send() failed in patch 2. - Remove ‘Fixes’ tag in patch 2. Ziyang Xuan (2): can: bcm: registration process optimization in bcm_module_init() can: bcm: check the result of can_send() in bcm_can_tx() net/can/bcm.c | 25 +++++++++++++++++++------ 1 file changed, 19 insertions(+), 6 deletions(-) -- 2.25.1