From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wr1-f51.google.com (mail-wr1-f51.google.com [209.85.221.51]) (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 84E26377ECF for ; Sat, 5 Sep 2026 07:46:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.51 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1788594416; cv=none; b=Y1+QkLtsa4npKWcBcRYYDb3j0UnzhvK9Jv6a7fZT1A/zqdcVX7+Bc4LnOW2NeEJRKaaS9SBuaSxWApS9PtNaJXeA0Bda3cdXa/dDBwujPr1JTWyqcr2xr9JC3jChl0qpjFgts63AagDaFUcanPv5MSGhyAgJG7vlCwOVLwDegp8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1788594416; c=relaxed/simple; bh=xff8GUk+CZ0GDybRtzZe3eSDdPuy4kMPI4af0+AeHfQ=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=fLkcLV6NEPlUIdu366rO4v24ZMFizegp3JX6VDu5VxxWyWKzy5j1ubfj4v/4Zjmb4Q9wMd5+Afr4exELe2FPQz2iv0tBBVeW682uTRZB6BB317+swc4+MJpoxxm6Pey4VM8mgZkFJi2DpPWuBfnR/Ocnp44qjceDVOo810tqwoM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=GmImc+Xc; arc=none smtp.client-ip=209.85.221.51 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="GmImc+Xc" Received: by mail-wr1-f51.google.com with SMTP id ffacd0b85a97d-47f96c5b722so1174815f8f.0 for ; Sat, 05 Sep 2026 00:46:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1788594414; x=1789199214; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:sender:from:to:cc:subject:date :message-id:reply-to:content-type; bh=xff8GUk+CZ0GDybRtzZe3eSDdPuy4kMPI4af0+AeHfQ=; b=GmImc+XcF7BGv6Pcjjyl9VJUW7eWCbNNY+sd9+aOCT/4bLdCoK80DhAWdG4H+h9EQS u+xpT6XUeudBYmHrti/lOWfTT77itipkUTYPZXUuPIuh9T3IukOmodRYljb+y9LI/VC9 xYhlw7A3J+MsuBwWSlr/NI2acrCjGQVw2eiHruIxem91JKkriNe7PRoJOvQyPRVDsYDH 8msaldOmvLMqqFVVtUSm5CGTYbnJSthgAn/Cvki2d3Fx6bxGNz7Y8GQJTEey/fTVMqR0 WEOvzdhJwoE8BEnZgmp72pbjsbNMffl7f+8O87HYEkuPxBuRmb27CHUb7vajtzyznJ2o qNsg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1788594414; x=1789199214; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:sender:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=xff8GUk+CZ0GDybRtzZe3eSDdPuy4kMPI4af0+AeHfQ=; b=goTiw+2x0PR98GvVHPoqBdenkla1k+0ZiQP9thA8evBZphRjiCJXCZwOsnZwjiR4PZ kA+Fjo0mRUZH7GKqdwE3iLqBMhyD75O58eK1gcgotbx7OyWP84FhxDNDcRbI8Y2wNx09 iffu+QQvfngmB6D2lUoe824RFafJEoabBYXZS2ohg2+MTOvm+8QkkDuk0lpExjwDPnAM JQgdQoIqgdug63GKbeKy9Zr1eRNz9kCXgmrUgw4vOt8gTURNPenWDfnUFbsrJDYzI0zp NEK+AvE77Ny/X5ZYu03egGMn/GylgnkEjGGlijU4Cayb3TqgZ+GGvX2uBDGlBiGDsVpT ohfw== X-Forwarded-Encrypted: i=1; AKwUvBwSY60E26mBWfpoZv8AzfDe0OTkP1VotzjpiO30nf6WQzsUbsQNdG9QHysqoBXYr19zBCgaLGcxIERMhpg=@vger.kernel.org X-Gm-Message-State: AFuF++kRET95UhyaDUSfvZ+etuAeLOunk6HSiQn4zmL2YWidu+BQlAiD 6f0lt9uh6UAUTASOW8MIsABOm1yAa2Bw4gxPsOlm3182Ir2mcF7FwIE= X-Gm-Gg: AYBFou0ayX71VLajV+v4Ti5VZxpsS4m/Errus//u70SeRPQ/vY1q06iZJP2skZCMWYU swoHpKBsnzL8xwMpDYSBzLk5HNFPjscRcKmzMFKO+v4MnZLz9qyp4H9eROWk1o3f6oU9njthaJ6 L8cZyfqgdjkqoPqm286Moh81f+u8K9Wgu+Fkrqhs7cMsmKqTrnc8T2C3vV+CVAYPlMtPKqitVeh rUwbJ75sPZpEMU0p6kUkuSyOOeZmb26BKlGdFSyTcYyrT7QPi64VOwVSNh0qlq+FmEWQ9nHy+hL 5oAhYMJnoAeiSmjSDYTxc9I7rMR1H/BjoUvvcfJ2QmPZKKWDvEiW3Y0hTG9aeWvY9uoz1QitAHc s6Sx6M2VPKrN1Y22TUhGRpb7Wl7lR3fIAstS6xpyL071NSQoY9uJ3Zx8xaj/jtE40ifO/6IDBg2 M8QHz754JgpB0AyKWRCXB27Ra8mswU+0yvWq+7WvNSYY6srLkosckIphhUSauF34tJ984FHzNm3 SrM9Eanl+jwWF0TrdMaxo0loESodr+U7MEjeGt5IxSuyyqqTEuQIc94QAoZIsklZFG9c2HEEXDH PZO0 X-Received: by 2002:a05:6000:491d:b0:484:3785:210e with SMTP id ffacd0b85a97d-485872d4f0fmr12136802f8f.25.1788594413532; Sat, 05 Sep 2026 00:46:53 -0700 (PDT) Received: from nn ([2001:1ab8:1003:0:5454:f357:ba89:4e22]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-4858bcefd59sm8629206f8f.19.2026.09.05.00.46.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 05 Sep 2026 00:46:53 -0700 (PDT) Sender: N B From: =?UTF-8?q?Nerijus=20Bend=C5=BEi=C5=ABnas?= To: =?UTF-8?q?Toke=20H=C3=B8iland-J=C3=B8rgensen?= , linux-wireless@vger.kernel.org Cc: Kalle Valo , Oleksij Rempel , linux-kernel@vger.kernel.org, stable@vger.kernel.org Subject: Re: [PATCH v2] wifi: ath9k_htc: fix the byte count of a full RMW buffer flush Date: Sat, 5 Sep 2026 10:46:49 +0300 Message-ID: <20260905074649.341820-1-nerijus.bendziunas@gmail.com> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20260904180849.775404-1-nerijus.bendziunas@gmail.com> References: <20260904180849.775404-1-nerijus.bendziunas@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Please do not apply this patch, and do not send it to stable. The message is wrong: ar9271_hw_pa_cal() does fill the buffer, with exactly 15 entries, on every AR9271 reset. With the size fixed the command is 8 (HTC) + 4 (WMI) + 180 = 192 bytes, three full 64-byte USB packets. The firmware ends a command only on a short packet, so this one never ends. The next command is glued to it and the device is dead until power-cycled. An AR9271 hangs this way on the first interface open. A v3 follows in a new thread: the size fix plus a cap of 14 entries, so the buffer can never produce a 192-byte command. Nerijus