From patchwork Tue Jul 25 07:30:48 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hayes Wang X-Patchwork-Id: 12559 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9010:0:b0:3e4:2afc:c1 with SMTP id l16csp2309567vqg; Tue, 25 Jul 2023 01:02:10 -0700 (PDT) X-Google-Smtp-Source: APBJJlH2JFHgn/vZJUQz/tMnkqdtOUYwJbaJnYiRSpxqhME8hPJPsnB+28YDBCbOp1x/e+6XTYxJ X-Received: by 2002:a17:906:cc0e:b0:99b:4a29:fb6a with SMTP id ml14-20020a170906cc0e00b0099b4a29fb6amr12124767ejb.59.1690272130488; Tue, 25 Jul 2023 01:02:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690272130; cv=none; d=google.com; s=arc-20160816; b=KlIv5wd1WzxiU014ZJJ1C81wNhLrEch27j3dK27fjrYMd7NNBgemu2bNo0ALt/lDEL H9jjram9StgMaceo9C+aB6ZCix2x+PewryQRHdILh9p+4lRN4VeVhbmuCwZa/nzBALfz WIT4mT+VflUpPO4T5UJTaGrgsp4EAQgwXO9UKLa54pKMg1lPS7jDqfMDr2OiwfjwzGtf pNQ5RPHiezV6MSw5BLQYXo2EBXHWXsVRlfEeaxYGN6tBKVRJiTUjq0z6kC8g+LdF9wd/ FIax+/khYC+AjKNG+73nndylmZ8l6zCN8SrkZDqlrb3ieXWqOlDxHvYDd41+TtZPBFqT C52Q== 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:authenticated-by; bh=hi+GZNSzCFHrZjCrxCtAS8kYaraeWeyTdFYzi3YCOSY=; fh=q9cLQonAfV/WNLezu8/aPFdhVajKMg7lBtPBnvx15GA=; b=JX+qByNPPbNmhxo00r6znm6TMOIywWltEbpUVp3YegdZGQ/cO3cd8wovlkNhMkwNc6 5Saale+JEse0BswhPktCwrPVWd75tHtxHJK7Qva6EgGtiG6O87OQOmLHN2T7eCTXaO9Z 7AS9RUIwFo1CrE+ban+kIds65hA55j5zvnz8R52IE57PhdCsFBYYVnslb5tAnofu72UC Ojws/aVS/3jeBp1AsiYR/ui12jhexgBCMbYKXDJu8PZHTMZvOm0XYlQw/Jaal/kVYmOz nW0az0ozOiFKI1894HTyv3h3qn+Zu5z0q9b2Z1kKECC+88Tmw+CsbZzbte9UHasmTU6h R2nw== 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a23-20020a17090682d700b00977e729a2f7si7929146ejy.951.2023.07.25.01.01.45; Tue, 25 Jul 2023 01:02:10 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232494AbjGYHe2 (ORCPT + 99 others); Tue, 25 Jul 2023 03:34:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49726 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231836AbjGYHd6 (ORCPT ); Tue, 25 Jul 2023 03:33:58 -0400 Received: from rtits2.realtek.com.tw (rtits2.realtek.com [211.75.126.72]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 60E6512C; Tue, 25 Jul 2023 00:31:31 -0700 (PDT) Authenticated-By: X-SpamFilter-By: ArmorX SpamTrap 5.77 with qID 36P7V0620028317, This message is accepted by code: ctloc85258 Received: from mail.realtek.com (rtexh36506.realtek.com.tw[172.21.6.27]) by rtits2.realtek.com.tw (8.15.2/2.81/5.90) with ESMTPS id 36P7V0620028317 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=FAIL); Tue, 25 Jul 2023 15:31:00 +0800 Received: from RTEXMBS04.realtek.com.tw (172.21.6.97) by RTEXH36506.realtek.com.tw (172.21.6.27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.17; Tue, 25 Jul 2023 15:31:11 +0800 Received: from fc38.localdomain (172.22.228.98) by RTEXMBS04.realtek.com.tw (172.21.6.97) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.7; Tue, 25 Jul 2023 15:31:09 +0800 From: Hayes Wang To: , CC: , , , , Hayes Wang Subject: [PATCH net-next 0/2] r8152: reduce control transfer Date: Tue, 25 Jul 2023 15:30:48 +0800 Message-ID: <20230725073051.5150-414-nic_swsd@realtek.com> X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 X-Originating-IP: [172.22.228.98] X-ClientProxiedBy: RTEXH36506.realtek.com.tw (172.21.6.27) To RTEXMBS04.realtek.com.tw (172.21.6.97) X-KSE-ServerInfo: RTEXMBS04.realtek.com.tw, 9 X-KSE-AntiSpam-Interceptor-Info: fallback X-KSE-Antivirus-Interceptor-Info: fallback X-KSE-AntiSpam-Interceptor-Info: fallback X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,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 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1772378789418258194 X-GMAIL-MSGID: 1772378789418258194 The two patches are used to reduce the number of control transfer when access the registers in bulk. Hayes Wang (2): r8152: adjust generic_ocp_write function r8152: set bp in bulk drivers/net/usb/r8152.c | 104 +++++++++++++++++----------------------- 1 file changed, 43 insertions(+), 61 deletions(-)