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 X-Spam-Level: X-Spam-Status: No, score=-3.8 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id EC049C4361B for ; Thu, 17 Dec 2020 10:48:02 +0000 (UTC) Received: from lists.ozlabs.org (lists.ozlabs.org [203.11.71.2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id CD76F23899 for ; Thu, 17 Dec 2020 10:48:01 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org CD76F23899 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=openbmc-bounces+openbmc=archiver.kernel.org@lists.ozlabs.org Received: from bilbo.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 4CxTH26MBdzDqSk for ; Thu, 17 Dec 2020 21:47:58 +1100 (AEDT) Authentication-Results: lists.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=kernel.org (client-ip=198.145.29.99; helo=mail.kernel.org; envelope-from=sboyd@kernel.org; receiver=) Authentication-Results: lists.ozlabs.org; dmarc=pass (p=none dis=none) header.from=kernel.org Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20201202 header.b=QtT1U6O0; dkim-atps=neutral Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 4CxTFW62h3zDqQV; Thu, 17 Dec 2020 21:46:39 +1100 (AEDT) Content-Type: text/plain; charset="utf-8" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1608201995; bh=Pue5gigex8jLd7iX7Y19MlVXPLtenFipsfqR9Dz+YM4=; h=In-Reply-To:References:Subject:From:Cc:To:Date:From; b=QtT1U6O0JVdEkWREGobtHZUPwRol1SATKWy0EPGBHuEaXkxfISISnMSKYD9wskfIE EVacZcGpuh+mZ+qWqMGlF+rdda8qETP2qmPLQyckTG4lDsYv5Y08lpwxZBB3WLQ+Ui /WeTNXF/5BVMSkINYM0MRupJLYrXJ+1cK4Bpq2c+20VhSnwJchvrFM2KPJo3M2ilaE /KtNSSTowXM59VW1/wQEQrYfxnSvveRplsgVnYuDilLtC9Ke+M76p9gEH8Wisc1His oM+Kmj7zYb3P8XCVqFfB6uHP6Ww8WuLIE6Uu9T5pM7J9bq0/bzqq2b4bSLSEdSrIEc e4ki9Pt2LUnmA== MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable In-Reply-To: References: <20201207164240.15436-1-jae.hyun.yoo@linux.intel.com> <20201207164240.15436-3-jae.hyun.yoo@linux.intel.com> Subject: Re: [PATCH 2/2] media: aspeed: fix clock handling logic From: Stephen Boyd To: Jae Hyun Yoo , Joel Stanley Date: Thu, 17 Dec 2020 02:46:33 -0800 Message-ID: <160820199393.1580929.9806429719720580479@swboyd.mtv.corp.google.com> User-Agent: alot/0.9.1 X-BeenThere: openbmc@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Development list for OpenBMC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-aspeed , Andrew Jeffery , Michael Turquette , Eddie James , OpenBMC Maillist , Hans Verkuil , Mauro Carvalho Chehab , linux-clk@vger.kernel.org, linux-media@vger.kernel.org Errors-To: openbmc-bounces+openbmc=archiver.kernel.org@lists.ozlabs.org Sender: "openbmc" Quoting Jae Hyun Yoo (2020-12-08 09:16:29) > Hi Joel, >=20 > On 12/7/2020 6:39 PM, Joel Stanley wrote: > > On Mon, 7 Dec 2020 at 16:33, Jae Hyun Yoo wrote: > >> > >> Video engine uses eclk and vclk for its clock sources and its reset > >> control is coupled with eclk so the current clock enabling sequence wo= rks > >> like below. > >> > >> Enable eclk > >> De-assert Video Engine reset > >> 10ms delay > >> Enable vclk > >=20 > > This is the case after " clk: ast2600: fix reset settings for eclk and > > vclk" is applied, correct? Without that patch applied the reset > > sequence is correct by accident for the 2600, but it will be wrong for > > the 2500? >=20 > Correct. Video Engine reset was coupled with eclk for AST2500 and vclk > for AST2600 so above sequence was observed only in AST2500. As you said, > AST2600 didn't make the issue by accident but the clk/reset pair should > be fixed by this patch series. So should the two patches be squashed together and go through the media tree?