Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp5076306rdb; Sat, 30 Dec 2023 05:12:31 -0800 (PST) X-Google-Smtp-Source: AGHT+IEwWPxTl1V/vvJcTNEDjfbLiR73/hduZQNsFlKFLXEAae2/GPfNx1byY5RcsrBuCmhjTo1J X-Received: by 2002:a05:600c:378a:b0:40d:3571:cc14 with SMTP id o10-20020a05600c378a00b0040d3571cc14mr4292119wmr.41.1703941951745; Sat, 30 Dec 2023 05:12:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703941951; cv=none; d=google.com; s=arc-20160816; b=ST6RMzr5tQ8DIUcHhqKw8nEsCgxP9KdGeZhhHFExE0W5B56Ua6RXLJdVX18Ep+sd9b XjIUHF5TshtLcRY6nqRNTLiJ7dRxcsxm40q13FOCYxPvOhktwPzLhUemKUY/nc5lxeN7 r+uf87SdyTbKvY92E69DxpGGBYlqjIxzCe6IxZoJxdLt9WhV2Iy/J8Pt0cikgTBMd5lJ /fkE1kLm8g82CNeHWRbDCh+nWa8RIw73r/7doJ9OyRPxgPunr7dNVd0I/Yomv8cd5f8K 124IVOVJoLZ/sqUENL/7MwU4QzEtHNnoyuXHcAQfmhRTiMHv0llgYN4zG5SzXmYZQ0C9 MkTw== 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:content-language :references:cc:to:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=gkZG2PFmUVhAXh/L5KxYka8HsNQpzi7jnZ2EAhsXux0=; fh=tyY+lHnySZSrihdpS3hyxgyM4ZnyVrMDxQWR/qMepLk=; b=vC/lhozjKmKhxBQHvjjMWtSRKlhYryghwOADlzEMfpAxOGvHIOV5/LeYGImlp4rwWY zZWEjg9YL8J+qtnHKVq7DIntsIWaUU5NU3ujFI9Wg4TZBbQ0EFJHJxl/jjvivFg7C7wn WbYDe72cn0VjPTRNsIpkDnxWyZBwmRDO3VLhNPNa0fLjZKCrRrlUzgbUBpng7JNYmc1T 5ETrGo50azh0PlRcAXA21ddZe1wYIZmCtrJCd25oQMVu2SwUBjleQdJx2luoDqNw60FJ 5/+fuft1iY9z6+obs0FQlI5MxcnlII8LL9LT5ddG1Msg0YS36co4sWk0d2bGXpOY2a3t Q/aQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=Vzi1Lu77; spf=pass (google.com: domain of linux-wireless+bounces-1343-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-wireless+bounces-1343-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id w17-20020a17090652d100b00a1b7f7c8118si8209696ejn.177.2023.12.30.05.12.31 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 30 Dec 2023 05:12:31 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless+bounces-1343-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=Vzi1Lu77; spf=pass (google.com: domain of linux-wireless+bounces-1343-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-wireless+bounces-1343-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com 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 am.mirrors.kernel.org (Postfix) with ESMTPS id 6AB131F2196C for ; Sat, 30 Dec 2023 13:12:31 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 334A58BEB; Sat, 30 Dec 2023 13:12:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="Vzi1Lu77" X-Original-To: linux-wireless@vger.kernel.org Received: from mail-wr1-f54.google.com (mail-wr1-f54.google.com [209.85.221.54]) (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 9EDE08BE3 for ; Sat, 30 Dec 2023 13:12:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-wr1-f54.google.com with SMTP id ffacd0b85a97d-3367a304091so7264445f8f.3 for ; Sat, 30 Dec 2023 05:12:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1703941943; x=1704546743; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=gkZG2PFmUVhAXh/L5KxYka8HsNQpzi7jnZ2EAhsXux0=; b=Vzi1Lu77RFj4AvxnYQP0xOZ71vkUBzRQgEIa4P8aFvwta8tpnh7YATIpsfm/Hpmo3n fWzFG/B+yvNmyNYml3MLIqY/oNXmmror49iJ93aPr0Jad76IIxUkIzF5fBd1MnVJ+SC/ tyyOneAY6QNTRJg3hskAVhwYxlJw/XJ10PlvkxtjTXBmideoGmOai7qwxYSmIIuKS+2c IGfgnj2xMiKAFSNVZmQJhxwfTZNFUXDuvUwOCFA6dAFJvF6AyGRSyRuanEMWVDMWp8ml +Gs6BpasvDEJ0DJmb3QKs8xhKguiP/VvO5s5/umBuXUpQvCmasfDUFjRqCac1XIqXK7z qrhQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1703941943; x=1704546743; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=gkZG2PFmUVhAXh/L5KxYka8HsNQpzi7jnZ2EAhsXux0=; b=SxmimCjKmIiSc1AiY97x9fwyY22BiCkur3f8g0YAiyBNec/5xNOYWIn5LAkkASWFR6 flV0UrVnZ4EwQP8TjuwnrMRfOI1hxzMrTgHdaosZXnPvcHH00aA/9ROmg8zaP2MnJxz7 SfJx6R7DHYg0NFUUWoyALhLuUsboXZuOBUXFtC3ZU3UAO9foXb2C6sDCEKQBQrjw5vMT nIILiWy3wESUuA7KuWI0hS6C1ZidEC2n7CxNowoYnwAPRRUabmIZt1zgqRzSUD6tSObD y0eccEl0Rx2PSYYw9XkVFJpc2p5i8Pm5hftiNbRE/fb5bb6NU3WvZQ0X3LP070TsJd9E pEgA== X-Gm-Message-State: AOJu0YxsWj/UN4VBcnhed44PzrJAmKpYxkZEOcKJ9l6F6Nmtax0GO8Ro 4wz8unVHwfdmgt3tEk/zNeOMi6Mm1UA= X-Received: by 2002:a5d:60cd:0:b0:332:e68b:416c with SMTP id x13-20020a5d60cd000000b00332e68b416cmr4961824wrt.26.1703941942603; Sat, 30 Dec 2023 05:12:22 -0800 (PST) Received: from [192.168.1.50] ([81.196.40.51]) by smtp.gmail.com with ESMTPSA id t12-20020adfe10c000000b00336f43fa654sm8534385wrz.22.2023.12.30.05.12.21 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 30 Dec 2023 05:12:22 -0800 (PST) Message-ID: <1408a85d-48c4-4427-a5e0-a81c3cf10385@gmail.com> Date: Sat, 30 Dec 2023 15:12:20 +0200 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 To: Larry Finger , "linux-wireless@vger.kernel.org" Cc: Ping-Ke Shih References: Content-Language: en-US From: Bitterblue Smith In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 29/12/2023 23:36, Larry Finger wrote: > 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 > Ahh, okay. I guess we'll never know why they did that.