Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp22298874ybl; Mon, 6 Jan 2020 23:24:35 -0800 (PST) X-Google-Smtp-Source: APXvYqwJ/CMUxhAlueBOo25NYKkYHiJxgpH8HkGqgno3yCMhzDVs1RPrp2ohzW/ah1hE6DsnZbQk X-Received: by 2002:a05:6830:1487:: with SMTP id s7mr95046330otq.269.1578381875625; Mon, 06 Jan 2020 23:24:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578381875; cv=none; d=google.com; s=arc-20160816; b=a5t1gzSUSHK0f2KByzwz6AXX91pUb8S74MfMX10QvezoNzl1/i7+H8ov4AzqRw+Bsu Ux8P+T7wd56CeiTUQLTguuvtrTadu8MKh6Rx2wWNffsk0bT4rvTDOeW9fo87CQ3Go6Ae LtIJxMAEMoWarNbzK7FWCQGk3ddoUc69rYFKxypUSY230ukAUQ3DKZ/36SYvMn2YI/TM zD0NdQz8dFY21D5Jad8sKJ4V+7Me+EM/w1aBOg9GFLrjXRJsP5dB2nJu4CHCti+G0Qgu 6FqFfMt6ydJ539lOtP5zgwonV9H3SmcpH9VYPgxTtw2nJpYZvbeOxeTN76yrbjGCptLA NcRQ== 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-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=hS02mr1KQqtn1L2M7x0gAEGGeyTPnAaCI8Fi6777qXo=; b=Lt2xNOyVMJnMCXzV+N4M1xr/Q7hwv2PFqjWBMhkLotV25jLJu2ob31HNMMK7oV9kSF 8cXvAXP24U91x2JdsrddMI+JAnVTnAXcQvzQ+csuiRzj3oc0htRkOBIuHYLgKWvqYfcB SpPnAcnfUQZPyn3rEx89b3CsMwkLCMJ3K3pMwfwZZQJSxsIfO7WJxTrSCNwayXXZ2Xs4 v7BQsZ/5LGQyMfV0tbm8nBAKmF1/hSiV6OGHfAqN8cuyLiV0JhDOXPsqtO1YzZrFjO6k DFasQipeZT1947cOB8U7rc9SMvrpVGjEFPmMO3AhC2Dr0NfI8fbTU3mQjC3HclMTkWhX dM7w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="D8vO8J+/"; 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 m90si36343525otc.259.2020.01.06.23.24.16; Mon, 06 Jan 2020 23:24:35 -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="D8vO8J+/"; 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 S1725987AbgAGHYB (ORCPT + 99 others); Tue, 7 Jan 2020 02:24:01 -0500 Received: from mail-wm1-f66.google.com ([209.85.128.66]:36821 "EHLO mail-wm1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725781AbgAGHYB (ORCPT ); Tue, 7 Jan 2020 02:24:01 -0500 Received: by mail-wm1-f66.google.com with SMTP id p17so18149895wma.1 for ; Mon, 06 Jan 2020 23:24:00 -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:content-transfer-encoding:in-reply-to; bh=hS02mr1KQqtn1L2M7x0gAEGGeyTPnAaCI8Fi6777qXo=; b=D8vO8J+/UrejXMFUPsaq0tPZKX0tESDcJxgdJ2cb+CbxRcCzmGheBCePqfbpr6SnYe Q+BuCue2Mv2ov46zAJYD9jma1KeFdKTFwZhySxi8srMr13pgOZ9ia8SBjeg+wERlJQYL ezciRb1LIYhvCENNd+dPcqutvpk1xglYs5trMvLMoqDm4fJCGrWktZDnKzSapy0aPAtU HzADB2JHivrYH6JiAsDuXvTRTo9cqU1FntFWapIyplE25jvbsuPiYglgV5H1VtKNud6B 8gYIG990t/m+Krbhp1rH+5hJF8Kv5UaxUZXL7FBsad/a97UjJNR2b5zfM2tnGzAYIF1B h2DA== 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:content-transfer-encoding :in-reply-to; bh=hS02mr1KQqtn1L2M7x0gAEGGeyTPnAaCI8Fi6777qXo=; b=DuMoXHS/25QeKWZ7vriRWok6LWqkyxCekJuOJp7pZ9IT9c59wlompFHiAMwsjqBE38 LnPUzQumzOdPGdxIZQSfhb6CDe0d37D1hsSbQ32zEGS3++WJSDURZAvNzAdnGdbvinUB dnoeFGPv1WODM/Yc8/0pVfZXJwUpZPLLAwUEZa0ipWkbZhwKGXs/tE835t5o94khmhte +ACGbmHTuYClOwOp1V9T9ULkUrLEF/N56S3YI493leCcnBkqr0swmJ3aMouwwzOqVIuG gyxkEdXcRQnho1O9T/EFJvNwF1wVAX22D9+NLWhfVW2UwZTI+a11Ozp0zKcIGD51Wqfj uhOg== X-Gm-Message-State: APjAAAUZIP06E5Mc6lSKb7m0FOenfBC24hNJVIpL56ke5g7AHQojWcLV ejvJzAZRmJnsSJVO2CefvOWadA== X-Received: by 2002:a05:600c:2c06:: with SMTP id q6mr36778338wmg.154.1578381839342; Mon, 06 Jan 2020 23:23:59 -0800 (PST) Received: from myrica (adsl-84-227-176-239.adslplus.ch. [84.227.176.239]) by smtp.gmail.com with ESMTPSA id q3sm25675275wmc.47.2020.01.06.23.23.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 Jan 2020 23:23:58 -0800 (PST) Date: Tue, 7 Jan 2020 08:23:54 +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: <20200107072354.GA832497@myrica> References: <20191226092033.12600-1-jean-philippe@linaro.org> <16f419a7070.279b.9b12b7fc0a3841636cfb5e919b41b954@broadcom.com> <141f055a-cd1d-66cb-7052-007cda629d3a@gmail.com> <20200106191919.GA826263@myrica> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org On Tue, Jan 07, 2020 at 02:15:18AM +0300, Dmitry Osipenko wrote: > 06.01.2020 22:19, Jean-Philippe Brucker пишет: > > 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) { > > Hello Jean, > > Could you please clarify whether you applied [1] and then the above > snippet on top of it or you only applied [1] without the snippet? I applied [1] without the snippet Thanks, Jean > > [1] brcmfmac: Keep OOB wake-interrupt disabled when it shouldn't be enabled