Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp9590726ybl; Thu, 26 Dec 2019 01:47:55 -0800 (PST) X-Google-Smtp-Source: APXvYqxV2UrJt1zRGxfpS0MgYu+BbITk7Z97zBz6HO1JvHS6LA2puwQ4WGV3b0u98i+Rq6xsfbyU X-Received: by 2002:a9d:67ce:: with SMTP id c14mr24844197otn.106.1577353674969; Thu, 26 Dec 2019 01:47:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1577353674; cv=none; d=google.com; s=arc-20160816; b=rlxRHJXTu79qPV6uklYGirnLKGC+YyN5Sfnq6VABwGwSRe2WnuDBtYYal/uDl5cqUb CsTgxc1WHwhgx7pvCV1hvSIiVbizeTCU1MbF6Qm0AYG8+DCaTw+cZWQ6QCPBaNzLyTNd Kue8MY1ZVYUiDc0J7mfml8yMGxBZrLJd/2GNIkFm4eK8nRXVy+UyWJ7BNr40fa85Kh+N BxDYlb9GiMbBfPwwzIjtIS5UL79KaXyDUKrHg7KcYD2g0h5SgEHeTFihrH67V8ItxHJd FJcZJ/8wZ8M6fl3WrMMVvGNcBEo650mTuAbMEK7ANGqWNCisFb8Q03sO6/8ojIIsS/bZ Cb7g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :subject:user-agent:references:in-reply-to:message-id:date:cc:to :from:dkim-signature; bh=fes1e17DjoybcHkZ3ppriXwbGN3pvc12W7QvoiRRzVg=; b=xxUtq+uCUeQ//gYeuIcKqD59LrnRU40YUK3jwkR/DHRj5zoeZLW94rGAUiXGvSZXrU l1I/tLHvHLhiDyTcDjo7rrNqCLUqSG5RfwjXHUEAU7oegCEolyAiJe7CbxwsrannfyzE Exi0T3AqtAW7RLlRmWGaJk3Sut8tLvNdMfxNvobQIAZ21wTmupQnpdOBflgKyJNXWDoL X9H3W/NtCS052Zkb/fs98+uFMvxSxvmTr6DDY/WT1a3wSbl6FSSwVwyn/vUozxF8UnJn AkFRt74hpSaU2qzTsvfmeKrLH4XPlwD/fW5ycsNxoosjlQEwsIrypR38dvsIXo8SymCP K1FA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@broadcom.com header.s=google header.b=T49Hwalm; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=broadcom.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e26si8117413otj.113.2019.12.26.01.47.33; Thu, 26 Dec 2019 01:47:54 -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=@broadcom.com header.s=google header.b=T49Hwalm; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=broadcom.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726406AbfLZJr1 (ORCPT + 99 others); Thu, 26 Dec 2019 04:47:27 -0500 Received: from mail-wm1-f65.google.com ([209.85.128.65]:52382 "EHLO mail-wm1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726109AbfLZJrZ (ORCPT ); Thu, 26 Dec 2019 04:47:25 -0500 Received: by mail-wm1-f65.google.com with SMTP id p9so5548721wmc.2 for ; Thu, 26 Dec 2019 01:47:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; h=from:to:cc:date:message-id:in-reply-to:references:user-agent :subject:mime-version:content-transfer-encoding; bh=fes1e17DjoybcHkZ3ppriXwbGN3pvc12W7QvoiRRzVg=; b=T49Hwalmr/bx7Mup/eAfMwH7e+v3fLjLMmlU1pyvn8yuLfBoCvz4ja2Vynu23NVorU L4vnwr+FmuwKarExYkms1yh4mRUBT1M09SVJgtiDCxOuuVC/h8a/T/ESNa09oo03e4vi 1oJaGadD1zadC7UsOTyTkznFyj+Vu7bsTrUK4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:date:message-id:in-reply-to :references:user-agent:subject:mime-version :content-transfer-encoding; bh=fes1e17DjoybcHkZ3ppriXwbGN3pvc12W7QvoiRRzVg=; b=OtMPqdIPJbDeoT99Zo4Az+4pBE2URhl3RLqIzIZ1T6vlbkgrJ1cyWWQ44RTh8x7NSh jTJ1tjkbgd3hPKBpPMntTV+aoeKrIiqRhh5TqQQKo1TVIiGNYgDrmKn2o7Vc+Kz/zb2M IV44H9LTgGSd7veJNIrnppWJ2X0wnnVF3o+mmGjTYpO07m0X4IpHcCjoMDlY29EIeGgt /LuJ25/wPGnEfDb4U0ihw8gIXr2eKTj5K/wKVWj3JYGwDiNsw3RmeTzo9y4iKnOWEwwM aRFDkEJNMuwCvkteSDEaeI0H7Gr2vi7rTZWUmDXi8kdAr/Owb7nfiQIFknucpkcTtLU+ SR6g== X-Gm-Message-State: APjAAAVprv9zS/3mMqSpEHyNPkhpB4pJLFasrQ2P1hpSKLgpC9gTCfO1 2PHXPMNB8pujqW4YKOJfWDd9Nw== X-Received: by 2002:a7b:c957:: with SMTP id i23mr13388410wml.49.1577353642157; Thu, 26 Dec 2019 01:47:22 -0800 (PST) Received: from [192.168.178.38] (f140230.upc-f.chello.nl. [80.56.140.230]) by smtp.gmail.com with ESMTPSA id a14sm32456308wrx.81.2019.12.26.01.47.20 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 26 Dec 2019 01:47:21 -0800 (PST) From: Arend Van Spriel To: "Jean-Philippe Brucker" , , , , , CC: , , , , , , , Date: Thu, 26 Dec 2019 10:47:18 +0100 Message-ID: <16f419a7070.279b.9b12b7fc0a3841636cfb5e919b41b954@broadcom.com> In-Reply-To: <20191226092033.12600-1-jean-philippe@linaro.org> References: <20191226092033.12600-1-jean-philippe@linaro.org> User-Agent: AquaMail/1.22.0-1511 (build: 102200004) Subject: Re: [PATCH] brcmfmac: sdio: Fix OOB interrupt initialization on brcm43362 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="us-ascii" Content-Transfer-Encoding: 8bit Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org On December 26, 2019 10:23:41 AM Jean-Philippe Brucker wrote: > Commit 262f2b53f679 ("brcmfmac: call brcmf_attach() just before calling > brcmf_bus_started()") changed the initialization order of the brcmfmac > SDIO driver. Unfortunately since brcmf_sdiod_intr_register() is now > called before the sdiodev->bus_if initialization, it reads the wrong > chip ID and fails to initialize the GPIO on brcm43362. Thus the chip > cannot send interrupts and fails to probe: > > [ 12.517023] brcmfmac: brcmf_sdio_bus_rxctl: resumed on timeout > [ 12.531214] ieee80211 phy0: brcmf_bus_started: failed: -110 > [ 12.536976] ieee80211 phy0: brcmf_attach: dongle is not responding: err=-110 > [ 12.566467] brcmfmac: brcmf_sdio_firmware_callback: brcmf_attach failed > > Initialize the bus interface earlier to ensure that > brcmf_sdiod_intr_register() properly sets up the OOB interrupt. > > BugLink: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=908438 > Fixes: 262f2b53f679 ("brcmfmac: call brcmf_attach() just before calling > brcmf_bus_started()") Reviewed-by: Arend van Spriel > Signed-off-by: Jean-Philippe Brucker > --- > A workaround [1] disabling the OOB interrupt is being discussed. It > works for me, but this patch fixes the wifi problem on my cubietruck. I missed that one. Too bad it was not sent to linux-wireless as well. Good find here. I did see another patch dealing with the OOB interrupt on Nvidia Tegra. Now I wonder if this is the same issue. Regards, Arend > [1] > https://lore.kernel.org/linux-arm-kernel/20180930150927.12076-1-hdegoede@redhat.com/ > --- > .../net/wireless/broadcom/brcm80211/brcmfmac/sdio.c | 12 ++++++------ > 1 file changed, 6 insertions(+), 6 deletions(-)