Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp21793063ybl; Mon, 6 Jan 2020 11:21:44 -0800 (PST) X-Google-Smtp-Source: APXvYqzelTo+QbVQg//7BreQFTg5qvuMW95Ec+3tN1xPgqIQ0puOZMzW4Vop6QJFDcE6fSraEof1 X-Received: by 2002:aca:f10:: with SMTP id 16mr5835462oip.117.1578338504078; Mon, 06 Jan 2020 11:21:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578338504; cv=none; d=google.com; s=arc-20160816; b=q11vdgtBD3j0OU7nbZC/8/N7tzt9igsDHylJk8Xq4v9GScYjDJyK0+Jw7YilYGp4z5 kaJvK4nZpDwRJrBiMEIRrjHYlIYmIXOFgq7sPTBHyF34lqrC/29mXh/JBOhEi8o54zrd RtMPDH86AEcBIJFs8snsHrURMbovb9i3cEAmnw9v3KnnD8DB/5q98CvDtfyCBu/Vk66v sV7wMBRaS+vvO1jp+dc5LFZR4Qy0Glzz5Ucp+BWs8Dy/Mafk1hOqDu+gY7alxjl0OotY R1Bq3VBm85QNsXy4aSKwq64ZFegeZffsxYJDoOmMbLsmOwzLsE9pZq/LyXsaQ9mSTDOX QJWg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=1DiUbn/uge4ZdZwSZw1/xSvzuKtRN5x2iHMem43HB8Q=; b=CdaKnFoet3Lunu15sj/jccjUmVUPERUxzo2HnwbfIvtpqgfxDF89521Xnk4qhDTA/c s0H5HYhmP81AVh8jXXGhSJXJ00NsGILPCTMlYzdU02BsWEjmsHT2ZK357pVNy6ukVBBM h1n8053bw4Wn2396/7RiR4t4Y8GmmRV5vDFLamRePoQDqzpey9IQWOoD9tkl4lw2dDf+ 27NG9itygNL9xLhq+dKFOpYsQ8IxCTf4IEq66cdlda+T5x6sXVZSHgdA47u65EozcJiw WYmn0nZhbiu/6FVKNcak7z6JvwevY0AcY7YIs1q46+5KgfgBbuZ4Q7AZNRG/yOv6i3uG 1v/A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=LI+Il05d; spf=pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u127si27660122oig.71.2020.01.06.11.21.23; Mon, 06 Jan 2020 11:21:44 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=LI+Il05d; spf=pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727169AbgAFTT1 (ORCPT + 99 others); Mon, 6 Jan 2020 14:19:27 -0500 Received: from mail-wr1-f65.google.com ([209.85.221.65]:46581 "EHLO mail-wr1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727020AbgAFTT1 (ORCPT ); Mon, 6 Jan 2020 14:19:27 -0500 Received: by mail-wr1-f65.google.com with SMTP id z7so50902229wrl.13 for ; Mon, 06 Jan 2020 11:19:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=1DiUbn/uge4ZdZwSZw1/xSvzuKtRN5x2iHMem43HB8Q=; b=LI+Il05dGaGaAFvZ7nINzPFXom+zumQtKFnxIrRG39Vu6dj4EcSFCuGEb1UqtJP6mI WvfUICKFOII7dfooq8Gg+3vxvS8yiFOYxm6NV5HER5t20Ef9lXw3dNL2194noM7wLJkb FDcGOThRjt2vW/PAHOTAoalBX35/5wdb6qv2ClSqjn75licL2p0O7AV6gKYm9m9H/2T5 DlFRe+FtZFiWY6xvmDyI+mZ4HRUfkHuw03Ht+dw6c/7K9t/HAmylmHVp3ILouxq6qPNu w6DhkzBUyxfu9HSabcsrX96MNk+VPqF0V6Hl+UGE87Ivb6HD00NmPCVKDQ6mpPWkkk+B WDUA== 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=1DiUbn/uge4ZdZwSZw1/xSvzuKtRN5x2iHMem43HB8Q=; b=bfSU+ap/TRLzLVCiPXKtjQqOZGy0popeSHaLfW7HNMCm2LMF8yfa06WilJ1zY74Obx Lvxl+qW5Mv1OeFqBYA/P/0aNz06YPKBiI3tALGO1qucv18/8q2ilF6FC/QhmhIhmVuke nQaNVnHn3pydvo4tAHd3BgaZu7k355yThCBYOJ3QcPA80LqWP7LuN4Q1/ZBO+PvuMSsH RtX1XyaaiV/VKwSyjEvfAPQDY3lruOe5A2XQ6gNY000dHbaLliTF6eSk9e8NpRgAhNPH lkdlQhpvExvNZeh3UrEy/bpY6OStiy5r4IpuAKTcuFpuE8/b94iv9ZfNe2+tErNdsmAj 1VVQ== X-Gm-Message-State: APjAAAWLefRCesEr1I0DSDMQtspl1pwJJHGV54H/umqnUzGFDHAoQ2oC wbYaWCir8Il7MhxVx8Qy2HmB4Q== X-Received: by 2002:adf:c147:: with SMTP id w7mr108157303wre.389.1578338365461; Mon, 06 Jan 2020 11:19:25 -0800 (PST) Received: from myrica (adsl-84-227-176-239.adslplus.ch. [84.227.176.239]) by smtp.gmail.com with ESMTPSA id q11sm72195148wrp.24.2020.01.06.11.19.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 Jan 2020 11:19:24 -0800 (PST) Date: Mon, 6 Jan 2020 20:19:19 +0100 From: Jean-Philippe Brucker To: Dmitry Osipenko Cc: Arend Van Spriel , linux-wireless@vger.kernel.org, brcm80211-dev-list.pdl@broadcom.com, brcm80211-dev-list@cypress.com, netdev@vger.kernel.org, hdegoede@redhat.com, franky.lin@broadcom.com, hante.meuleman@broadcom.com, chi-hsien.lin@cypress.com, wright.feng@cypress.com, kvalo@codeaurora.org, davem@davemloft.net Subject: Re: [PATCH] brcmfmac: sdio: Fix OOB interrupt initialization on brcm43362 Message-ID: <20200106191919.GA826263@myrica> References: <20191226092033.12600-1-jean-philippe@linaro.org> <16f419a7070.279b.9b12b7fc0a3841636cfb5e919b41b954@broadcom.com> <141f055a-cd1d-66cb-7052-007cda629d3a@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <141f055a-cd1d-66cb-7052-007cda629d3a@gmail.com> Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org Hi Dmitry, On Thu, Dec 26, 2019 at 05:37:58PM +0300, Dmitry Osipenko wrote: > I haven't seen any driver probe failures due to OOB on NVIDIA Tegra, > only suspend-resume was problematic due to the unbalanced OOB > interrupt-wake enabling. > > But maybe checking whether OOB interrupt-wake works by invoking > enable_irq_wake() during brcmf_sdiod_intr_register() causes trouble for > the cubietruck board. > > @Jean-Philippe, could you please try this change (on top of recent > linux-next): Sorry for the delay, linux-next doesn't boot for me at the moment and I have little time to investigate why, so I might retry closer to the merge window. However, isn't the interrupt-wake issue independent from the problem (introduced in v4.17) that my patch fixes? I applied "brcmfmac: Keep OOB wake-interrupt disabled when it shouldn't be enabled" on v5.5-rc5 and it doesn't seem to cause a regression, but the wifi only works if I apply my patch as well. Thanks, Jean > > diff --git a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/bcmsdh.c > b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/bcmsdh.c > index b684a5b6d904..80d7106b10a9 100644 > --- a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/bcmsdh.c > +++ b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/bcmsdh.c > @@ -115,13 +115,6 @@ int brcmf_sdiod_intr_register(struct brcmf_sdio_dev > *sdiodev) > } > sdiodev->oob_irq_requested = true; > > - ret = enable_irq_wake(pdata->oob_irq_nr); > - if (ret != 0) { > - brcmf_err("enable_irq_wake failed %d\n", ret); > - return ret; > - } > - disable_irq_wake(pdata->oob_irq_nr); > - > sdio_claim_host(sdiodev->func1); > > if (sdiodev->bus_if->chip == BRCM_CC_43362_CHIP_ID) {