Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp10470235rwd; Wed, 21 Jun 2023 23:54:45 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6MI/vNRkl1ILGe8A6JJGA6crDZ6CIgklrkD0t4cnNRQoH/yCZCGYDOM9qK1ilbPoJXD1h5 X-Received: by 2002:a05:6358:45a:b0:125:6f8e:67e9 with SMTP id 26-20020a056358045a00b001256f8e67e9mr7239671rwe.18.1687416884869; Wed, 21 Jun 2023 23:54:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687416884; cv=none; d=google.com; s=arc-20160816; b=ZQrOs+7b0EFPBaMamd+341e7Phm6Dmd0xEWb3nxhnOsd0Z7eMndvArtqSbDIQHmvcR UWkN3xLAxRsBMi02jMQmgblInrPPfg6rFY450Qzt+6AWfIqK4Eq/5O6uf24hUaHIepUC RvXSikc7mvSn/8N/HYIaGw/9BripIA05UJv6RPScwJWtyLRbedBVHxVTOP3QQ1isWH3f ei9OppzDHwGPyUZ0XpbkfBfG9l9Gz1ma4O3QhWRZda8TpK5TsnztElkvyqYETCT7gW2D L0Pb3c3Sc5x/NNI1Hws7Yb92JYrIVM8wufj2CmSgN0MaHeJE5svZHdxOSbMyJ27p03Hv WxuQ== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=FRS6j8+Ssr+dO8cK6z3InIVfVLNVrikWFM3ETm0/UXQ=; b=fIrE+Er0vPKQ97ULE1uncfhSGaJPKS5duL3f8mhCVaUdb9CmHVTjFMvrdhxoc+uP+1 5uf2VcvlLOhbGlNlqnQ/vJ3e+ZBwmdSTr6OEsL91KGhbBS9rAxe0OGh5LrILWcqGY3QQ VE7nFOBwmYH/HgJWa3ZpcIFOxO+6tbLFEyEBcIJgGCBUQmrGDbAxkbLK1ay8vr4c/Gdq CLmg+63uERVWf3h/e3BmEpiI8pa5pMsGgjNt61VLaeGAzA3FC2+h1cqr3og/V/uC2iFq LDkRZ6Q//7FTFdQF9pZ38YWtIk7vmisnyfL2hOoVLzkfKPqtfROkre8K0FuY1VlCKMgI yDbA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@yandex.ru header.s=mail header.b=mSUGYL9V; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=yandex.ru Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k137-20020a636f8f000000b0053fbb36fc65si5874906pgc.382.2023.06.21.23.54.36; Wed, 21 Jun 2023 23:54:44 -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; dkim=pass header.i=@yandex.ru header.s=mail header.b=mSUGYL9V; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=yandex.ru Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230233AbjFVGog (ORCPT + 60 others); Thu, 22 Jun 2023 02:44:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53442 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230220AbjFVGoe (ORCPT ); Thu, 22 Jun 2023 02:44:34 -0400 Received: from forward102c.mail.yandex.net (forward102c.mail.yandex.net [178.154.239.213]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5DC2719AD for ; Wed, 21 Jun 2023 23:44:33 -0700 (PDT) Received: from mail-nwsmtp-smtp-production-main-63.sas.yp-c.yandex.net (mail-nwsmtp-smtp-production-main-63.sas.yp-c.yandex.net [IPv6:2a02:6b8:c14:6e01:0:640:627f:0]) by forward102c.mail.yandex.net (Yandex) with ESMTP id D3B2560099; Thu, 22 Jun 2023 09:44:30 +0300 (MSK) Received: by mail-nwsmtp-smtp-production-main-63.sas.yp-c.yandex.net (smtp/Yandex) with ESMTPSA id Qi9Pt8GDVCg0-reCa2uiX; Thu, 22 Jun 2023 09:44:30 +0300 X-Yandex-Fwd: 1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1687416270; bh=FRS6j8+Ssr+dO8cK6z3InIVfVLNVrikWFM3ETm0/UXQ=; h=Message-ID:Date:In-Reply-To:Cc:Subject:References:To:From; b=mSUGYL9VufBqeoDvFcYrZaO2pPPTAqBM9r59v+L443FERr0uPx4OAzl8Am0Um6Vth UxUlw/ajfbf52VyTUNa508La7fHg69wQQOvcT2amYDE+yvH1tVb7+6/li0O+qJVL4Y bVfJnB1G1RS9HuE+thvD07mzNXc43T3raTR3qO88= Authentication-Results: mail-nwsmtp-smtp-production-main-63.sas.yp-c.yandex.net; dkim=pass header.i=@yandex.ru From: Dmitry Antipov To: Po-Hao Huang Cc: Kalle Valo , linux-wireless@vger.kernel.org, Dmitry Antipov , Ping-Ke Shih , Sascha Hauer Subject: [PATCH 3/4] [v5] wifi: rtw88: remove unused USB bulkout size set Date: Thu, 22 Jun 2023 09:44:17 +0300 Message-ID: <20230622064424.38498-3-dmantipov@yandex.ru> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230622064424.38498-1-dmantipov@yandex.ru> References: <20230622064424.38498-1-dmantipov@yandex.ru> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,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 Drop no longer used 'bulkout_size' of 'struct rtw_usb' as well as related macros from usb.h and leftovers in 'rtw_usb_parse()'. This follows commit 462c8db6a011 ("wifi: rtw88: usb: drop now unnecessary URB size check"). Reviewed-by: Ping-Ke Shih Reviewed-by: Sascha Hauer Signed-off-by: Dmitry Antipov --- v5: adjust to match recent changes v4: remove all bulkout size leftovers (Ping-Ke Shih, Sascha Hauer) --- drivers/net/wireless/realtek/rtw88/usb.c | 17 ----------------- drivers/net/wireless/realtek/rtw88/usb.h | 5 ----- 2 files changed, 22 deletions(-) diff --git a/drivers/net/wireless/realtek/rtw88/usb.c b/drivers/net/wireless/realtek/rtw88/usb.c index 0458ab02a89f..91ed6d10ba8a 100644 --- a/drivers/net/wireless/realtek/rtw88/usb.c +++ b/drivers/net/wireless/realtek/rtw88/usb.c @@ -142,7 +142,6 @@ static int rtw_usb_parse(struct rtw_dev *rtwdev, struct usb_host_interface *host_interface = &interface->altsetting[0]; struct usb_interface_descriptor *interface_desc = &host_interface->desc; struct usb_endpoint_descriptor *endpoint; - struct usb_device *usbd = interface_to_usbdev(interface); int num_out_pipes = 0; int i; u8 num; @@ -184,22 +183,6 @@ 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"); - return -EINVAL; - } - rtwdev->hci.bulkout_num = num_out_pipes; if (num_out_pipes < 1 || num_out_pipes > 4) { diff --git a/drivers/net/wireless/realtek/rtw88/usb.h b/drivers/net/wireless/realtek/rtw88/usb.h index fad998005ec8..86697a5c0103 100644 --- a/drivers/net/wireless/realtek/rtw88/usb.h +++ b/drivers/net/wireless/realtek/rtw88/usb.h @@ -18,10 +18,6 @@ #define RTW_USB_VENQT_CMD_IDX 0x00 -#define RTW_USB_SUPER_SPEED_BULK_SIZE 1024 -#define RTW_USB_HIGH_SPEED_BULK_SIZE 512 -#define RTW_USB_FULL_SPEED_BULK_SIZE 64 - #define RTW_USB_TX_SEL_HQ BIT(0) #define RTW_USB_TX_SEL_LQ BIT(1) #define RTW_USB_TX_SEL_NQ BIT(2) @@ -73,7 +69,6 @@ struct rtw_usb { __le32 *usb_data; unsigned int usb_data_index; - u32 bulkout_size; u8 pipe_interrupt; u8 pipe_in; u8 out_ep[RTW_USB_EP_MAX]; -- 2.41.0