Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 37C7BC43217 for ; Sun, 2 Jan 2022 05:52:06 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231159AbiABFwE (ORCPT ); Sun, 2 Jan 2022 00:52:04 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39010 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231243AbiABFwD (ORCPT ); Sun, 2 Jan 2022 00:52:03 -0500 Received: from mail-lj1-x231.google.com (mail-lj1-x231.google.com [IPv6:2a00:1450:4864:20::231]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F2D72C06173F for ; Sat, 1 Jan 2022 21:52:02 -0800 (PST) Received: by mail-lj1-x231.google.com with SMTP id p7so50250449ljj.1 for ; Sat, 01 Jan 2022 21:52:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=n1IdkO2v3WWPYSUTncvDnfGDMDrfABtHyJ12lBtRt4A=; b=wDPn0Jr+i3Ne3uIfUMRrc8qtDSm3mBZfR4pC/cTBiQ5xoFgztpIkqZE0aoMSWL9CYM p4empsBUWq+plhKvwpWgg1psHX4gHau9FVaXoOrzVCDiQqIL0ecOMx5kNHBMWD/tzoKp s+CYL0Qz7pVSkPyVn7ui/EuafYsSDUAodi63H145X98ARPys1LR/H2YAQ9ZA8zRy5ZZV B8SMHR+rk9xm9TzIGdveVWHO1vtVb4wsf6WXaWtOyhev38qygrVRNprhkiSpjkSA8PlV 26trSfYiYZGfE0+NYotRn+hrXSiykF763+t+fzNBLCdtjcdkFWwLFFrCcYYHLelEZuCg dhEQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=n1IdkO2v3WWPYSUTncvDnfGDMDrfABtHyJ12lBtRt4A=; b=TCK+xXd9FtNOK4eQlF2/uVQTcHErffAxyzcL0+gZ5xlhAuUDXWxdP+6lkh+lZg+jZs FhucfcUs504mOmY3V2mSsIO17x2HBe9y/5IPn+jIJwlBhNty1xvBSVMbWRrk9QfJvohu r8VVsfJvZ3dXl8EjF0Za1xNtKkS55PHczChIVFXvpAUpO8/WXUD9QiCs5xEoRhDUfehS 9hvTZD8eyafzQevAcWXgah9WLE5lJ8lNCl1SpkTJMmAIM0sx6YcDmRg5mBnKNfwyd2Cn nFPqmRaOFVEOt9TTZ1+5mzDnR5QWm6m5x4hlMMOAZlaFIRo4kNiKyByl3P5+rVdnu6K+ kXBA== X-Gm-Message-State: AOAM531Mf3mVtYh9hjrsAzocxjizJbcp4wcuZenKkeXBBvUlImav1wKN /6jtPiPUOTEKLOY+ogdfjWTSAS0aEnAnbW32P/le/g== X-Google-Smtp-Source: ABdhPJz3850HYLW8wxEtlvPJb84T9SqXhem/mi/73BSeo5E7P0JHUZBkParKaPmI6AIp8XQ33Vb7i+PVLJ6RLVAtbBE= X-Received: by 2002:a2e:b808:: with SMTP id u8mr24141804ljo.282.1641102721114; Sat, 01 Jan 2022 21:52:01 -0800 (PST) MIME-Version: 1.0 References: <20211226153624.162281-1-marcan@marcan.st> <20211226153624.162281-13-marcan@marcan.st> In-Reply-To: <20211226153624.162281-13-marcan@marcan.st> From: Linus Walleij Date: Sun, 2 Jan 2022 06:51:49 +0100 Message-ID: Subject: Re: [PATCH 12/34] brcmfmac: pcie: Fix crashes due to early IRQs To: Hector Martin Cc: Kalle Valo , "David S. Miller" , Jakub Kicinski , Rob Herring , "Rafael J. Wysocki" , Len Brown , Arend van Spriel , Franky Lin , Hante Meuleman , Chi-hsien Lin , Wright Feng , Chung-hsien Hsu , Sven Peter , Alyssa Rosenzweig , Mark Kettenis , =?UTF-8?B?UmFmYcWCIE1pxYJlY2tp?= , Pieter-Paul Giesberts , Hans de Goede , "John W. Linville" , "Daniel (Deognyoun) Kim" , "brian m. carlson" , linux-wireless@vger.kernel.org, netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-acpi@vger.kernel.org, brcm80211-dev-list.pdl@broadcom.com, SHA-cyfmac-dev-list@infineon.com Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org On Sun, Dec 26, 2021 at 4:38 PM Hector Martin wrote: > The driver was enabling IRQs before the message processing was > initialized. This could cause IRQs to come in too early and crash the > driver. Instead, move the IRQ enable and hostready to a bus preinit > function, at which point everything is properly initialized. > > Fixes: 9e37f045d5e7 ("brcmfmac: Adding PCIe bus layer support.") > Signed-off-by: Hector Martin Reviewed-by: Linus Walleij Yours, Linus Walleij