Received: by 2002:a05:7208:9594:b0:7e:5202:c8b4 with SMTP id gs20csp2546168rbb; Wed, 28 Feb 2024 05:27:28 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUfPYbii8xpRcWmfzbaEoKZqR4pvnVArfLOZsj9JgUozVzvTzO6fWu+GnQaWO88WWfHeahK14uCtOC7LupSNNWzHa46jxmyY2lF+wqS2g== X-Google-Smtp-Source: AGHT+IHcuZEWOBFrR9RHQt+hIrmNlm4GCmIJAnAJ7PyK9XXRKGmwHt2bxHpBvU2wG1hkZwDh/f6X X-Received: by 2002:a05:6830:200a:b0:6e4:448d:42e3 with SMTP id e10-20020a056830200a00b006e4448d42e3mr12109536otp.3.1709126847864; Wed, 28 Feb 2024 05:27:27 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709126847; cv=pass; d=google.com; s=arc-20160816; b=BiQZKERSsUmtHo3jDZpvqcg9+ysEwVBurhDZy0wB60fmbP32I1C1ESFaLh5gN8sNUZ W2PNlq3QpP5ZHLEGhDdQ/tNv9CclOYAiAxbs3mpJScmPeiQz8zXTnimCZNOqUEuke400 2qg24WCx3JX7MpVHtR/lsaadkaktVURxF7soDdTxqQ3txIkt7HpPktHURe08Lsy/rPqF j+cj32yc0mgu+5FD7odGXeZOfgY8a4EV/erB/TaIq1NOswkJ9D2kplgjxTQf/ESxRnq1 kO/mBm6B2R8YGCgz4GkXlp1A09/XaF+qaFciGNwvWZ41+hcTkyVW7Kj/2QI8ad3DQ8EQ 58JQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:references:cc:to:from :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=b9XPJO7rlQBlp2t51YDB1EGQoKfjBIBca4L4WINiZhQ=; fh=XEyJQ2RXTReRmwhCknlzpwyHaoi1ntx1l3mdCet0KUs=; b=Kb71KMaVlcVdYtLHeDBnnE1E8745d5U0qLibay8LSkY5OFEyvXinE4pP9ct2znYzda vIuT+KtjonYKwdPsm8U+bfi1w1ianlrTwIgUZW8QkrDUNUQUfWRrMz4ObSmwsOmgrZM6 zhCIPZ2Y2Q4B4JKE3DYoMVVb1gS/VFcVhl9nJYsnp1vYm/n7Zfz6i4GaZNiy1kN2G7Sq zxLVDHcnewZA9WorvStmM+08guZdxHBaNhnX0J9oJTasukxx326gszWNfYotfbp1KOxN cuXmWfLVIE79bkglu1Kd9GieI1wugxPUK5ikO/r23jFPDFlm7oWuw6vgn2nHaEOhal6u Vbug==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@freebox-fr.20230601.gappssmtp.com header.s=20230601 header.b=Ee3iHvMY; arc=pass (i=1 spf=pass spfdomain=freebox.fr dkim=pass dkdomain=freebox-fr.20230601.gappssmtp.com); spf=pass (google.com: domain of linux-wireless+bounces-4192-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-wireless+bounces-4192-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id y14-20020a634b0e000000b005e4901151ddsi1685748pga.92.2024.02.28.05.27.27 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 28 Feb 2024 05:27:27 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless+bounces-4192-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@freebox-fr.20230601.gappssmtp.com header.s=20230601 header.b=Ee3iHvMY; arc=pass (i=1 spf=pass spfdomain=freebox.fr dkim=pass dkdomain=freebox-fr.20230601.gappssmtp.com); spf=pass (google.com: domain of linux-wireless+bounces-4192-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-wireless+bounces-4192-linux.lists.archive=gmail.com@vger.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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 8CDEC28A821 for ; Wed, 28 Feb 2024 13:27:27 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5555B14D456; Wed, 28 Feb 2024 13:27:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=freebox-fr.20230601.gappssmtp.com header.i=@freebox-fr.20230601.gappssmtp.com header.b="Ee3iHvMY" X-Original-To: linux-wireless@vger.kernel.org Received: from mail-ej1-f47.google.com (mail-ej1-f47.google.com [209.85.218.47]) (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 4C18C14AD2D for ; Wed, 28 Feb 2024 13:27:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.47 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709126839; cv=none; b=kO10X4BXaKjSHLGJN/HeKekcet6178BcNGTM3pmKV8TEJQtHQwtzyqdWcW7ohmaPqTei7aoKIyLlCfrqtC3rzGq/tEu0Y/T71tPB2cHoChlsf4NhnMomdqy0eHbe8rBtfONs+RsEJTFSq+GirXiLBiEWFMtbjcU+PJlBqScDSQw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709126839; c=relaxed/simple; bh=Icdw8WPMFTifsyWlLBRow7hTpkm0GUlEzo8xGNbISYc=; h=Message-ID:Date:MIME-Version:Subject:From:To:Cc:References: In-Reply-To:Content-Type; b=lvGkL732NJNGN5oG61/JBfDvSvVB0qDJJU+r5odq3buc9ugoWBlP8swIEhUuYXmDz8sGWLiYnDCObAG8kZx3AfdqJRG3UrljdQ0RbiZtBt2DF100914RMLm7+l06Y9xQSwzJe1u+jIX+gf2Si9j/3VEVZZFD5MJ+mtqgZ2jazyw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=freebox.fr; spf=pass smtp.mailfrom=freebox.fr; dkim=pass (2048-bit key) header.d=freebox-fr.20230601.gappssmtp.com header.i=@freebox-fr.20230601.gappssmtp.com header.b=Ee3iHvMY; arc=none smtp.client-ip=209.85.218.47 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=freebox.fr Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=freebox.fr Received: by mail-ej1-f47.google.com with SMTP id a640c23a62f3a-a3ed9cae56fso162427666b.1 for ; Wed, 28 Feb 2024 05:27:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebox-fr.20230601.gappssmtp.com; s=20230601; t=1709126836; x=1709731636; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:references:cc:to:from :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=b9XPJO7rlQBlp2t51YDB1EGQoKfjBIBca4L4WINiZhQ=; b=Ee3iHvMYQqxeiL1CgqxGYX8DrVvvCcQ5NIDwvstSA1NsWu6R3qykhpfwZYfb1GXYPp ZwFJ9XQ5eYV0ZVGGOGIiS71QZcxDZhcD+gyAXGfjhm34nCV/NNfljcjPN2wyguSiAuXH Rt/UXbZJDR6XPBM1b0xbnURiOCMFa9geJLqeXR0Gv0PhFvhsxerTu8iVWagVTggp1NG+ BjyvRsT5V7OHbJrGhQT/GbbiEl92egjvJi/TAu1Bj5VgFr5NH1FXyupvdYbjT6sH/yFI 42GpLV4IUgKNElWnn1IP+SQ6NrvDerRXX/vVKfbbPuksrKdOYqEgtv2OtStazX7jopFI QRjQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709126836; x=1709731636; h=content-transfer-encoding:in-reply-to:references:cc:to:from :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=b9XPJO7rlQBlp2t51YDB1EGQoKfjBIBca4L4WINiZhQ=; b=BLYbzlP6YMo+aC557vlj4FMEbvaDf1Q0jya0RWNAOzzaPyv/qqvaWaBnmuR5DRNRP7 xwtO2U75RbybN2uRTzlJ4J5uthpwzMiT8H+n0pjM5Ri/t5MyWToj6eiVjE9nLP7o1gE1 qntlCiQZtc843gc93HlzxkEyUeJZspxS6nnn3dWm29xA0IgYwz8YGQWENA6iI9BDBg2K ztLSMgWGUz4cYW5pxQilrOYyKA+ns1DEVw0189P1JlPT6So3we9cwgyhvhFjVufCHHkX I/fXHJxrFlJWCMIOrMYNxn/iAUamaP59pbiJxqM/uFvEr0uDbmgEkgE5h3gqb2dt9/UQ UUeA== X-Gm-Message-State: AOJu0Ywoq1I4apa7RlecempY9odlSMG3hrOC3YFELRJGMtiWaIG2VyqT DdY7NV33Jtl6dySQeo4c8grU1wcFAkWo1vgnD03udecVXkh8VRsIG3ZY3zY/Pyo= X-Received: by 2002:a17:906:7712:b0:a3e:53d9:c7d5 with SMTP id q18-20020a170906771200b00a3e53d9c7d5mr2133878ejm.36.1709126835730; Wed, 28 Feb 2024 05:27:15 -0800 (PST) Received: from ?IPV6:2a02:8428:2a4:1a01:6dfa:263f:dd7e:9456? ([2a02:8428:2a4:1a01:6dfa:263f:dd7e:9456]) by smtp.gmail.com with ESMTPSA id s6-20020a1709060c0600b00a42e4b5ab00sm1839417ejf.41.2024.02.28.05.27.15 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 28 Feb 2024 05:27:15 -0800 (PST) Message-ID: Date: Wed, 28 Feb 2024 14:25:45 +0100 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: [PATCH 2/2] wifi: ath10k: work around missing MSA_READY indicator Content-Language: en-US From: Marc Gonzalez To: Kalle Valo , Jeff Johnson , ath10k Cc: wireless , DT , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Pierre-Hugues Husson References: <14daa98e-7fd3-4ebb-87bb-5d2c1fba679f@freebox.fr> In-Reply-To: <14daa98e-7fd3-4ebb-87bb-5d2c1fba679f@freebox.fr> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit From: Pierre-Hugues Husson On our APQ8998 device, driver never receives MSA_READY indicator. We only seem to receive FW_READY and PIN_CONNECT indicators. Not waiting for the MSA_READY indicator seems to fix the WiFi. Signed-off-by: Pierre-Hugues Husson Signed-off-by: Marc Gonzalez --- drivers/net/wireless/ath/ath10k/qmi.c | 5 +++++ drivers/net/wireless/ath/ath10k/qmi.h | 1 + 2 files changed, 6 insertions(+) diff --git a/drivers/net/wireless/ath/ath10k/qmi.c b/drivers/net/wireless/ath/ath10k/qmi.c index 38e939f572a9e..c7724a3588549 100644 --- a/drivers/net/wireless/ath/ath10k/qmi.c +++ b/drivers/net/wireless/ath/ath10k/qmi.c @@ -1040,6 +1040,8 @@ static void ath10k_qmi_driver_event_work(struct work_struct *work) switch (event->type) { case ATH10K_QMI_EVENT_SERVER_ARRIVE: ath10k_qmi_event_server_arrive(qmi); + if (qmi->skip_msa_ready) + ath10k_qmi_event_msa_ready(qmi); break; case ATH10K_QMI_EVENT_SERVER_EXIT: ath10k_qmi_event_server_exit(qmi); @@ -1077,6 +1079,9 @@ int ath10k_qmi_init(struct ath10k *ar, u32 msa_size) if (of_property_read_bool(dev->of_node, "qcom,msa-fixed-perm")) qmi->msa_fixed_perm = true; + if (of_property_read_bool(dev->of_node, "qcom,no-msa-ready-indicator")) + qmi->skip_msa_ready = true; + ret = qmi_handle_init(&qmi->qmi_hdl, WLFW_BDF_DOWNLOAD_REQ_MSG_V01_MAX_MSG_LEN, &ath10k_qmi_ops, qmi_msg_handler); diff --git a/drivers/net/wireless/ath/ath10k/qmi.h b/drivers/net/wireless/ath/ath10k/qmi.h index 89464239fe96a..3622714a405bb 100644 --- a/drivers/net/wireless/ath/ath10k/qmi.h +++ b/drivers/net/wireless/ath/ath10k/qmi.h @@ -107,6 +107,7 @@ struct ath10k_qmi { char fw_build_timestamp[MAX_TIMESTAMP_LEN + 1]; struct ath10k_qmi_cal_data cal_data[MAX_NUM_CAL_V01]; bool msa_fixed_perm; + bool skip_msa_ready; enum ath10k_qmi_state state; }; -- 2.34.1