Received: by 2002:ab2:6c55:0:b0:1fd:c486:4f03 with SMTP id v21csp397618lqp; Wed, 12 Jun 2024 05:14:13 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWVf3/Hrgc7yMwDq6YIFO87uE5TYi/4SKRDJbxJdrHdnmTTzvoqO7T9XYnHDitilnobNx9xkH1oKKmgcLf/spDmUfOj58MFU07PmRlchw== X-Google-Smtp-Source: AGHT+IH/JXIVyC6XZjh+P2hMGvklAbzgYqj8uDX9pKNAfaf1Yf0ohy+ONly4P5HGUTiyAnsyBV+y X-Received: by 2002:a50:d602:0:b0:57c:7303:a9ff with SMTP id 4fb4d7f45d1cf-57ca974962bmr1110348a12.6.1718194453212; Wed, 12 Jun 2024 05:14:13 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718194452; cv=pass; d=google.com; s=arc-20160816; b=GHSkrSQg7zxtFJWskxZYk+IBP1FPNlKmAuZ3GG10J0f4Xp5LJywUaaEF486t3nsL+N 7FMnjS1D+Y3AgeT82BTrziMq7rmzK09A/IGbpsIDLPT4Fp3CVZivOJDIvVNL8B0FmAsL vKSWiAJ6AggqqH+Oy3sFUcY+99tYHIuaLCPpd/47FL0bUBPhpwgvS9xIsWIemUWmtCj5 e32YQnEDbBYbZKcCsojIxPZwhqKSroalDRpQnEFczVASDEGXQ4AO8ni+TX13XY35hTg+ /eGawaQ88PrOU0wfy6lyyKAd8ucbQ6/C+11pDs7t3yi2qZsnOFzbpZAuDE1uNAlFXXnO pfjw== ARC-Message-Signature: i=2; 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:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:dkim-signature :dkim-signature:message-id; bh=BGk/1iMmRrfE1DIf5sik0hU4QcQc0eVeNmC9n/fpms0=; fh=HEBJNyg24EtCDPO4QJJdBWC8QooKtkWv1Bi2knrHR1A=; b=eP5a1LZg9LidNAtHWu2GM6F7H6QejfsGTkwON6C0ZuoZmZyBajyOFHE6so5THYvdv0 txVx/4Tdgw38zlw+ZuFlATG6vIJzlkPGijMIFc4uL0Mgg9q4r7Zcj/6Y2zYjGtMBO8nM n7xuB/YW6Ua9DftlSHjyG9uwt1Jc8mAxkBTsbxYg6NIgki8HGV5cbhhBDRK0w6952XxJ STY11WCOuSyee8bjd1geFO1UQARIE6yNCP8xrqFO3/owfSFYEnCSlzmfJGZd+eA2irds G+Erh0A32aivkPr2Cb8kAG46lTk7mFGfMFBnnzwC5E0Sm4NeJvKqv1C1c2C5sBJsNfEv NTSg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b="TX/k7pYG"; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b=WElpAgrt; arc=pass (i=1 spf=pass spfdomain=linutronix.de dkim=pass dkdomain=linutronix.de dmarc=pass fromdomain=linutronix.de); spf=pass (google.com: domain of linux-wireless+bounces-8859-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-wireless+bounces-8859-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id 4fb4d7f45d1cf-57c9dea79a9si1436680a12.679.2024.06.12.05.14.12 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 12 Jun 2024 05:14:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless+bounces-8859-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b="TX/k7pYG"; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b=WElpAgrt; arc=pass (i=1 spf=pass spfdomain=linutronix.de dkim=pass dkdomain=linutronix.de dmarc=pass fromdomain=linutronix.de); spf=pass (google.com: domain of linux-wireless+bounces-8859-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-wireless+bounces-8859-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de 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 913121F212A4 for ; Wed, 12 Jun 2024 12:14:12 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6E16C16F0E4; Wed, 12 Jun 2024 12:14:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="TX/k7pYG"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="WElpAgrt" X-Original-To: linux-wireless@vger.kernel.org Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) (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 EA9C538F83 for ; Wed, 12 Jun 2024 12:14:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=193.142.43.55 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718194448; cv=none; b=mqY6ytTGrRQgXEic9rVVFE6G/cLN5nu8oDi3/ekasrcU3Gg0NmvIFEvk/WCbOBxXi58tBr1ClHxxCiIJPVNfUmLoGLORAkzGJzNJRcpuHKiOaiVSFnd0wWE7ARaQI6ymLpRTIISTnbfTfEDeC7ej5o2dUZkiDAZgEl/hUWFTM0U= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718194448; c=relaxed/simple; bh=qXZLIqICJNwmkl8ZW/gkmNOQvenhDGAMd5JRdma0hwU=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=PblL0MThI+xzoqcxfRzZ9TDgPOUOkByPBOIWSnWO81oNTXNr2XHmGHaAxBFyDtBdFQDgBLpYhjl3c2J4nIo/dbfqZelz6fp5jwskcU025vUdnWrqbRNOdJuMS97gfkr7yzo9stFOSErOw6Hoosw1FpHpk/GQAeFnFxA5PLgjXM0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de; spf=pass smtp.mailfrom=linutronix.de; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=TX/k7pYG; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=WElpAgrt; arc=none smtp.client-ip=193.142.43.55 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linutronix.de Message-ID: <0cbed427-e772-416d-ba40-32cbb59c8083@linutronix.de> DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1718194444; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=BGk/1iMmRrfE1DIf5sik0hU4QcQc0eVeNmC9n/fpms0=; b=TX/k7pYGno3XXfndXH7deEYnC8GCjb6ygs9QLIucuQMoDlRmZIAejURl5e7CUNso7M7t/D 6TWvKOWUphqBhg2qLPVGQSLgQxpnpKyUkN7cc3kUP4uZElAC90bitNZXAmRLLMpMY+uhKa 7Pd7jawdqo55gIUOIRadTbaeleBcFeSWOSElLxuq2ICFI+aogatdZwJ9IJmzFliu7c9SFk ldE48rtVqszDOJCMCJO4vWJtTtELz+CT5zF5pfYy0b4ZqBEYRA7gYm35C8qcXXNMad0Jmj yFV55ZPw8VFv7FPTUWTXPgrw2NJbGTOPz9r17eq/b1r3cb3XgmmAGsr5kJWa7Q== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1718194444; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=BGk/1iMmRrfE1DIf5sik0hU4QcQc0eVeNmC9n/fpms0=; b=WElpAgrtP/TSx1rZlz/Zwr2HyDMNPZoawkLB9yzgS/FWFhv/DlX1LPpXVPwFXnJJ42p0RR cwX1qaUYHgLzPyBg== Date: Wed, 12 Jun 2024 14:14:03 +0200 Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Subject: Re: ETIMEDOUT with rtl8xxxu To: Bitterblue Smith , Ping-Ke Shih Cc: linux-wireless@vger.kernel.org References: Content-Language: de-DE From: Martin Kaistra In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Am 11.06.24 um 22:15 schrieb Bitterblue Smith: > On 11/06/2024 18:54, Martin Kaistra wrote: >> Hi Ping-Ke, hi Bitterblue, >> >> I have a problem with the rtl8xxxu driver and 8188f, but only on some boards. More specifically, I can see that during the second channel switch (which happens when I do "iw dev wlan0 scan"),  the rtl8xxxu_read32(0e08) returns -110 (ETIMEDOUT) and after that no reads or writes work anymore until I unload and reload the driver. >> >> The strange thing now is, that even though it seems to be hardware dependent the vendor driver does not have this problem. >> >> I tried to change the probe and start functions, so that they behaved exactly as their vendor driver equivalents, but so far I don't see any improvement. >> >> I was hoping, that one of you maybe has an idea, what could be causing such an issue and how to avoid it. >> >> Martin > > Does it still die if you do a passive scan? no, the problem seems to appear after the first sent frame. So, if I don't send any frames, the channel switching works fine. > > I wonder what vendor driver you are using? Is it loading the > same v4.0 firmware as rtl8xxxu? using the firmware from the vendor driver or the firmware from rtl8xxxu made no difference. > > Why reloading rtl8xxxu makes it work again? A USB reset? > Or something in the disconnect function? > > To avoid the problem, obviously you have to make rtl8xxxu > even more like the vendor driver. :)