Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp832756pxb; Wed, 6 Apr 2022 01:10:02 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw+SDLpCv/ljtM4H/v0g4g09gkwhMDc2cbX4YYiX89djg9vSekgIwc25mI04ru7s0LWf+/T X-Received: by 2002:a17:90a:380d:b0:1c9:d9bb:7602 with SMTP id w13-20020a17090a380d00b001c9d9bb7602mr8386825pjb.216.1649232602211; Wed, 06 Apr 2022 01:10:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649232602; cv=none; d=google.com; s=arc-20160816; b=qAfPWdCYfWp1mRn426I4Fom0yuAQmNF+2CbKaMoEwb5GRAZt+4uRmFRfDLM/2CGnSL ruIgNSChap/Z1N/n0RTE0+0ZBDzS7VKFzz6akW9bpE9AkwHBBCSrcGih8sgGM8kQYoPj ygIzqEswDJvmJRO/lxEHVww8IErWzt+rF0E2uVxUK3GvMFGpvPA6f2EpaoDB/spLZe2k J5KrPse/4qd6V5ZPlL7QG/9SBMAzcgVEOEOouLkN5TcLu+OlsE3R28ZollipbzzRjy1L cpEw9t6Rw28F73dOQt+U46mpYWfAB1BHc2SR8QBa5vB7+Kl2C2ADap4JC/n8Yi+P9Yhs zgZQ== 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=NaCJKd9AxSFhkWsGKUMnqCp+m5MUe6IkitrA18l1EAA=; b=gH3BmXG12hICuF0mzIGUuEO3zxRy3EBKBZZO2RM4PrsT2lYGTzzCvd+IC04uVCkqGL 7fZhQeqIy2SjPsFnS+2J4xujg6icycFXljnmI2Jay0Fvgmjl2h7qnBLXAyJzXtK3o6nI NLUwoFeomY8rug3yO89f0H+1SiqAAv5tNjyN/JpYL7ON7fuqQECgRzxJGo6KlMNRWysA pqfmEg7Eq7CNGmmC7Lp6/2KLpLCdTJADRR+4K8dUGWKEJ6AklzPdxlgVyZ+kOxzuQF5/ BXYdxHyiN+UHcBiMNSL14kGi66QyGGcvgxGQ0hfIEbLHDYNA7Pjb/HrHvibITxc3kwwa Iz2g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=S1KQptpD; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id l13-20020a63570d000000b003989e2adf5esi15544435pgb.370.2022.04.06.01.10.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Apr 2022 01:10:02 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=S1KQptpD; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id C416F543332; Wed, 6 Apr 2022 00:39:27 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1843529AbiDFBlJ (ORCPT + 99 others); Tue, 5 Apr 2022 21:41:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54620 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1349605AbiDEJue (ORCPT ); Tue, 5 Apr 2022 05:50:34 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C3E89280; Tue, 5 Apr 2022 02:48:35 -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 61026614FB; Tue, 5 Apr 2022 09:48:35 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6C404C385A2; Tue, 5 Apr 2022 09:48:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1649152114; bh=fb9efia5mVrZlJD4idK/NLmTQmEyTQOi7uyPx6MOOJs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=S1KQptpDxMh92d+v/r6BFyUrN0zUmBuOMKpnyTxUeidIjV0721UsSkhG7kvwnw0ue 0mTKZgOCKl38NoxCINGMLailt2SaIxR8xmYKo/yGq8wCkL6InqMUgyYj1eyFdN3sIa SreFydBshmc22VAwfKelAO20UBAFF8BnGBsH9TxU= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, =?UTF-8?q?Jonathan=20Neusch=C3=A4fer?= , Stephen Boyd , Sasha Levin Subject: [PATCH 5.15 621/913] clk: hisilicon: Terminate clk_div_table with sentinel element Date: Tue, 5 Apr 2022 09:28:03 +0200 Message-Id: <20220405070358.454684927@linuxfoundation.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220405070339.801210740@linuxfoundation.org> References: <20220405070339.801210740@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=-2.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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: Jonathan Neuschäfer [ Upstream commit 113b261bdf2b4fd34e7769a147a7acd0a4d9137f ] In order that the end of a clk_div_table can be detected, it must be terminated with a sentinel element (.div = 0). Fixes: 6c81966107dc0 ("clk: hisilicon: Add clock driver for hi3559A SoC") Signed-off-by: Jonathan Neuschäfer Link: https://lore.kernel.org/r/20220218000922.134857-4-j.neuschaefer@gmx.net Signed-off-by: Stephen Boyd Signed-off-by: Sasha Levin --- drivers/clk/hisilicon/clk-hi3559a.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/clk/hisilicon/clk-hi3559a.c b/drivers/clk/hisilicon/clk-hi3559a.c index 56012a3d0219..9ea1a80acbe8 100644 --- a/drivers/clk/hisilicon/clk-hi3559a.c +++ b/drivers/clk/hisilicon/clk-hi3559a.c @@ -611,8 +611,8 @@ static struct hisi_mux_clock hi3559av100_shub_mux_clks[] = { /* shub div clk */ -static struct clk_div_table shub_spi_clk_table[] = {{0, 8}, {1, 4}, {2, 2}}; -static struct clk_div_table shub_uart_div_clk_table[] = {{1, 8}, {2, 4}}; +static struct clk_div_table shub_spi_clk_table[] = {{0, 8}, {1, 4}, {2, 2}, {/*sentinel*/}}; +static struct clk_div_table shub_uart_div_clk_table[] = {{1, 8}, {2, 4}, {/*sentinel*/}}; static struct hisi_divider_clock hi3559av100_shub_div_clks[] = { { HI3559AV100_SHUB_SPI_SOURCE_CLK, "clk_spi_clk", "shub_clk", 0, 0x20, 24, 2, -- 2.34.1