Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp586149ybl; Wed, 21 Aug 2019 02:21:56 -0700 (PDT) X-Google-Smtp-Source: APXvYqyo/Gv2PrUR9x1r3ppNlruTO6A/BuB5i1BbfJTFkS7NelEUEb6OWgJDzrJOhUl+7qpv4wNA X-Received: by 2002:a17:902:9041:: with SMTP id w1mr33385085plz.132.1566379316445; Wed, 21 Aug 2019 02:21:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566379316; cv=none; d=google.com; s=arc-20160816; b=YMXxJ/W2k3vCmUcsdTTmtvM2RY0eONZYf/UAcrZuLYSjmBG0MRtx9T4UhyQ7Fvt1K/ wOVQ9ScKmKUdRB0rJ4ZX1Mevb/qViDbVFfRvJp10E5Fu5cAcCrU0TlGfNmEiapwRdA9K FPu0kiTmJvlmDHFWLZ5/uvLhYOrpKx83ZPIU5TMnEIAST47LEpLhdxshS54NgEDeKaYI zDfczN17/sTq8uQLDfEsEpE36quo/+74YmY1/XcGNmWIfAV6LLAo0Dqb8PLIVMw5pH1O 5z98N8k/97b+JhTbhJc2UPK0+RnauhwhAfzz9KmLEaPgN+sw/aYwx2YiBGAUEKvFCvkB rrOA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=7tEQ31WOSLuQ3JEBF9cV8gIJ36Fz5CZ1Zb7GBPfj32s=; b=RXFhnepObv7BpGjAi3eYHxDobbc4Q8zlrz4w9FJjlIuQMC/0G2G/BlLzBf+iEeLlp3 mL9v6PIb9FQKGR87rGICJRkEYsRiK+q4SqE6SXl2xAYHPcFkX/BYgcq6QLVoaBeP/yEn q+SeW2FR7RY/TeImj23Wm5Foga96WdMAyczloVgbknn1v1pPMCJLeHPZ2MWD1wlKud7g tW2vWdnkzlpkyiHQfvyDN06KlAxHtXLdKVQ4AvjtgAa7RqxhALsqIGdviEUob3+k4LKk K7gqnm8QpkWThStLs9tPIpMAgBbjoUQwvq6tErsWh5XHcBaOAd9JI4L5E9PoSP2QmczA 0kqQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=NmFr7nxD; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k8si13962473pgt.548.2019.08.21.02.21.41; Wed, 21 Aug 2019 02:21:56 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=NmFr7nxD; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726926AbfHUJTU (ORCPT + 99 others); Wed, 21 Aug 2019 05:19:20 -0400 Received: from mail-lj1-f195.google.com ([209.85.208.195]:39638 "EHLO mail-lj1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726487AbfHUJTU (ORCPT ); Wed, 21 Aug 2019 05:19:20 -0400 Received: by mail-lj1-f195.google.com with SMTP id x4so1452853ljj.6 for ; Wed, 21 Aug 2019 02:19:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=7tEQ31WOSLuQ3JEBF9cV8gIJ36Fz5CZ1Zb7GBPfj32s=; b=NmFr7nxDxcBSv+uW4e7+vOU6sf2roLBf2V03NMTBhvA8HsbJuDjuF6SfhiqpB9nTHE fR+OaPMsCKLJ7NobySSrkj3ygxdF+UbQFTYp10jJwkYhe3u7d4VDj0SNJHOsgLX2bNKC UCj73zuWvfPcmvRIg1dGnFzky8Ud54Lzq3z0YH3+ZD4ZJgK6cC/hcUvBcrx3IpKzxFAW AKK+8ukGQkwMaiKxjiW91h3sMTIz5qNaUWdiQAU8rS+YGdVuRqv8VNXbaPlCyHFApjMG 6rRc9FbKry+rKOrUZtXHAYBymjAL11ozmQrBmF9WdBY2Z3QOKqPBC40ikCNvC/qqv5Gf RU5w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=7tEQ31WOSLuQ3JEBF9cV8gIJ36Fz5CZ1Zb7GBPfj32s=; b=CKzN3cbd457CneMzWNkR8JBeshAtmZwoeqfofifa4yt8FuaE0bbx9/FL+5PACEzRhP W88C5stMYIez5eLaGB9qVsocDMZxSfJbncZHWXp5a6U2nu77Ctpq6mGVU/moPf7kl1uW ljKUSS8UrccchPcDxnIqAtAE5jrJIddyVLkU3dRthgjZouBMW5NGcYgviuPMiByrN2bm lPA6jr3rKcyo5WEm5dcioSsw5sHJpTN64zNqEp3IgL/Giq2x2ySfcFgpvAoIQxpw5wF7 uk5Z73YlpihtaamxMwhCPTEfal8I8DisyUes5GPQyS/IKUKjciYoJ3ce6DWEHizNYxp/ aRpA== X-Gm-Message-State: APjAAAUEAfWxczibsTgn7aiuQEy6ePHzFz2ulDH06+UPTfYYV+Rc3CqO 8RuBoGE3BYuF4jg2eXfa2fJNQz60qQ9KuG9mVYo= X-Received: by 2002:a2e:5bc6:: with SMTP id m67mr15204586lje.53.1566379158109; Wed, 21 Aug 2019 02:19:18 -0700 (PDT) MIME-Version: 1.0 References: <20190814060854.26345-1-codekipper@gmail.com> <20190814060854.26345-10-codekipper@gmail.com> In-Reply-To: <20190814060854.26345-10-codekipper@gmail.com> From: Code Kipper Date: Wed, 21 Aug 2019 11:19:05 +0200 Message-ID: Subject: Re: [PATCH v5 09/15] clk: sunxi-ng: h6: Allow I2S to change parent rate To: Maxime Ripard , Chen-Yu Tsai , linux-sunxi Cc: linux-arm-kernel , Liam Girdwood , Mark Brown , linux-kernel , Linux-ALSA , "Andrea Venturi (pers)" , Jernej Skrabec Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 14 Aug 2019 at 08:09, wrote: > > From: Jernej Skrabec > > I2S doesn't work if parent rate couldn't be change. Difference between > wanted and actual rate is too big. > > Fix this by adding CLK_SET_RATE_PARENT flag to I2S clocks. > > Signed-off-by: Jernej Skrabec Signed-off-by: Marcus Cooper > --- > drivers/clk/sunxi-ng/ccu-sun50i-h6.c | 8 ++++---- > 1 file changed, 4 insertions(+), 4 deletions(-) > > diff --git a/drivers/clk/sunxi-ng/ccu-sun50i-h6.c b/drivers/clk/sunxi-ng/ccu-sun50i-h6.c > index aebef4af9861..d89353a3cdec 100644 > --- a/drivers/clk/sunxi-ng/ccu-sun50i-h6.c > +++ b/drivers/clk/sunxi-ng/ccu-sun50i-h6.c > @@ -505,7 +505,7 @@ static struct ccu_div i2s3_clk = { > .hw.init = CLK_HW_INIT_PARENTS("i2s3", > audio_parents, > &ccu_div_ops, > - 0), > + CLK_SET_RATE_PARENT), > }, > }; > > @@ -518,7 +518,7 @@ static struct ccu_div i2s0_clk = { > .hw.init = CLK_HW_INIT_PARENTS("i2s0", > audio_parents, > &ccu_div_ops, > - 0), > + CLK_SET_RATE_PARENT), > }, > }; > > @@ -531,7 +531,7 @@ static struct ccu_div i2s1_clk = { > .hw.init = CLK_HW_INIT_PARENTS("i2s1", > audio_parents, > &ccu_div_ops, > - 0), > + CLK_SET_RATE_PARENT), > }, > }; > > @@ -544,7 +544,7 @@ static struct ccu_div i2s2_clk = { > .hw.init = CLK_HW_INIT_PARENTS("i2s2", > audio_parents, > &ccu_div_ops, > - 0), > + CLK_SET_RATE_PARENT), > }, > }; > > -- > 2.22.0 >