Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp4787867rdb; Fri, 29 Dec 2023 13:36:17 -0800 (PST) X-Google-Smtp-Source: AGHT+IGrtRLhCdvzIoXWoMV6yOENMRaAVfOOnWyGAhtJBvOTK2HOwoeAoJWyqFKD+Rbhds037Cwk X-Received: by 2002:a05:6359:59a:b0:174:c7d3:6718 with SMTP id ee26-20020a056359059a00b00174c7d36718mr11714180rwb.12.1703885777294; Fri, 29 Dec 2023 13:36:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703885777; cv=none; d=google.com; s=arc-20160816; b=GJJMfWjOpfSikndhtdb8nmkT2vnC6Ns4DcX4mGx6U0T2w+vM4k9sDGh72k/3G0DD3C sFtCMBNZJvgnw5O1Al31MI0qpQCZXZuF0JzMpA5AG2YFSZxyuej0W9KgG8PltMNSoqVW gvziAQRE1+nywv0l+zFOLv2VytTGqf+dhQJGlR2G6GcKdMLbq7v6JQgZ13aWVMuVSEY4 dRrq9aJ+vImBq7kNz2k/KYS7D+erPfS6vw56ETI8LmNQ5LpOzGMkf4ZUIq56NRZfK9D7 PGWVIJDRucts1spQ219wB/dBVZW+YuacoW/yrOfoCD8++kFi6UzrR7h4EVZ6dcn8YzRQ tWKA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:sender :dkim-signature; bh=I0xY1vKhNpK1cvVQgGPsQNpQX7UxqJeJpQBJcfz25QU=; fh=Qji2lwJubfK85Ib29Rs2/J6omD+uuFddSUCLyuJYgzg=; b=wlMArn9Dq+1KmbV2TVK94GrsZWZnopfK9eEqeNDzUZ5ZGQj9ZvR48+9hCNLG+zqhEi x8WewH6/EPtjbDxKkyYV/qVLrbGNidcloa3kPL2P+TPrQEJEc98AEUmCvnYhkPZrocst WVD/oY46h2nd/Z5XqrtUndjNrWHspd6YXOtMOv5fq0fw9Oz3lThu0sr7S5Nj16GheNdn U2FG/y5vGjrkuz297QzSWNXIRc93P5Y0DhLBCvpank83WTj5AfN9B8H2HTGcc77UoBnr 4Sh1PVS62p8GMmDqiBwIbkf4MooHU4y3yFRHwENpz+Qs3cCB23R4FOygtdPWgf7OCe94 er3w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=T7C16GtX; spf=pass (google.com: domain of linux-wireless+bounces-1334-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-wireless+bounces-1334-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id z16-20020a05622a061000b00427e93677a1si7379343qta.141.2023.12.29.13.36.17 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 29 Dec 2023 13:36:17 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless+bounces-1334-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=T7C16GtX; spf=pass (google.com: domain of linux-wireless+bounces-1334-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-wireless+bounces-1334-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 077E31C219CC for ; Fri, 29 Dec 2023 21:36:17 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 38C8214294; Fri, 29 Dec 2023 21:36:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="T7C16GtX" X-Original-To: linux-wireless@vger.kernel.org Received: from mail-oo1-f50.google.com (mail-oo1-f50.google.com [209.85.161.50]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 55A7214292 for ; Fri, 29 Dec 2023 21:36:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=lwfinger.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-oo1-f50.google.com with SMTP id 006d021491bc7-5945fef58caso2945300eaf.2 for ; Fri, 29 Dec 2023 13:36:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1703885771; x=1704490571; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :sender:from:to:cc:subject:date:message-id:reply-to; bh=I0xY1vKhNpK1cvVQgGPsQNpQX7UxqJeJpQBJcfz25QU=; b=T7C16GtXMMD/ACbuQutkbb6pwfa6uUZX81l+mQqrgFQSTK16zNTpBon6Ubfhb3T8Ay 59Vny/qXvuMzZnayF1n1w4SE53D3quMEsCtWrGWvXdEWbSo8KlkRsewl29DCXQ/MHjyr TWWdRHK3eJaNuPLMcBYjDe81JIhHLHQhq32zLmT7B1Ezu5fU1jqgV6Uqa5QMM5udLSgq nWwLD78bvic9NnOomIEKtVYLtOAsM4V1SqnO2+vuPtte8DgbpNDiiObs4IwBqwgb11G8 W3DhJwAhEdYzQljLWCvOEm4giIPoRMfV+OfeUK+2riHq+Siqp+FwA5jY4ijNi/sJs2yZ ySxQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1703885771; x=1704490571; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :sender:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=I0xY1vKhNpK1cvVQgGPsQNpQX7UxqJeJpQBJcfz25QU=; b=fuMlIqeCBaL7oZKs6jcUQQLvysQZhfYrcZ5wUEo1dg7D0XHOC/KMAKf6d1j/zK6I6s bgX89aYkBtf8CxiqAsFvTZcn1J48oS4JNF56xjiyZjOD1kVy9V32DNxjKQJDivVWM+LW ONfxtJj1x7p4yxLQorAfORpERttQPfZ/LTq8m8Kt8Mvj64B0XRR1Z8MH8Now2qr7b6rn e9CfH7JC6XW7xJU+yt4hZDpc3CgJbnPgv6wB442H9Wh5JP6ZClrK013W0CvG2p8+SwOt lwmWWMVaZmG4u88F3GQkEmdCOOeHIW7nD4/eE0hDLo7sxk14PdJ6MIFiukgOAjsxExCW gZug== X-Gm-Message-State: AOJu0YwJjXj0FZ/Cw96elTD/gWIaTCBOkjKk1foplRU8WehuciKTgYUJ RAdqr4IGJlEIEAJgKQJj/BY= X-Received: by 2002:a05:6870:a1a3:b0:203:afa6:ad29 with SMTP id a35-20020a056870a1a300b00203afa6ad29mr10292295oaf.23.1703885771189; Fri, 29 Dec 2023 13:36:11 -0800 (PST) Received: from [192.168.0.162] ([216.130.59.33]) by smtp.gmail.com with ESMTPSA id ms25-20020a0568706b9900b0020463640518sm3003214oab.14.2023.12.29.13.36.09 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 29 Dec 2023 13:36:10 -0800 (PST) Sender: Larry Finger Message-ID: Date: Fri, 29 Dec 2023 15:36:07 -0600 Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] wifi: rtlwifi: rtl_usb: Use sync register writes Content-Language: en-US To: Bitterblue Smith , "linux-wireless@vger.kernel.org" Cc: Ping-Ke Shih References: From: Larry Finger In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 12/29/23 14:51, Bitterblue Smith wrote: > Currently rtl_usb performs register writes using the async > usb_submit_urb() function. This appears to work fine for the RTL8192CU, > but the RTL8192DU (soon to be supported by rtlwifi) has a problem: > it transmits everything at the 1M rate in the 2.4 GHz band. (The 5 GHZ > band is still untested.) > > With this patch, rtl_usb performs the register writes using the > synchronous usb_control_msg() function, and the RTL8192DU works > normally. The RTL8192CU still works. > > The vendor drivers use the async writes in only one function, > rtl8192du_trigger_gpio_0 / rtl8192cu_trigger_gpio_0, which probably > doesn't even run in real life. They use sync writes everywhere else. > > Signed-off-by: Bitterblue Smith > --- > > Larry, do you remember why, back in 2011, you chose to implement the > async writes? Bitterblue, That was code provided by Realtek from their USB group. I think they were in China, not Taiwan. At least the PCI and USB groups were in different countries. They provided the code, and I just cleaned it up. tested it, and submitted it. If the sync function works for the cu and du chips, go for it. Larry