Received: by 2002:ac0:8c9a:0:0:0:0:0 with SMTP id r26csp4465235ima; Mon, 4 Feb 2019 17:35:59 -0800 (PST) X-Google-Smtp-Source: AHgI3IZqZFxX+WAVTsnI0k9zO+Cj9QbbdXtz13OfFWd/hTW5uaVg8+j7szVemymiAm5VfFWsa6WC X-Received: by 2002:a17:902:1745:: with SMTP id i63mr2390543pli.145.1549330559638; Mon, 04 Feb 2019 17:35:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549330559; cv=none; d=google.com; s=arc-20160816; b=DbFmGuLQ4wmBRkQTliH5spTmwsGfLqk9RsIIwkpEo/+Wvy+P/gotTDB9bX9+CT0tav k7zKJrdQMT1S++xrdZ+SgFUrHB1FJqkrYO107ll7UdLzskKBp5Ee36OzrRSYhpd6mSPe AnQxtBv8kXzuhXG3WpSsN2oIuh2F1BFFP2wvy0pyrmjjOPEBanY7ujdlN/CP8IaAzwkU fcU0uY13icxT5wax+DZ2N3Q6iIg0rHIW9YGidwmCUXrxon3xEX515uEp5KRqWI6tMWR4 VQXWPHZALOukHS0uAYQVo8cQCJVOkMdnKxy2gOX9v27JcWfTJogdwkIep2b8zS50bTzC unNQ== 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:subject:cc:to:from:message-id:date; bh=BRjoRYGI1EB42iQdZCgkzJXgwK3Ey+duDOJvDFlY0ok=; b=iCXRlOoLWLJHL+VAznCuPAb+HHjYEW63CunK/NiIUlPkp5EE6oesnffrDjLLsN334z Oq5T6jmsoWVkF/dUJSpncBq/siBsdWGp5+DwOvl+0ioaajH2ciYYClU+FK8M66SorMEx PvWDaacuR9s3WFYnWUreMefyDVfcJmavYz/xvPvsMfhorq4MlsF4lOtBWjYZMbspNSmu uhE1/qVxS4Xr/fx0CUAGyUmohx0sPfM8ur2tvESHM0+GzjV2l3I+VV9PbQTd3piPQu54 3RzT2yt9VYh0WNezwAtEB1zTCLY+rM1mv3aAJu6tJNprdDzu2/kc5QOeZv/H87fShZhU ryBw== 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 f4si1704604plf.370.2019.02.04.17.35.43; Mon, 04 Feb 2019 17:35:59 -0800 (PST) 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 S1727755AbfBEAaY (ORCPT + 99 others); Mon, 4 Feb 2019 19:30:24 -0500 Received: from relmlor2.renesas.com ([210.160.252.172]:15868 "EHLO relmlie6.idc.renesas.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726946AbfBEAaY (ORCPT ); Mon, 4 Feb 2019 19:30:24 -0500 Date: 05 Feb 2019 09:30:22 +0900 X-IronPort-AV: E=Sophos;i="5.56,560,1539615600"; d="scan'208";a="6834278" Received: from unknown (HELO relmlir5.idc.renesas.com) ([10.200.68.151]) by relmlie6.idc.renesas.com with ESMTP; 05 Feb 2019 09:30:22 +0900 Received: from morimoto-PC.renesas.com (unknown [10.166.18.140]) by relmlir5.idc.renesas.com (Postfix) with ESMTP id 4956A401D56E; Tue, 5 Feb 2019 09:30:22 +0900 (JST) Message-ID: <87lg2vjde7.wl-kuninori.morimoto.gx@renesas.com> From: Kuninori Morimoto To: Jiada Wang Cc: , , , , , , Subject: Re: [PATCH] ASoC: rsnd: ssiu: correct shift bit for ssiu9 In-Reply-To: <20190204134105.15243-1-jiada_wang@mentor.com> References: <20190204134105.15243-1-jiada_wang@mentor.com> User-Agent: Wanderlust/2.15.9 Emacs/24.5 Mule/6.0 MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Jiada > Currently "0xf << 36" is used to > clear SSIU-9 internal buffer state, which overflows 32-bit value > according to user reference manual, it is always bit4 ~ bit7 > of SSI_SYS_STATUS[1,3,5,7] registers indicate > SSIU-9's buffer state, so "0xf << 4" should be used. > > This patch fix incorrect shifting issue in SSIU-9 case > > Fixes: commit b7169ddea2f2 ("ASoC: rsnd: remove RSND_REG_ from rsnd_reg") > > Signed-off-by: Jiada Wang > --- Thank you for your patch Acked-by: Kuninori Morimoto > sound/soc/sh/rcar/ssiu.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/sound/soc/sh/rcar/ssiu.c b/sound/soc/sh/rcar/ssiu.c > index 2f3085a54eba..b11677489a5e 100644 > --- a/sound/soc/sh/rcar/ssiu.c > +++ b/sound/soc/sh/rcar/ssiu.c > @@ -79,7 +79,7 @@ static int rsnd_ssiu_init(struct rsnd_mod *mod, > break; > case 9: > for (i = 0; i < 4; i++) > - rsnd_mod_write(mod, SSI_SYS_STATUS((i * 2) + 1), 0xf << (id * 4)); > + rsnd_mod_write(mod, SSI_SYS_STATUS((i * 2) + 1), 0xf << 4); > break; > } > > -- > 2.19.2 >