Received: by 10.213.65.68 with SMTP id h4csp1797992imn; Mon, 19 Mar 2018 13:33:15 -0700 (PDT) X-Google-Smtp-Source: AG47ELsP602jxZlMjUyFEY7gwCoP8Ja4EmW7Q76ax41trq0y3TcZ39BxY1V3uL5xyzO9S7SVpqgp X-Received: by 10.99.151.74 with SMTP id d10mr10284317pgo.219.1521491595123; Mon, 19 Mar 2018 13:33:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521491595; cv=none; d=google.com; s=arc-20160816; b=WpHhD7y3DdnUZYmh3BD9gX9gD4erN6qouxqU2ii2WeWpEbw06MotyXFRYTdijS+GlZ 2tefUboWO3Gej+IabnTOn3rGH8EJ5ZH54/E6mwy3apuiKsjpz8xfUUsKE3aUQW4X+waY pmmySrywIOZIBqKl4w5s19XUy71jFf791BXJM5p+vzgXrApy2xESGDNUrr/E7AtaIAoO Kxxzc6N5mOlM87MzhjCaZpQbAj0CeOASvnqOcUo/Y4DRnI5xHIb41gjJSOabS/O4U8Ml hczRo3fkiYk8Sd75//CmHW6+N+vQzyH8xVQLk4SfIo3WiMIvU5cT9F604WpzkyAnvoUl kCrg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=UR4+WDHq2nDa7ra4ii5A8aiE2yjimS6IC8c41JmUhRU=; b=hphHNIIh+7K87dY5jd9of3OXCVOwruPWOReH1yG/rEwVnjH7pNW2lATvFE9RHTDV2w reTIHQVtq1RJ2taJF2ax8xc1GTvJbyALWxbJbi+N4esBOOkPu7taKYDEE74tTDiRp2NG +WI0oRuADyWt1OM7mBYJYdye7h2fAIlhpovLLVHbjOT3dnyvb0VYYDBoWnQOJkJ9RR4s CDQaf1vvKEnaRKzm9zv4Ghj1fWdPdHMAX5FqL0aN/dJUt2X3mTmoF1tozLIIAfWnfSA7 /ZDBqiu0YNcpJ0t5I+D7u23akkKEVxllvHwjK6afIFmdfMlC0IFXuJ53YV8YVJ91B/wj UKQQ== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m39-v6si48555plg.151.2018.03.19.13.32.30; Mon, 19 Mar 2018 13:33:15 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S971303AbeCSU3O (ORCPT + 99 others); Mon, 19 Mar 2018 16:29:14 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:43026 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1030464AbeCSSNL (ORCPT ); Mon, 19 Mar 2018 14:13:11 -0400 Received: from localhost (LFbn-1-12247-202.w90-92.abo.wanadoo.fr [90.92.61.202]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 4BA4111D6; Mon, 19 Mar 2018 18:13:10 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Hiroyuki Yokoyama , Kuninori Morimoto , Mark Brown , Sasha Levin Subject: [PATCH 4.4 031/134] ASoC: rcar: ssi: dont set SSICR.CKDV = 000 with SSIWSR.CONT Date: Mon, 19 Mar 2018 19:05:14 +0100 Message-Id: <20180319171853.784248889@linuxfoundation.org> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180319171849.024066323@linuxfoundation.org> References: <20180319171849.024066323@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 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 4.4-stable review patch. If anyone has any objections, please let me know. ------------------ From: Kuninori Morimoto [ Upstream commit 6b8530cc056efd4a11b034ca5b1e9f7e9563f553 ] R-Car Datasheet is indicating "SSICR.CKDV = 000 is invalid when SSIWSR.WS_MODE = 1 or SSIWSR.CONT = 1". Current driver will set CONT, thus, we shouldn't use CKDV = 000. This patch fixup it. Reported-by: Hiroyuki Yokoyama Signed-off-by: Kuninori Morimoto Tested-by: Hiroyuki Yokoyama Signed-off-by: Mark Brown Signed-off-by: Sasha Levin Signed-off-by: Greg Kroah-Hartman --- sound/soc/sh/rcar/ssi.c | 9 +++++++++ 1 file changed, 9 insertions(+) --- a/sound/soc/sh/rcar/ssi.c +++ b/sound/soc/sh/rcar/ssi.c @@ -143,6 +143,15 @@ static int rsnd_ssi_master_clk_start(str for (j = 0; j < ARRAY_SIZE(ssi_clk_mul_table); j++) { /* + * It will set SSIWSR.CONT here, but SSICR.CKDV = 000 + * with it is not allowed. (SSIWSR.WS_MODE with + * SSICR.CKDV = 000 is not allowed either). + * Skip it. See SSICR.CKDV + */ + if (j == 0) + continue; + + /* * this driver is assuming that * system word is 64fs (= 2 x 32bit) * see rsnd_ssi_init()