Received: by 2002:a05:7412:e794:b0:fa:551:50a7 with SMTP id o20csp2433313rdd; Fri, 12 Jan 2024 09:12:36 -0800 (PST) X-Google-Smtp-Source: AGHT+IGkPr/SfhNg2KcQQ9vbVv9SkQ5v4GOBTlWB1UYc0APeGn+XJZkooDyfER8lBnGstKY2TNUD X-Received: by 2002:a05:6214:2aac:b0:67f:3a72:ed2f with SMTP id js12-20020a0562142aac00b0067f3a72ed2fmr1307170qvb.30.1705079556062; Fri, 12 Jan 2024 09:12:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1705079556; cv=none; d=google.com; s=arc-20160816; b=Hs/wK3BtfAEfYvFiVfq4ZRXp/cGdAWXlZxtHSFJUTXwWT4giHWBMkyeyhCsNzjWLl1 0rHy5kWZBNjRMNFjxr50aB+Gvuaju9mQo8NASeB3eILEnUC89LN4OTIA+s9AOTwThH0C vsGHJHa3wT7OftLQUO8mjLcH6gVuzMNOlSl3i4T2QWcu217cO7kKgrsdLKhMjic76RYN R+aUCHk+d8Nb/0QnT+Bs/nazc9pvVFHTYgiuUnLC600ADRKiErmksC/0ejwMQ07mHddT DPryFJ99yR0Q2xWrs6obgSrbgl34vy16lfDVuik7KKolAMPoDY8SZZscRImYEJNbJ5q+ 7LXQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=date:message-id:user-agent:cc:to:references:in-reply-to:from :subject:content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:dkim-signature; bh=dYIbzi/M2XNw3qkRyHL1/NSr1oVT49ouxSqj/7xO0nc=; fh=KLYZroe+hx7PXWHWhHVHm3kyvVqb0KvAA/sfTDNY4Ss=; b=hx8FrQjMtughziHGrwlCS+0savBzgCiy6f60zIKnoYIu+cNiX9piY8D8uphXZNVbfy SSfbhfqJ1RVJRh+wZWRkTyaj6l3BLISjhgB6ASTxcwerrVgHhz5S6Rl+rmE5ywwAwJS7 C/WLQLF44yXUPrPgNI4tusGLGq1OYMkMaxQ9R7P/fBgUjSvJZmVbSSc9APwKA8oNC/AF hwjFOslUNRpFxlbrUnzoJRGckj9x+UDghuNoFvJcK/7s0SOj8sv033b5KQHUpyPweLli 0bacpMpMckrRxFgyQBWDllg2Tfe9CWMxqjoNwMR0sHB978CQYyrVtY9IqB3Qje2MryYO judw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Tg6XRXln; spf=pass (google.com: domain of linux-wireless+bounces-1832-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-wireless+bounces-1832-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id s30-20020a05622a1a9e00b00429d71a9ab2si109642qtc.778.2024.01.12.09.12.35 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 12 Jan 2024 09:12:36 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless+bounces-1832-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Tg6XRXln; spf=pass (google.com: domain of linux-wireless+bounces-1832-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-wireless+bounces-1832-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=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 9D6A81C22193 for ; Fri, 12 Jan 2024 17:12:35 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D7E5C17C89; Fri, 12 Jan 2024 17:12:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="Tg6XRXln" X-Original-To: linux-wireless@vger.kernel.org Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id BE4F717C80 for ; Fri, 12 Jan 2024 17:12:21 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 652F9C433C7; Fri, 12 Jan 2024 17:12:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1705079541; bh=fh+ambkwu/uF2MWlrKjGUZFOteEdu6Oml9kYEqmGpa8=; h=Subject:From:In-Reply-To:References:To:Cc:Date:From; b=Tg6XRXlnRLR25mmhDfb3MKXOyLOIA9lYaxYvRMqDl8l83S01G/nbyZY7IuJmvntiJ t8sDUpwzJ13FmLSPcpKDeBgFRRKvCkC9z+yFqf9kD0GumVZP11aXyWFyPxfxlnMtRZ 28dS7gp8qmXVV1hBe2W1qNHUcOmT9MODDgc++Fbn37vS+XUcqF/TPiUzzn4H8Kk9At ANCKsVrGBu/fBWvR71v6OQWeqeBDg/RVynL/efCtbtI680PbzZqwrSQ4bJjbkfsBjR wRGrwcIlxuGq/2SZMhXJmDDXqH+Ok9NIonLx2wh2vZrf8fj1igzgRX1lfRUF5jhy5V tBdMFKn2Fx4bg== Content-Type: text/plain; charset="utf-8" Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: Re: [PATCH v3] wifi: rtlwifi: rtl_usb: Use sync register writes From: Kalle Valo In-Reply-To: References: To: Bitterblue Smith Cc: "linux-wireless@vger.kernel.org" , Ping-Ke Shih , Larry Finger User-Agent: pwcli/0.1.1-git (https://github.com/kvalo/pwcli/) Python/3.11.2 Message-ID: <170507953842.1153005.9541258288523966124.kvalo@kernel.org> Date: Fri, 12 Jan 2024 17:12:20 +0000 (UTC) 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. > > Also, remove "sync" and "async" from the names of the members of > struct rtl_io to avoid confusion: > > write{8,16,32}_async -> write{8,16,32} > read{8,16,32}_sync -> read{8,16,32} > > Signed-off-by: Bitterblue Smith > Acked-by: Ping-Ke Shih Patch applied to wireless-next.git, thanks. 178cc55d5129 wifi: rtlwifi: rtl_usb: Use sync register writes -- https://patchwork.kernel.org/project/linux-wireless/patch/fb71bae6-8b19-4b6e-b4a6-0d260f2139e1@gmail.com/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches