Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp22624505rwd; Fri, 30 Jun 2023 10:17:13 -0700 (PDT) X-Google-Smtp-Source: APBJJlGfFX31rECTV5fBd27o2TcZBIPT5aoo//eL85M37RKIMIGXtp2ASvfyBHXI0vAuZ6bOJ0xq X-Received: by 2002:a17:903:192:b0:1b8:6647:2e88 with SMTP id z18-20020a170903019200b001b866472e88mr2637314plg.57.1688145433263; Fri, 30 Jun 2023 10:17:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688145433; cv=none; d=google.com; s=arc-20160816; b=Nvf2AhcNk3QrL8Y2r4RZIQDqxyD4RUrF1LpGrGaG/Nh4P178UCXvX7X6DB2wPalEBq G8cSfNunerBw+u68EfoPgB8HxK6aQlE79RwW6GpXKZHN+XJOJ9LtmdeMzvcb3mucdIaW tT6Zst2MJLEVbpuNLq4Sb+DHX1dRT7IM2AoWJoiB4490kB3SymYczex1CIEyq85xsITH aDUZawWHXg43dcnYjufS/vifu3w9/ZkJLxiw+gZZH8uFpxF9Q2P7UI25my0AFvvjYXwg y3SHpMBKe1BY/EBDesnQ120UFXxylnW1/9+3y8z3S1btUaSfgIKfEPPYYXe5yIjHEpj3 1VDQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version:date :message-id:subject:references:in-reply-to:cc:to:from:dkim-signature; bh=O+yijj0pBQx6gC1oEVJvdmJo8LyiVNTPlKKMuwws4vA=; fh=KxkKg++Gw3YccK7yjjdgEcf8swtTpfmDzBZ88cwUmcM=; b=vEuu4HilRvGIdavUsBYVkVdvrJLeAJGvhVWFtlWOtlG+P4wTufst9UgF2mk7rPOlZj ta7vFVOopeQYrvlcMK5nVgw1ramOeknMPCogiN1qKrXbxZaXqe+F/a8oG6y++K2QFJmO +03ovpOH4SoG/qFcnoLfLCUWI/9OxCvnCx903Qb1g5UaT8t2LvdYKoKnl2h7ZLwUxE/R KYtEHlDyeATjCHb1q1Xy1nu2cF4oRzTHOqLBrJ4KW5hNLGSDQdA6LQqsz58A3+d9++E+ KXE7TqpOARceoyH29q3MyKw3yXp8kG8kcDke+t6YCbdnaL1Dw/Fgtop60Rhx1MvjYJWK KXFw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=S6muFlS6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w11-20020a170902c78b00b001b7f5ee3c86si10674990pla.50.2023.06.30.10.17.00; Fri, 30 Jun 2023 10:17:13 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=S6muFlS6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-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 S232789AbjF3RIH (ORCPT + 99 others); Fri, 30 Jun 2023 13:08:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33536 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232854AbjF3RIC (ORCPT ); Fri, 30 Jun 2023 13:08:02 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0FAB03ABD; Fri, 30 Jun 2023 10:07:57 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 8DAD5617C1; Fri, 30 Jun 2023 17:07:56 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id EA85EC433C0; Fri, 30 Jun 2023 17:07:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1688144876; bh=hrxpSi6TuuolWxR7KX8iVhhKvwNa6g0/omT/CMjj44w=; h=From:To:Cc:In-Reply-To:References:Subject:Date:From; b=S6muFlS64hSp57AMw20ylJybvF/6sI0y+KNfKJ5xwChdTKNyKfvlpZ1u0wtQ4rf3I Yf65lolH7Ws7mXowPhA/GuNin2ITr0L739vhGsWdDtoI76bceA0GHidlSuXiBU503Y q7Yfa+Vjof/dynrhj6FpW/fnQdhMvF0oYaDfaMaaCzBzJgReWmhgUxDhiWS2kf4yBh Znmg4AD2T1Bv5Vi1pDo/L8m6pywAOHIOMV2e8PFXYlYvybJytfWd8uQqsx17gCypz4 h9faWHFFSRDIsNDFvlf7jtv6Uu1YvnpbJnuceJJvbkX2YKnD3Zg7Pl8L0TDs6gLdM0 oCKFaHQWKUV/Q== From: Mark Brown To: Kamal Dasu , Broadcom internal kernel review list , Jonas Gorski Cc: linux-spi@vger.kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20230629134306.95823-1-jonas.gorski@gmail.com> References: <20230629134306.95823-1-jonas.gorski@gmail.com> Subject: Re: [PATCH] spi: bcm-qspi: return error if neither hif_mspi nor mspi is available Message-Id: <168814487467.51089.16336966927742443437.b4-ty@kernel.org> Date: Fri, 30 Jun 2023 18:07:54 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Mailer: b4 0.13-dev-c6835 X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 29 Jun 2023 15:43:05 +0200, Jonas Gorski wrote: > If neither a "hif_mspi" nor "mspi" resource is present, the driver will > just early exit in probe but still return success. Apart from not doing > anything meaningful, this would then also lead to a null pointer access > on removal, as platform_get_drvdata() would return NULL, which it would > then try to dereferce when trying to unregister the spi master. > > Fix this by unconditionally calling devm_ioremap_resource(), as it can > handle a NULL res and will then return a viable ERR_PTR() if we get one. > > [...] Applied to https://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi.git for-next Thanks! [1/1] spi: bcm-qspi: return error if neither hif_mspi nor mspi is available commit: 7c1f23ad34fcdace50275a6aa1e1969b41c6233f All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted. You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed. If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced. Please add any relevant lists and maintainers to the CCs when replying to this mail. Thanks, Mark