Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp3434188pxb; Tue, 19 Apr 2022 02:23:10 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwzulOpULsgqHeSXrGnNI6zn+Um5T8y7M63gRdamvTHVn/6BIWJ4rdIfYqisTjnqSDXMMtA X-Received: by 2002:a17:90b:3903:b0:1d2:c8ea:4c9c with SMTP id ob3-20020a17090b390300b001d2c8ea4c9cmr3627213pjb.210.1650360190535; Tue, 19 Apr 2022 02:23:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650360190; cv=none; d=google.com; s=arc-20160816; b=ny5e7CZ2+glR0abAHqEs7QrHfACqlCXcGEmLJ5Op1KLqAGVxoKUTCbdveckVbh6W7Z trJWHQBZQem/eHARo6ixYPYUYjYvQt8PVz9n7RBM6/XyyhGa+MxdgJtxbDQ99DsncCD+ ZA90T9YwYJ5pKQVPe0qEeYUcQTuQ76N9+zcnUA6Xlm75dcGonrM4StD9sjT3eri3vmw5 QRdJR74g5nplpBEE2m/pVuAHRF/kZs7/44vJDMinDkajbMz4UJspG3IE+sLyR5lDkhzj JAUG06jdrlpYTuUTNr70I/0uXbsgT7mMiAOiISwLIi3nDBr/P9xSMznqbo6vre5LaIEW v5jA== 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=4ePcuRz6oZP8d0HSBzo+2dSDam8/XtaDNj0FbaH4eBI=; b=wijNNdP+W/+cvuXE0wIYu9tDDj4UmXb3ydhcapjbDa4Y3q2EyJAOs1TYCkrJuYrW3t cb37Cs6fnkPhKH2YAM7KHh5VZI8ECKs60W+JPKVE+muY18lwBcBX7kZ0P6UtjRQMAsPP hZ/JhAsVGMCl+5wZipWTBwRRUt+wfjnVuipD8E14P1HemH2qfFYOykTJyqnKxk3wV6k7 QK8M9a2ZI+DbEOTfd3Ar3rT8tTCr+Kduf17Nm8TYeeXbYHVDvGt4AjKPKANZOLKUz/9H lY3zMcV4U4nINc9FsLr/LrpjPssJLVARhTJEkh+MpK/mlnpc0iO/qt8h0LSF8gsSXhLu KwcA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=ySL21fj6; 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 h7-20020a056a00170700b004fa3a8dffbcsi4426486pfc.115.2022.04.19.02.22.46; Tue, 19 Apr 2022 02:23:10 -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=ySL21fj6; 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 S242822AbiDRNmh (ORCPT + 99 others); Mon, 18 Apr 2022 09:42:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53832 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241533AbiDRNIC (ORCPT ); Mon, 18 Apr 2022 09: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 D23172B1BA; Mon, 18 Apr 2022 05:47:43 -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 6750461251; Mon, 18 Apr 2022 12:47:43 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6504BC385A7; Mon, 18 Apr 2022 12:47:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1650286062; bh=Hi+qGAM0+K6aRhN2ffkWQJ1vVgUzo9g09tmdPd5/DCc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ySL21fj6H1k7yr0sbWl+7Ss+10QH1ly1TeDGGm0Q8anGO0CStPNw7QKQU5NXhsSzB IaSOUPvYDqvQ/wQwTc1hmnUprS28kqA758piTLyjCQrjw5DmEX80TANYlQwZO7gpKB PHyXNTs3mvo+oIs/Bb/WPtmvr8ZkvLWkB0byFbp0= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Kunihiko Hayashi , Stephen Boyd Subject: [PATCH 4.14 018/284] clk: uniphier: Fix fixed-rate initialization Date: Mon, 18 Apr 2022 14:09:59 +0200 Message-Id: <20220418121211.215907720@linuxfoundation.org> X-Mailer: git-send-email 2.35.3 In-Reply-To: <20220418121210.689577360@linuxfoundation.org> References: <20220418121210.689577360@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.7 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: Kunihiko Hayashi commit ca85a66710a8a1f6b0719397225c3e9ee0abb692 upstream. Fixed-rate clocks in UniPhier don't have any parent clocks, however, initial data "init.flags" isn't initialized, so it might be determined that there is a parent clock for fixed-rate clock. This sets init.flags to zero as initialization. Cc: Fixes: 734d82f4a678 ("clk: uniphier: add core support code for UniPhier clock driver") Signed-off-by: Kunihiko Hayashi Link: https://lore.kernel.org/r/1646808918-30899-1-git-send-email-hayashi.kunihiko@socionext.com Signed-off-by: Stephen Boyd Signed-off-by: Greg Kroah-Hartman --- drivers/clk/uniphier/clk-uniphier-fixed-rate.c | 1 + 1 file changed, 1 insertion(+) --- a/drivers/clk/uniphier/clk-uniphier-fixed-rate.c +++ b/drivers/clk/uniphier/clk-uniphier-fixed-rate.c @@ -33,6 +33,7 @@ struct clk_hw *uniphier_clk_register_fix init.name = name; init.ops = &clk_fixed_rate_ops; + init.flags = 0; init.parent_names = NULL; init.num_parents = 0;