Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp3090115rwb; Mon, 15 Aug 2022 17:53:11 -0700 (PDT) X-Google-Smtp-Source: AA6agR6lSdkbILwGX6Q457M5GPcXrp+i8ClFQExlvugdUZh69om07gMK35DUdvD1e51MtxOFwIqZ X-Received: by 2002:a05:6402:28cb:b0:43b:c6d7:ef92 with SMTP id ef11-20020a05640228cb00b0043bc6d7ef92mr16998562edb.333.1660611191427; Mon, 15 Aug 2022 17:53:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660611191; cv=none; d=google.com; s=arc-20160816; b=fJuu2JL/TqkN0cqS3QLcZa/i6buN7v6BrneyycfGjTFHPNTktsW5aQcoxczcsjBH0w 9nKJGR29b9fxbOafwhjGlQtp8xmcbnWmDO8fBUQXn4LFC6dKjs8Owes8eRIxveDpUbNC Z7t5r1mBVFySjrBoD8dN+xw1CTrEml2r/13zC2pIUd1JFfA+Os1XFW2CJoYU/EMZ6e9U DRJW1LQtmmir2RsZqWbpe8QKOpti6jg/fDPax2IksHkRxJ9kU9JN8ij0JMjFrbS/8grX 3S9NG/C03Lk18lLzYvHDExh5/dK1Awzjac6APFXA98ZTPO1n7tUxmfolvzFdV2JJ4buy y39w== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=07OCk4y4w2kNFfZwF4lwoRob6pW2ydcBIm7MUpWKQKc=; b=D0DB5ePR/etd4vnG+OwKzJ1lCnsfTKByf4LSPfYvdiHxFEn8K/Q82wOEK9frp6l4Ul Obt8jEQYUIlevsm3dtXfxfhm4b7q75KXFJRGmH3ICNsIPmEgUA4h/ZObZJ7/dNW38Yq6 UMx1EgRTIT9z7Gv02mahISAxNVWiW47bSDy7IH3Ja3cQHrBZVGVqILyW5/me6krqOrfv nQj3PmjXPr0XMn211NIeA1su27n/js0j3RVEpzEQHSUPAOLvubWf2gbPSQQPdj9WvPqr VpYT7L9n8Le8gBBKo+Rnn4FDmqtMkqJurx8g3mqdW+c25bLhdBNqUHh3osCDGNK8554b 5dpA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=H+Ba2GEk; 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=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id o11-20020aa7c50b000000b0043da70a82f8si8737476edq.117.2022.08.15.17.52.45; Mon, 15 Aug 2022 17:53:11 -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=@linuxfoundation.org header.s=korg header.b=H+Ba2GEk; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1351452AbiHPASV (ORCPT + 99 others); Mon, 15 Aug 2022 20:18:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55916 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1353090AbiHPAKF (ORCPT ); Mon, 15 Aug 2022 20:10:05 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CA7211741B7; Mon, 15 Aug 2022 13:29:23 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id C03F961135; Mon, 15 Aug 2022 20:29:22 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id CA040C433D6; Mon, 15 Aug 2022 20:29:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1660595362; bh=UOH6REFJS8cP2N9uoUPHkUleTOhh+U4QEU+B7D5bc6k=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=H+Ba2GEkgRxFOWp5LiyV0E4ufiAgB9FzyonxNqhrm5Gx60aPx4LEcqzCoN/xCBF8y SVT0300B/rdhb6pD/hSy9Ln6/cJhUgklQ85bF9atezMyjCu8JPbwQjk9OzuZYyJEiK 1jd9PbBI230+aXIp/IOX4cWXiSPcJR9zELYylwL8= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Vladimir Zapolskiy , Bryan ODonoghue , Bjorn Andersson , Sasha Levin Subject: [PATCH 5.19 0741/1157] clk: qcom: camcc-sm8250: Fix halt on boot by reducing drivers init level Date: Mon, 15 Aug 2022 20:01:37 +0200 Message-Id: <20220815180509.121567079@linuxfoundation.org> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220815180439.416659447@linuxfoundation.org> References: <20220815180439.416659447@linuxfoundation.org> User-Agent: quilt/0.67 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, 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 From: Vladimir Zapolskiy [ Upstream commit c4f40351901a10cd662ac2c081396d8fb04f584d ] Access to I/O of SM8250 camera clock controller IP depends on enabled GCC_CAMERA_AHB_CLK clock supplied by global clock controller, the latter one is inited on subsys level, so, to satisfy the dependency, it would make sense to deprive the init level of camcc-sm8250 driver. If both drivers are compiled as built-in, there is a change that a board won't boot up due to a race, which happens on the same init level. Fixes: 5d66ca79b58c ("clk: qcom: Add camera clock controller driver for SM8250") Signed-off-by: Vladimir Zapolskiy Reviewed-by: Bryan O'Donoghue Tested-by: Bryan O'Donoghue Signed-off-by: Bjorn Andersson Link: https://lore.kernel.org/r/20220518103554.949511-1-vladimir.zapolskiy@linaro.org Signed-off-by: Sasha Levin --- drivers/clk/qcom/camcc-sm8250.c | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/drivers/clk/qcom/camcc-sm8250.c b/drivers/clk/qcom/camcc-sm8250.c index 439eaafdcc86..ae4e9774f36e 100644 --- a/drivers/clk/qcom/camcc-sm8250.c +++ b/drivers/clk/qcom/camcc-sm8250.c @@ -2440,17 +2440,7 @@ static struct platform_driver cam_cc_sm8250_driver = { }, }; -static int __init cam_cc_sm8250_init(void) -{ - return platform_driver_register(&cam_cc_sm8250_driver); -} -subsys_initcall(cam_cc_sm8250_init); - -static void __exit cam_cc_sm8250_exit(void) -{ - platform_driver_unregister(&cam_cc_sm8250_driver); -} -module_exit(cam_cc_sm8250_exit); +module_platform_driver(cam_cc_sm8250_driver); MODULE_DESCRIPTION("QTI CAMCC SM8250 Driver"); MODULE_LICENSE("GPL v2"); -- 2.35.1