Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp4024308pxk; Tue, 29 Sep 2020 12:09:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxMOeXPSVAhM7JnPWCUj5IIxVjyJvE+vTzzL/rgT8YsG+CxF5AY3ExdhP1gZ9C+8RH7v6AX X-Received: by 2002:a17:906:1157:: with SMTP id i23mr5602891eja.440.1601406559729; Tue, 29 Sep 2020 12:09:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601406559; cv=none; d=google.com; s=arc-20160816; b=Py3BbYIUmY5+tDXut4ezMN4p+9j7CsueTFSPVaCzzt58jYC0R2tKmen9TM0mBBj9us oMatX5JBF7cWJO2CS8C87g46Rpn1dbRFoqO8PU3bNcxMGrz0uSZn4/8U08zrARgpyUy6 BfoSHYW0Z8JRGhDyk7xo8w8CB6CtUUi8jnPCF4ZJCbPUa5MIk/zEjcrrVRE0beMdFbKc rS66eQdGpGDcrEytL5HQdGNp9Lwizsl7K5duN5uBmLmFCkixfpo8uaCjLJCGzAz1PEny VEWYdook5cx4rAAeia7GgXEp6lhU0YwJ4iof470V4C+xb7YVrum+NF0lZV3Am7xQrldL TQ4w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=7M5WWuCCkp0VZzy+IL0R9xA2aVw6kleFif9899pGFyQ=; b=WL79Kfe8Vpj/mZA7bBFZwcHxRWXu/dCEU2yJCZFfTpSbKKCY31p/zx14m32h93FIER JxZNk6aMW2fWQr0hVrqSNGhZZqh3T6nfWGXmSc6ZDCG5kF7ay8VSASt1QZ4zjYOGj1QU +ReysFLqKugKS3YUbxUEEW7ZUpM1kkxGORAu9HzyEbhEOnjmblm4GMfa1j5PTv63XYA4 jP/v4WTpKlXRM0zLM265JNJ5iMH80ZId56D7tkuTxyNy3KqjNtmyWxn/JkPnFMVRH283 NG0lCWvO7yLNxX7CaS1TiGGVeiapkUlG1intOwAgk/l6bReFIqGMnbENv7J4+WLcIGdH KUmg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id pv7si2870469ejb.753.2020.09.29.12.08.47; Tue, 29 Sep 2020 12:09:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728576AbgI2TIX (ORCPT + 99 others); Tue, 29 Sep 2020 15:08:23 -0400 Received: from mail-oi1-f196.google.com ([209.85.167.196]:40085 "EHLO mail-oi1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728284AbgI2TIU (ORCPT ); Tue, 29 Sep 2020 15:08:20 -0400 Received: by mail-oi1-f196.google.com with SMTP id t76so6673309oif.7; Tue, 29 Sep 2020 12:08:19 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=7M5WWuCCkp0VZzy+IL0R9xA2aVw6kleFif9899pGFyQ=; b=NXnc7HSby/OO/nXaQ1YMZBX5OT6gXDJ7gHaXW8J54vU4YPqwGV8vhFdvjSZR0fQ27F SIfh4TzBCId1DRMVmlVKzmqgvjkPNAFUfAXpgT46nVFQcVLnWbKc6dugWfUNYxpq1T+X OXf4HLro8REnUAANM357BmdZQ/WDIYdYMIwtD+FCV9tfB8Guf5FUmyTLIYYADABGzfnh JiJXFrj3FqWCvFRrFK3zn4QAU+UnmGb+klaaH3JsznN3uJpW7gjVYMiaa9Tl7AKgA+JO 3FfKESIpcb0iJma/SOEDVfVr2+dtpDfRbq5m9flwiFL19lPDXXQyDHyPYdgq5q1qUIX3 86IQ== X-Gm-Message-State: AOAM531mn9nj1RcuJ2UkgnGTlsESMhlG0sNLi6Q58MgnD6t2O4fD565z ebMFRHA8dtimwPSgxHu22w== X-Received: by 2002:aca:5c43:: with SMTP id q64mr3520166oib.18.1601406498870; Tue, 29 Sep 2020 12:08:18 -0700 (PDT) Received: from xps15 (24-155-109-49.dyn.grandenetworks.net. [24.155.109.49]) by smtp.gmail.com with ESMTPSA id s13sm1207704otq.5.2020.09.29.12.08.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 29 Sep 2020 12:08:18 -0700 (PDT) Received: (nullmailer pid 980133 invoked by uid 1000); Tue, 29 Sep 2020 19:08:17 -0000 Date: Tue, 29 Sep 2020 14:08:17 -0500 From: Rob Herring To: Amit Pundir Cc: Kalle Valo , David S Miller , Jakub Kicinski , Bjorn Andersson , Jeffrey Hugo , John Stultz , Sumit Semwal , Konrad Dybcio , ath10k@lists.infradead.org, devicetree@vger.kernel.org, linux-wireless@vger.kernel.org, netdev@vger.kernel.org, lkml Subject: Re: [PATCH] ath10k: Introduce a devicetree quirk to skip host cap QMI requests Message-ID: <20200929190817.GA968845@bogus> References: <1601058581-19461-1-git-send-email-amit.pundir@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1601058581-19461-1-git-send-email-amit.pundir@linaro.org> Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org On Fri, Sep 25, 2020 at 11:59:41PM +0530, Amit Pundir wrote: > There are firmware versions which do not support host capability > QMI request. We suspect either the host cap is not implemented or > there may be firmware specific issues, but apparently there seem > to be a generation of firmware that has this particular behavior. > > For example, firmware build on Xiaomi Poco F1 (sdm845) phone: > "QC_IMAGE_VERSION_STRING=WLAN.HL.2.0.c3-00257-QCAHLSWMTPLZ-1" > > If we do not skip the host cap QMI request on Poco F1, then we > get a QMI_ERR_MALFORMED_MSG_V01 error message in the > ath10k_qmi_host_cap_send_sync(). But this error message is not > fatal to the firmware nor to the ath10k driver and we can still > bring up the WiFi services successfully if we just ignore it. > > Hence introducing this DeviceTree quirk to skip host capability > QMI request for the firmware versions which do not support this > feature. So if you change the WiFi firmware, you may force a DT change too. Those are pretty independent things otherwise. Why can't you just always ignore this error? If you can't deal with this entirely in the driver, then it should be part of the WiFi firmware so it's always in sync. Rob