From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8A708C43217 for ; Tue, 16 Nov 2021 08:24:15 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 6C8946322C for ; Tue, 16 Nov 2021 08:24:15 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231940AbhKPI1K (ORCPT ); Tue, 16 Nov 2021 03:27:10 -0500 Received: from mail.kernel.org ([198.145.29.99]:39154 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231949AbhKPI0x (ORCPT ); Tue, 16 Nov 2021 03:26:53 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 4A29361B49; Tue, 16 Nov 2021 08:23:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1637051036; bh=OVXwhI5lQeFB2cyFD7EtpBMvt7F+BFfPHdqIKI8FKiY=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=YENtCLsHCGiCxkEqr+4qPeXGQiR7ecaoKexg9WM4O9gpLETpV/G4Eb1RS4kohz7U3 Jn0bTF/vbZb3NeJD8NTQ/3rTg+qwXgoiaoBmj2r77i0KiHoX4Q5ApfD4XGNWXoxgZ6 LhqqKLG3r9cgSRypfbVmoj1izC+SNRqjbVaOg1x4= Date: Tue, 16 Nov 2021 09:23:54 +0100 From: Greg KH To: Dmitry Baryshkov Cc: Andy Gross , Bjorn Andersson , Stephen Boyd , Michael Turquette , Taniya Das , linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org, stable@vger.kernel.org Subject: Re: [PATCH] clk: qcom: regmap-mux: fix parent clock lookup Message-ID: References: <20211115233407.1046179-1-dmitry.baryshkov@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20211115233407.1046179-1-dmitry.baryshkov@linaro.org> Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org On Tue, Nov 16, 2021 at 02:34:07AM +0300, Dmitry Baryshkov wrote: > The function mux_get_parent() uses qcom_find_src_index() to find the > parent clock index, which is incorrect: qcom_find_src_index() uses src > enum for the lookup, while mux_get_parent() should use cfg field (which > corresponds to the register value). Add qcom_find_cfg_index() function > doing this kind of lookup and use it for mux parent lookup. > > Fixes: df964016490b ("clk: qcom: add parent map for regmap mux") > Signed-off-by: Dmitry Baryshkov This is not the correct way to submit patches for inclusion in the stable kernel tree. Please read: https://www.kernel.org/doc/html/latest/process/stable-kernel-rules.html for how to do this properly.