From patchwork Thu Sep 15 01:55:54 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: "Ziyang Xuan (William)" X-Patchwork-Id: 12976752 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 845DCECAAD3 for ; Thu, 15 Sep 2022 01:56:09 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230039AbiIOB4H (ORCPT ); Wed, 14 Sep 2022 21:56:07 -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 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 Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org Do some small optimization for can_bcm. Acked-by: Oliver Hartkopp --- 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(-)