Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp7225992rwd; Mon, 19 Jun 2023 20:59:06 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4BzC/D5ilIZJpuczJsRxjj0PQ7D/LpwvRH+ekWR5t1ErJK1Dj6q+KsBLw21x/IKn5QXhg3 X-Received: by 2002:a05:6a20:7f8c:b0:11a:f632:78fb with SMTP id d12-20020a056a207f8c00b0011af63278fbmr14401995pzj.19.1687233545863; Mon, 19 Jun 2023 20:59:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687233545; cv=none; d=google.com; s=arc-20160816; b=rOXkFwh68Vy8z406/WPq9tX4Iv2UgiTTx18rBIZ5TB2s/gdS7UAs59ISpmi7KLb4Lm /TNI9kfOG+jFI4SmwyaJEcGv4wyacvRm3HH2V+PtB9MEt/VZjo/07jxTxI4tkLcDH0eS VLVj/t31Iz7yXifDcap5I72HCq3OBEfNqez1mEGQB1zLxDnbk8zVeKT43PC7S49Ns8Ci 6c5oq6vHk9YRI1tD3YiE58llKPn1O5O5qWze6c1QQmvXpMqWW0/gYvitoy3i7xYKXQ6u q+m5nsR4FJoNnatTHvtWkPQ5DSKRYmRO0cONYSwxIMTwyKKNpx/Lyy4Z+N0/uzDdLMP8 HBfA== 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=cw5yBt8IVB3aJYRD5hbeMtEntMfw93W6TgGuuj983/0=; b=aSw1sS/JwIu9dmiuBguOBikFnRbLqdtgUpOZj9MRmPXBUgSKSIw/c+tkBNN+pu4RuU 3S7UCkyc2ddeVipUKFcFO78N48xz1qWRZ5/dIULbNBPatH8gjO+2cfo6DVB//tvIzRLf Av1NmRh7AP2FEF6w3DbYakycQRTdQzfIS4mi95JjnWqAzZM1sMUhju5e6uXhuaqid1OM LE9puq+CEfMt/r3HPE1M2v2zjgHtSNheI9Ozz8gVtYviHSZmTl26lFE9E9w4WkBZDPEW +i6qjPmGQBYiUwpqBFiI9S0IlSD7PAvsrQ75nWm628Q1/Jm6HsutxUe39h8oYpOIeaQS FotA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-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 c189-20020a621cc6000000b0064cc2c0c815si772568pfc.396.2023.06.19.20.58.54; Mon, 19 Jun 2023 20:59:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-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-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229655AbjFTDt4 convert rfc822-to-8bit (ORCPT + 59 others); Mon, 19 Jun 2023 23:49:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33702 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230031AbjFTDtx (ORCPT ); Mon, 19 Jun 2023 23:49:53 -0400 Received: from rtits2.realtek.com.tw (rtits2.realtek.com [211.75.126.72]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5310110C2 for ; Mon, 19 Jun 2023 20:49:48 -0700 (PDT) Authenticated-By: X-SpamFilter-By: ArmorX SpamTrap 5.77 with qID 35K3mx0F3026483, 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 35K3mx0F3026483 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=OK); Tue, 20 Jun 2023 11:48:59 +0800 Received: from RTEXDAG01.realtek.com.tw (172.21.6.100) 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, 20 Jun 2023 11:49:19 +0800 Received: from RTEXMBS04.realtek.com.tw (172.21.6.97) by RTEXDAG01.realtek.com.tw (172.21.6.100) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.7; Tue, 20 Jun 2023 11:49: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; Tue, 20 Jun 2023 11:49:19 +0800 From: Ping-Ke Shih To: Dmitry Antipov , "s.hauer@pengutronix.de" CC: Kalle Valo , "linux-wireless@vger.kernel.org" Subject: RE: [PATCH 3/3] [v3] wifi: rtw88: remove unused USB bulkout size set Thread-Topic: [PATCH 3/3] [v3] wifi: rtw88: remove unused USB bulkout size set Thread-Index: AQHZoDDgsqypGkZyX0KWVgPRq7dcwq+TEihw Date: Tue, 20 Jun 2023 03:49:19 +0000 Message-ID: <5ecd668942f44275953081ae63acc57c@realtek.com> References: <20230616085917.60662-1-dmantipov@yandex.ru> <20230616085917.60662-3-dmantipov@yandex.ru> In-Reply-To: <20230616085917.60662-3-dmantipov@yandex.ru> Accept-Language: en-US, zh-TW Content-Language: zh-TW X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [172.21.69.188] x-kse-serverinfo: RTEXDAG01.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-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-wireless@vger.kernel.org // add rtw88 USB author Sascha for his comments. > -----Original Message----- > From: Dmitry Antipov > Sent: Friday, June 16, 2023 4:59 PM > To: Ping-Ke Shih > Cc: Kalle Valo ; linux-wireless@vger.kernel.org; Dmitry Antipov > Subject: [PATCH 3/3] [v3] wifi: rtw88: remove unused USB bulkout size set > > Drop no longer used 'bulkout_size' of 'struct rtw_usb' > and related macros from usb.h, but preserve sanity check > in 'rtw_usb_parse()'. This follows commit 462c8db6a011 > ("wifi: rtw88: usb: drop now unnecessary URB size check"). > > Signed-off-by: Dmitry Antipov > --- > drivers/net/wireless/realtek/rtw88/usb.c | 5 ----- > drivers/net/wireless/realtek/rtw88/usb.h | 5 ----- > 2 files changed, 10 deletions(-) > > diff --git a/drivers/net/wireless/realtek/rtw88/usb.c b/drivers/net/wireless/realtek/rtw88/usb.c > index 6862338b1d51..40e614f58349 100644 > --- a/drivers/net/wireless/realtek/rtw88/usb.c > +++ b/drivers/net/wireless/realtek/rtw88/usb.c > @@ -186,13 +186,8 @@ static int rtw_usb_parse(struct rtw_dev *rtwdev, > switch (usbd->speed) { > case USB_SPEED_LOW: > case USB_SPEED_FULL: > - rtwusb->bulkout_size = RTW_USB_FULL_SPEED_BULK_SIZE; > - break; > case USB_SPEED_HIGH: > - rtwusb->bulkout_size = RTW_USB_HIGH_SPEED_BULK_SIZE; > - break; > case USB_SPEED_SUPER: > - rtwusb->bulkout_size = RTW_USB_SUPER_SPEED_BULK_SIZE; > break; > default: > rtw_err(rtwdev, "failed to detect usb speed\n"); If we decide to remove rtwusb->bulkout_size, I suggest to remove whole switch..case chunk.