Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp4281752rwl; Mon, 10 Apr 2023 08:43:12 -0700 (PDT) X-Google-Smtp-Source: AKy350boJHhtmbJrItvKrppM00aiGvuhdF6RJ+E2cUMHp/Woo5R58aJr8mCIn5PBLZW4mhGgayEo X-Received: by 2002:a17:90b:1bcd:b0:23f:78d6:6ac5 with SMTP id oa13-20020a17090b1bcd00b0023f78d66ac5mr14256216pjb.19.1681141391970; Mon, 10 Apr 2023 08:43:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681141391; cv=none; d=google.com; s=arc-20160816; b=CP+WA4ffWPRNWZsNDkWorR7JKpe5XtBYZzkpakikpgCvlAFMK/TJjW9Wr8J1sGmZKq o3Dxbn+4mjj/zJlMuO5+5m6aJiIxaRskKAiscn/fGz/KcajJ5Vi/0F77qixTuiqC9qzA z7y8/Y8r6ZpMkIP4S2x4WHf1gQwz/FV4F5bgByOLwCZpfZ5Vc6l7Uvy+ycHPhziH2XL+ nE0uk0IVzA+rmXcfOcc3U0GBtowvIGwsMuqbMSDeX22a05uW8rywcHChTsFVd3eoo7Mp 8dyYANi8/QKnhdgVE3BRiDzxMUds1bQwMjcBrgZT01VKH3R2hm16bOyFx78oJSuHEyku +Hig== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:references :cc:to:from:content-language:subject:user-agent:mime-version:date :message-id:dkim-signature; bh=iYwHES1HHEuOHGnfRim60lI7+eW1T9cHdJm3p7Wt+3I=; b=Jv/hdbqhFz3MVLAG2+Ww3QchKeZAeo09boGWsupecVtGK3LJuuiIwG8SfyplAy6pUT 9ubyp6kPPRWbMKa9ug89tt81dF/ZwVq+ld9dQwPNVC5tpInZtO+3kzC+trruP2jkUiuw bNvUnsg5qb74cqiQ0j3a4Ke0jq2to7gJoydQFZv+UuFDFWZwjAiCnZuQDqGv0ztcwK1g mmD2DxS+o8N+hXNWdZcStrrwMXSqtCJAoM8GkG6ZvlLojYCEFwhP7hCMPBYIwkxKdWs1 M9rY35rAkSKDa751eyuIhp/jBhFUsXrEf8bQp/jc2ngqGf8ZVldukR0+k8hcVRPk7A2X 1Liw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=MHXCMKuA; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q17-20020a17090aa01100b0024696759991si3955390pjp.47.2023.04.10.08.43.02; Mon, 10 Apr 2023 08:43:11 -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=@gmail.com header.s=20210112 header.b=MHXCMKuA; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229933AbjDJPgy (ORCPT + 61 others); Mon, 10 Apr 2023 11:36:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50804 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230046AbjDJPgw (ORCPT ); Mon, 10 Apr 2023 11:36:52 -0400 Received: from mail-ej1-x62c.google.com (mail-ej1-x62c.google.com [IPv6:2a00:1450:4864:20::62c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 12EBA5580 for ; Mon, 10 Apr 2023 08:36:51 -0700 (PDT) Received: by mail-ej1-x62c.google.com with SMTP id sg7so24768026ejc.9 for ; Mon, 10 Apr 2023 08:36:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1681141009; h=content-transfer-encoding:in-reply-to:references:cc:to:from :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=iYwHES1HHEuOHGnfRim60lI7+eW1T9cHdJm3p7Wt+3I=; b=MHXCMKuA4zoMpRTMLzkTbPMCtneGtfnQhM8UNuIfSMG/yRekVraclEWx8ZiEhuhi8f 9Kn3aqYVz1yJ+POs5EjYL54YmxjTBZR5fR6Rkqj0vKnbT+OwuMXoxqBQK5u9iHcrpRk1 hTLE6rR5kmzFGmSmVDXM5ndQIQRV9/GcN5et0fjSrIIdRRoZP32NFK3nzD3S+9jnA66S jD7jDzECyEGBpayB/Z4mbfjiMsNWHbIYhRXvOczO6NT1ZeUDBYH2vzcOyYqrcVJt5ZCh SAXqCS3MfV+jc9xDLb9y/XEAH0dpGXeEwIpYMPMVhtk8T4d75sV2d/yPXgpjYvtS3+Dh /HGA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1681141009; h=content-transfer-encoding:in-reply-to:references:cc:to:from :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=iYwHES1HHEuOHGnfRim60lI7+eW1T9cHdJm3p7Wt+3I=; b=gjmVwPAmgOGoIjRX3kmnCEORYfdyp8CsMtEFq+FEeazOXjbOnzWeIJgPA2XbVugqU9 n1kOYVZhIBkOEad2CxMRmA1P24SXXkZJrnSHCz1YMruZNjkf0TILvhobXSKOHBIPfus9 v5AIrUs5+Sq5SEkcOBVfUa9U0oJd2IhSOrPv6SHsZYQ/7tcEcjwG3+OJkWFQawELmZIO gYgVlLpnATqQr3czdoqVSXc4xhPJG5ayX90Y/Y3FB1L5ALzqS7pcmiK7au+N5VyUfcWe 6+M/SD/lJ8ljTNTN3o+edX6hp02vU4qlccmZq37s42M6GhTfWoHc1uzisu+6VHnHBO0i UdvA== X-Gm-Message-State: AAQBX9dPpWhFbfqaGRVztiAC21Hqk/RwAy/nTnkiWNmSFNSLvMOAuRuF QS5v4DzE+WWk17zXYeLfTwg7RF8i/wo= X-Received: by 2002:a17:907:d403:b0:926:c9e4:f843 with SMTP id vi3-20020a170907d40300b00926c9e4f843mr8597445ejc.59.1681141009366; Mon, 10 Apr 2023 08:36:49 -0700 (PDT) Received: from [192.168.1.50] ([81.196.40.55]) by smtp.gmail.com with ESMTPSA id d13-20020a170906344d00b0094a83007249sm1297249ejb.16.2023.04.10.08.36.48 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 10 Apr 2023 08:36:49 -0700 (PDT) Message-ID: Date: Mon, 10 Apr 2023 18:36:48 +0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.8.0 Subject: [PATCH v2 2/2] wifi: rtl8xxxu: Support devices with 5-6 out endpoints Content-Language: en-US From: Bitterblue Smith To: "linux-wireless@vger.kernel.org" Cc: Jes Sorensen , Ping-Ke Shih References: In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=0.1 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=unavailable 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 Handle them the same way as the devices with 3-4 USB out endpoints. This is needed for the RTL8192FU. Signed-off-by: Bitterblue Smith --- v2: - No change. --- drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu.h | 2 +- drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu.h b/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu.h index 39fee07917e7..82a0290ccb29 100644 --- a/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu.h +++ b/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu.h @@ -27,7 +27,7 @@ #define RTL8XXXU_MAX_REG_POLL 500 #define USB_INTR_CONTENT_LENGTH 56 -#define RTL8XXXU_OUT_ENDPOINTS 4 +#define RTL8XXXU_OUT_ENDPOINTS 6 #define REALTEK_USB_READ 0xc0 #define REALTEK_USB_WRITE 0x40 diff --git a/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c b/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c index 62dd53a57659..6106b47d0c37 100644 --- a/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c +++ b/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c @@ -1663,6 +1663,8 @@ int rtl8xxxu_config_endpoints_no_sie(struct rtl8xxxu_priv *priv) struct device *dev = &priv->udev->dev; switch (priv->nr_out_eps) { + case 6: + case 5: case 4: case 3: priv->ep_tx_low_queue = 1; -- 2.39.2