Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp865506rwb; Wed, 26 Jul 2023 04:18:22 -0700 (PDT) X-Google-Smtp-Source: APBJJlEmxRxp9UGtj0pKDezD/JeWQupPltmoTyfWkZOTgR3nPgkOqrt7WyaTyy+5PdT0Z0fwOOkU X-Received: by 2002:a05:6a20:9383:b0:132:c07c:f042 with SMTP id x3-20020a056a20938300b00132c07cf042mr1517540pzh.15.1690370302115; Wed, 26 Jul 2023 04:18:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690370302; cv=none; d=google.com; s=arc-20160816; b=bnEUZF0+CHGRfOlfcwP/0UXZXgqcGEpogiVbkY4wJOpyQaetn+mbviU98jgJrmCXDe o5OtB8QFyeWKerN0oSLg/2mPpJHCEZm+pWP6u24wB9nPQ1LJ6gHNw1eBHUXb49m+iifz zgCrWd+yu5KsDLmVgl44x/kgImDiOF8PAOlhZxjDNyVH581y4LoXuZpO6ssnVCa+u8Bz OkaybTlPOg9EZ8ZVgpXGwJf3oWqlemuQqQjTAgRcOkKTGKLNqCq0/BG0wKRDcDJtSjb+ vUjijg0jFG+xTOYJmoNvBDaBunUy9L3nJIZEOJXiwywy9+D17POOJgyojD56XXYrNdRa 7Ilg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from:authenticated-by; bh=hckqwHvm1/v5oBaKNwHhsgxWMf+n8o+F+cgpYq+UpDQ=; fh=nk6OsamgPQrpzlAZ/cxLkZifN0Q2XVTQykTXU28aLc8=; b=b7ZaYNiERVjuhZs/jNcu2wO59oGCNPcmLLDrOSdzw0kGeDMaxm8SNIAjMXFPeWdec9 D+zyDO5MVTMGN/0qBF0sCRt7HkS5VJZ3Ljy/ivQS9TeHgIt2Ly7TM2o1BfvKuYtZP1ZH 0hlPSOGSDNqGjs0+k21V+vZ8h9GlzNVaL4byDYTOJoU5nnAKoxcP/wiKlzRCkKzjEukm umLl8MBrz2X1jjJHZfsYCUuO4N5fgcsB52Wc6Sk895+9OdQjZ1ZCMMdpdpITgJQUzPpd F9Jye0RmbvBr7J03JEUVr5/3aLEfYNqdXGITFlEWki2Tixydm5/T0ZcvIFKcLZ6FhB+j Mu8w== 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j69-20020a638048000000b00563e6387a54si900985pgd.258.2023.07.26.04.18.09; Wed, 26 Jul 2023 04:18:22 -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 S233685AbjGZJun convert rfc822-to-8bit (ORCPT + 99 others); Wed, 26 Jul 2023 05:50:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34914 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233052AbjGZJue (ORCPT ); Wed, 26 Jul 2023 05:50:34 -0400 Received: from rtits2.realtek.com.tw (rtits2.realtek.com [211.75.126.72]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 0638697; Wed, 26 Jul 2023 02:50:33 -0700 (PDT) Authenticated-By: X-SpamFilter-By: ArmorX SpamTrap 5.77 with qID 36Q9o8NB1021500, This message is accepted by code: ctloc85258 Received: from mail.realtek.com (rtexh36505.realtek.com.tw[172.21.6.25]) by rtits2.realtek.com.tw (8.15.2/2.81/5.90) with ESMTPS id 36Q9o8NB1021500 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=FAIL); Wed, 26 Jul 2023 17:50:08 +0800 Received: from RTEXMBS01.realtek.com.tw (172.21.6.94) by RTEXH36505.realtek.com.tw (172.21.6.25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.32; Wed, 26 Jul 2023 17:50:20 +0800 Received: from RTEXMBS04.realtek.com.tw (172.21.6.97) by RTEXMBS01.realtek.com.tw (172.21.6.94) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.7; Wed, 26 Jul 2023 17:50:19 +0800 Received: from RTEXMBS04.realtek.com.tw ([fe80::e138:e7f1:4709:ff4d]) by RTEXMBS04.realtek.com.tw ([fe80::e138:e7f1:4709:ff4d%5]) with mapi id 15.01.2375.007; Wed, 26 Jul 2023 17:50:19 +0800 From: Hayes Wang To: Andrew Lunn CC: "kuba@kernel.org" , "davem@davemloft.net" , "netdev@vger.kernel.org" , nic_swsd , "linux-kernel@vger.kernel.org" , "linux-usb@vger.kernel.org" Subject: RE: [PATCH net-next v2 2/2] r8152: set bp in bulk Thread-Topic: [PATCH net-next v2 2/2] r8152: set bp in bulk Thread-Index: AQHZv254UA+Qi33MPkOro1jjZO4IXa/LNFWAgACTJBA= Date: Wed, 26 Jul 2023 09:50:18 +0000 Message-ID: <41b998e0222c49d8bbc9eadf1611eb74@realtek.com> References: <20230726030808.9093-417-nic_swsd@realtek.com> <20230726030808.9093-419-nic_swsd@realtek.com> <0c42418b-7271-415d-991a-a4564cb3fad5@lunn.ch> In-Reply-To: <0c42418b-7271-415d-991a-a4564cb3fad5@lunn.ch> Accept-Language: zh-TW, en-US Content-Language: zh-TW X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [172.22.228.6] x-kse-serverinfo: RTEXMBS01.realtek.com.tw, 9 x-kse-antispam-interceptor-info: fallback x-kse-antivirus-interceptor-info: fallback Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 X-KSE-AntiSpam-Interceptor-Info: fallback X-KSE-ServerInfo: RTEXH36505.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 Andrew Lunn > Sent: Wednesday, July 26, 2023 4:39 PM [...] > > /* wait 3 ms to make sure the firmware is stopped */ > > usleep_range(3000, 6000); > > How much time do you save compared to this 3ms - 6ms sleep? I think it depends on the CPU and the USB host controller. Take the PC produced this year for example, I think it saves less than 3ms normally. However, I think saving the number of control transfer is better for both software and hardware. Best Regards, Hayes