Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp997366pxb; Wed, 6 Apr 2022 06:20:24 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx3G375FnYUZpWS5xuu1/i8i/Bo9JR0Lzien25SCHHN0C0WSSvYs2cpoAhJbtU7E0twvws3 X-Received: by 2002:a17:903:248:b0:155:e660:b774 with SMTP id j8-20020a170903024800b00155e660b774mr8791320plh.174.1649251224622; Wed, 06 Apr 2022 06:20:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649251224; cv=none; d=google.com; s=arc-20160816; b=UBopB9uwDwQ5RgRR/aVPmiiBQ4HaTd2wbBF9zz07weAZOnqWIVn7uqc8urP2nsH2ax l+aaYVVMWlE6PwNeT7v3YfALp1twbn9iZBNaGuHYkQkG+gb0PSnACjvZbY7Ct2E3Wii4 zzj3qO1s5s/NLx0oopYSD7cxn3zJODC/BskwYpgjoH7LSixWCeGrV9yGBdi4p9NTQtQU 32uuKgN/socKxmW12iQQ2eTyYHFy5A3bnAt+TLtcc9Diyrw+TadiMQrgH1A+qpFhVeiE YdY38pgQIVSxuQggBoOlmlZpSH9xQETvHsHhfHNP415LQInvgWc5hRElhdmPvAm/RNU2 rYsw== 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=ZvYgVVLEJlRKe9PmFsamUq4SpFRNyul+He3QFwEQ6veyTFyyYILGo6MW4dsjnhtnMu SRzZeJjeqgT295z8nJZvY5GBn/2L20hEawXfO4dRxGTvDkACmnp/AY5Od3Ywxh+73sjq puAb9COwg3TJkl4OBTzuuxsuIWAVZ3qRposELgAoYJy6vWQxQq6xUzjW8xZpClqMFLQp YCUU8LP+JLhVVrDlP9ixhvD8CHkIEEsiLE4/IBAvbrMIpK4Rpbh1C8wb4sBP3hUNvNt9 amVTXDqfeN7Lft1u5tfAnBQ8jlnp4HC2I7VjhtlKBgHZF/jkHZxSqh7X2DU2yRLTPM8p F0tA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=j8n7U2Iq; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 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. [23.128.96.19]) by mx.google.com with ESMTPS id mn7-20020a17090b188700b001c7e26d8fbesi4419778pjb.107.2022.04.06.06.20.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Apr 2022 06:20:24 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=j8n7U2Iq; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 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 305335A85DA; Wed, 6 Apr 2022 03:57:49 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244513AbiDEJKD (ORCPT + 99 others); Tue, 5 Apr 2022 05:10:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34698 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239530AbiDEIUM (ORCPT ); Tue, 5 Apr 2022 04:20:12 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CC0A9F25; Tue, 5 Apr 2022 01:15:22 -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 6914860B0E; Tue, 5 Apr 2022 08:15:22 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 727DFC385A0; Tue, 5 Apr 2022 08:15:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1649146521; bh=fb9efia5mVrZlJD4idK/NLmTQmEyTQOi7uyPx6MOOJs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=j8n7U2Iq8sjRbt1cIG9yj58Ka+i3nKoy38FN8gv46tgX+YzTyx0B3uMCfjKyPnYi7 eq+ZA2PMOYRDfnCXlVfGFCKmvyqCUinfS/AAWZ+lq8iE7Qkh7SulWpBWZ0ukVhdutt OWp5ROO1LF9NzwGZVBl08ymTofoPVJtMhSOMRmEY= 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.17 0757/1126] clk: hisilicon: Terminate clk_div_table with sentinel element Date: Tue, 5 Apr 2022 09:25:04 +0200 Message-Id: <20220405070429.804312004@linuxfoundation.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220405070407.513532867@linuxfoundation.org> References: <20220405070407.513532867@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