Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp3020495rwb; Mon, 15 Aug 2022 16:17:37 -0700 (PDT) X-Google-Smtp-Source: AA6agR52dfc092ASpcdVKupDMfigoikJkdmaUr9DJTC6Jk1zw84J1SkGObOPc3kJuPxQV3+JRXxz X-Received: by 2002:a17:903:248:b0:172:7520:db04 with SMTP id j8-20020a170903024800b001727520db04mr4039939plh.99.1660605457459; Mon, 15 Aug 2022 16:17:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660605457; cv=none; d=google.com; s=arc-20160816; b=HzCwdTbs5JA9z8ZasmADKHRjzMV3bSZVtzFLtw6gDCg7xuANdnB/ceRL1VFn2GER0Q T7BNYezqFm46JNDI7SNx2eETA2EPjYQKxQAcIwN+JPDWaU88OD1X1zt8ZZ4D8Y/NhBCf uwUHX1ho1Nse4E5nSkPwC5j2jRFe7aip1zDfo9ufa1adMCDGZDn3CzdqHjeeE82vpAQB k6E78wn+GhT9827MW8EG3e3Z8UXF8AyXfiI3i18QSzt1TgwItnghw+H7npf9mUj5N8zp 1oMW48lwrS+dWV5w2xq3mFk4UBlZkAXgrlSn9sQ2WhJ2CUjTjB3to0WEukvN1CZptO65 3TXA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=0S90upWihh28Iveut0bvwAQ+4eY77zbeP0n+DVmuyvY=; b=J3lZhFcR0uXOX6jj4x6gCgq/XaRlVGVn7xlLWjsxnLdyTfEFAp3wC7Ygsx5P8tBRtC Ojv38HoKGFGfdgSujYJfafcVEpGWgdGQXMtXcV/qXPCk2lj/MpLEI9djGfMqKidyBHWA xtIGZtA55R81GcSW86artY21XW4fPHfkHmqRK8BktAG3cj+DZHJ24kaLDxdlTjPcfmWp kjME2noC1F+6roNVlKm1pj1FbRjzW9ArXQE6jsdk6cvzbLm0DRrpn7x+ezE7RPGCm0QF 6sJLLwcBtA/IS5WZTu3iRAMoGWTORGuqW+PyhEjN6g9iXSRa3K+b6EiKLRy+7VEg3YU7 LIsQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=kcXZZRIY; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id v20-20020a170902f0d400b0016c0474d5cesi10368436pla.532.2022.08.15.16.17.24; Mon, 15 Aug 2022 16:17:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=kcXZZRIY; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346726AbiHOUxu (ORCPT + 99 others); Mon, 15 Aug 2022 16:53:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49966 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1347339AbiHOUvx (ORCPT ); Mon, 15 Aug 2022 16:51:53 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 20FFC65B5; Mon, 15 Aug 2022 12:10:25 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 4C6A060EEE; Mon, 15 Aug 2022 19:10:24 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 50B28C433D6; Mon, 15 Aug 2022 19:10:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1660590623; bh=SRi8kUHq7tGKlhz6xYUk1plavmbnQCBV5VrKeiUxa6k=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=kcXZZRIY3PK5/4zZUZLKdWa1U/ZLlKN8i2+ZjKW5wrcLwLJjZFVRGPzgKzYjGwYDa kdZMA3i3mnMHRwSbO/ZSS+Kd8vKP1oUQz38WOBtFE5M+9bzRrdoAV3JvC1aXJGF0L4 sD7F0X6//uzVADppk5jT89XDtYyR1e0n/yEKwTbY= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Manikanta Pubbisetty , Kalle Valo , Sasha Levin Subject: [PATCH 5.18 0318/1095] ath11k: Fix incorrect debug_mask mappings Date: Mon, 15 Aug 2022 19:55:17 +0200 Message-Id: <20220815180442.941259834@linuxfoundation.org> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220815180429.240518113@linuxfoundation.org> References: <20220815180429.240518113@linuxfoundation.org> User-Agent: quilt/0.67 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Manikanta Pubbisetty [ Upstream commit 9331f7d3c54a263bede5055e106e40b28d0bd937 ] Currently a couple of debug_mask entries are mapped to the same value, this could enable unintended driver logging. If enabling DP_TX logs was the intention, then this could also enable PCI logs flooding the dmesg buffer or vice versa. Fix this by correctly assigning the debug masks. Found during code review. Tested-on: WCN6750 hw1.0 AHB WLAN.MSL.1.0.1-00887-QCAMSLSWPLZ-1 Fixes: aa2092a9bab3f ("ath11k: add raw mode and software crypto support") Signed-off-by: Manikanta Pubbisetty Signed-off-by: Kalle Valo Link: https://lore.kernel.org/r/20220602115621.15339-1-quic_mpubbise@quicinc.com Signed-off-by: Sasha Levin --- drivers/net/wireless/ath/ath11k/debug.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/wireless/ath/ath11k/debug.h b/drivers/net/wireless/ath/ath11k/debug.h index fbbd5fe02aa8..91545640c47b 100644 --- a/drivers/net/wireless/ath/ath11k/debug.h +++ b/drivers/net/wireless/ath/ath11k/debug.h @@ -23,8 +23,8 @@ enum ath11k_debug_mask { ATH11K_DBG_TESTMODE = 0x00000400, ATH11k_DBG_HAL = 0x00000800, ATH11K_DBG_PCI = 0x00001000, - ATH11K_DBG_DP_TX = 0x00001000, - ATH11K_DBG_DP_RX = 0x00002000, + ATH11K_DBG_DP_TX = 0x00002000, + ATH11K_DBG_DP_RX = 0x00004000, ATH11K_DBG_ANY = 0xffffffff, }; -- 2.35.1