Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp979281ybt; Wed, 17 Jun 2020 19:46:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzzz/0UhSGw6CiGluEsO7VDcigK9oiB9NEmKQU7k77PLavoM+c0qpKuRNB0cZ6j2FWuU6UI X-Received: by 2002:a17:906:2a4d:: with SMTP id k13mr2045620eje.253.1592448383421; Wed, 17 Jun 2020 19:46:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592448383; cv=none; d=google.com; s=arc-20160816; b=JXIy2HlQUXxGqFVQttaOv3o2StyZpD/LZp99rYqV/4xIg272SxVJReNp7A3keIs5rk +VpOnOesEUnavKfm4n6L/soWq9UpfHG4GsBcAPwnnZelSiSks1V3qmd/jFD2PJ7wJTMQ rEZ9Z+dhEDJjk/jVygFdpmwpCeyktHhWPVOJfhB+3kuQrCCpt1rRnXRXX8BlHihEYYef kY3kiy9IMjrQZ6cyH5SoLqknCciRimPWDeNR0PcbiWwSA+d07Ii24MC+K/ivpqojoZm6 KCsevubipPAoJxo+280kc59A6x9xt9/wgRReZ8nx3FE6nZL87du+m02lD//6mi5taRvZ sonw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=8G8OSCcyPgieULXlHo5PUWg/ytY1IKQBf/rYqjuASUs=; b=cZ6RwNLCuBfdnfy74FRdTcm0kIALZHFnZU+hVym/SkBbz1r4lfBl0Ua2VW2og9rYHx 2W6c+DnaYwVqdcI1kpnXVwvpiU3aYXBJgbKv1vFJj9S7XbXgRXZ39xTUKwblQMxYS7H/ vWaM3eNoxZMJ1dCWuo9/p218wu/FQTL3XVsEDEP0kU7qy+EQBvb7FbR3CM3OwejFYND+ Gx6/u67iAkE+Wp2/y/wYi784kbUizfPy46XDpeo5GVTRyH5r9BFzKotd6TgPwlvbRaos TEd3OLUlgYL/RDLmNcLwkBQLEIxNzVZCXJwHBxzJMzAiMyXQRIwCPlF2+dYsyi/7VlhF fVdg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=xUj7x4qJ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id k19si1125907eds.178.2020.06.17.19.46.01; Wed, 17 Jun 2020 19:46:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=xUj7x4qJ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387772AbgFRCn4 (ORCPT + 99 others); Wed, 17 Jun 2020 22:43:56 -0400 Received: from mail.kernel.org ([198.145.29.99]:39242 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727831AbgFRBLY (ORCPT ); Wed, 17 Jun 2020 21:11:24 -0400 Received: from sasha-vm.mshome.net (c-73-47-72-35.hsd1.nh.comcast.net [73.47.72.35]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 88EC621D7E; Thu, 18 Jun 2020 01:11:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1592442684; bh=Sp+62r1czfVEY6NOVZ4jDMPfXjcGVIulcPXjrSyusyg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=xUj7x4qJzrHG1HajKv+J3y5zydovRimhfkSiPJS+4R4ePND9SLCI9DICJE2AiT5uR s8/cISoNfcuk5RJENlC1iF8QSkDLtYUbfLXJqTLP3wyguyrx0QFlH+VJBeLr1nclBj XBpl1XkxRfYovP3GJiNCyuzhpBTnpDaYCI062c+k= From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Martin Blumenstingl , Neil Armstrong , Jerome Brunet , Sasha Levin , linux-amlogic@lists.infradead.org, linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH AUTOSEL 5.7 151/388] clk: meson: meson8b: Fix the first parent of vid_pll_in_sel Date: Wed, 17 Jun 2020 21:04:08 -0400 Message-Id: <20200618010805.600873-151-sashal@kernel.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200618010805.600873-1-sashal@kernel.org> References: <20200618010805.600873-1-sashal@kernel.org> MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Martin Blumenstingl [ Upstream commit da1978ac3d6cf278dedf5edbf350445a0fff2f08 ] Use hdmi_pll_lvds_out as parent of the vid_pll_in_sel clock. It's not easy to see that the vendor kernel does the same, but it actually does. meson_clk_pll_ops in mainline still cannot fully recalculate all rates from the HDMI PLL registers because some register bits (at the time of writing it's unknown which bits are used for this) double the HDMI PLL output rate (compared to simply considering M, N and FRAC) for some (but not all) PLL settings. Update the vid_pll_in_sel parent so our clock calculation works for simple clock settings like the CVBS output (where no rate doubling is going on). The PLL ops need to be fixed later on for more complex clock settings (all HDMI rates). Fixes: 6cb57c678bb70 ("clk: meson: meson8b: add the read-only video clock trees") Suggested-by: Neil Armstrong Signed-off-by: Martin Blumenstingl Signed-off-by: Jerome Brunet Link: https://lore.kernel.org/r/20200417184127.1319871-2-martin.blumenstingl@googlemail.com Signed-off-by: Sasha Levin --- drivers/clk/meson/meson8b.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/clk/meson/meson8b.c b/drivers/clk/meson/meson8b.c index 34a70c4b4899..ac4a883acd2a 100644 --- a/drivers/clk/meson/meson8b.c +++ b/drivers/clk/meson/meson8b.c @@ -1077,7 +1077,7 @@ static struct clk_regmap meson8b_vid_pll_in_sel = { * Meson8m2: vid2_pll */ .parent_hws = (const struct clk_hw *[]) { - &meson8b_hdmi_pll_dco.hw + &meson8b_hdmi_pll_lvds_out.hw }, .num_parents = 1, .flags = CLK_SET_RATE_PARENT, -- 2.25.1