Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp2886005rwb; Mon, 15 Aug 2022 13:18:37 -0700 (PDT) X-Google-Smtp-Source: AA6agR5sl3yyYY5UqUpI2MnQ6P2nlr0W8xNxRYaRd/SIdUQ6tAypOb6G3DfEBxQ+n/Ocu7Pm68dk X-Received: by 2002:aa7:d8d1:0:b0:43c:ce93:ff67 with SMTP id k17-20020aa7d8d1000000b0043cce93ff67mr15739469eds.295.1660594717238; Mon, 15 Aug 2022 13:18:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660594717; cv=none; d=google.com; s=arc-20160816; b=jrQfWcIthyB5KrOGhYGYyoL+kse/HV4Yl2A8t9HyGgzuQnwg4qgv3NeGBn7qFWR0Ts 3bwjW/xgmQ5aIO4ymLyCr+KtxnbGB4xaJsLFNQV9+OKfU3Sa+jMYJlmC9sI4qU0dy6R2 piYm73GXvqYv7QEPC7pul+oQTdk0Vh9JN/NGjLVtCEBs+0X3jP6KgfTEasj9bW0Wj5g+ J+OQ4/vw8gegTc9FO9hX/n91bFCUEd6JHJvSxqkim64TY44bI/cCNgNt+YHDlHIQT6K8 hqWtgvJ4k4br/FR/ybBdi0pNDRMPq6jQQVJIG2jz08pyYXSSOI+iF9Zjgpy9Ltj2B+Eg U+mQ== 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=og38Ls2ZPQMiOPEm8Fv0xKzSPQgmryk0st22OjzO1wywVrQLj+N1ghbQx48JTWC3Ge SxS8Bk77qixC4fc9UXZVrfCHx6uf10D+4BgKDgrdoM3yjVryQJz6AojWLvE+hTdIqzWz +IBIKaM8AtRLz75LFDSaqlzZ1Xmx52Z9NFRyB8cVZGoMSmKoq/XqAxHiqlZoIS4/H4Ul bJ2GSzIdLeEmdFoxQTcF7mUJh/fudgajPD0KcaY6hD7uB3djdHKJZXNW5GskVXf0Aelf RA0FG/fqLzgrV9KF0sp8D52Sd8qqhpdrHFF6Bvfb1nrG4ujTqoZZkMnquTACoX6AJUdk OVgQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="RkyV/sWJ"; 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 z15-20020a17090655cf00b00722ebccb11asi6397399ejp.101.2022.08.15.13.18.10; Mon, 15 Aug 2022 13:18:37 -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="RkyV/sWJ"; 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 S1343666AbiHOTMl (ORCPT + 99 others); Mon, 15 Aug 2022 15:12:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44164 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1343566AbiHOTIx (ORCPT ); Mon, 15 Aug 2022 15:08:53 -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 224DF3A48B; Mon, 15 Aug 2022 11:35:51 -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 B24AD61019; Mon, 15 Aug 2022 18:35:50 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id B9897C433D6; Mon, 15 Aug 2022 18:35:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1660588550; bh=UOH6REFJS8cP2N9uoUPHkUleTOhh+U4QEU+B7D5bc6k=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=RkyV/sWJBq+vPHoF7tJ+w0a3ll7Vx3kBE7IwBztFmXUA0uztoy0O+4Re6wrUBEvN1 cdpVjkk+NbcXQgNzJl8NC9xQIj7nmmop8SSOEd5s0xOxM70eb7lnJKt5ivPoyCowwO Bp5lSWBSbs/LLlTFMccWa9QlN68EvD1pOAwnwFLE= 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.15 440/779] clk: qcom: camcc-sm8250: Fix halt on boot by reducing drivers init level Date: Mon, 15 Aug 2022 20:01:24 +0200 Message-Id: <20220815180356.077869635@linuxfoundation.org> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220815180337.130757997@linuxfoundation.org> References: <20220815180337.130757997@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