From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756231AbbI1GVZ (ORCPT ); Mon, 28 Sep 2015 02:21:25 -0400 Received: from smtpbg299.qq.com ([184.105.67.99]:36358 "EHLO smtpbg299.qq.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751303AbbI1GVX (ORCPT ); Mon, 28 Sep 2015 02:21:23 -0400 X-QQ-mid: bizesmtp5t1443421223t962t320 X-QQ-SSF: 01100000002000F0FF42000A0000000 X-QQ-FEAT: PML9g4LxpBrf/mdCv/DjPM1aIL5xvfVxD/EU7l+IHZC7+pl6uwZfG9l5OVadK MllZULGnwjvUxglat8Y/pS/pyFoSv0NlHg+aaQHpaQU8bEv3eArBZ61+AypcMvcC8OvzWo1 Fro+p4gNfG6qAzL/6nwa/pHJEswirWu4n52Rtvs7wvCoUJANyS0bcFMGHfNYLcvJ+eWGNab 2gFOw1391ftmvUr0PihPvvEoovXbPldMLmgSmte29o+iRYv0eCgFFkeMp/ujI7lGqB5EcDL APxA== X-QQ-GoodBg: 0 From: "yitian" To: , , , , , Cc: , , Subject: [PATCH 1/1] ASoc: dwc: correct irq clear method Date: Mon, 28 Sep 2015 14:20:22 +0800 Message-ID: <035301d0f9b5$c22cff30$4686fd90$@tangramtek.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Outlook 15.0 Thread-Index: AdD5tSfnpsJ8NtQJRiuSp7RZgFqEUw== Content-Language: zh-cn X-QQ-SENDSIZE: 520 X-QQ-FName: 07211515F6834FFDAF40DFB08E3F2E9C X-QQ-LocalIP: 127.0.0.1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org from Designware I2S datasheet, irq is cleared by reading from TOR/ROR registers, rather than by writing into them. Signed-off-by: Yitian Bu --- sound/soc/dwc/designware_i2s.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sound/soc/dwc/designware_i2s.c b/sound/soc/dwc/designware_i2s.c index a3e97b4..0d28e3b 100644 --- a/sound/soc/dwc/designware_i2s.c +++ b/sound/soc/dwc/designware_i2s.c @@ -131,10 +131,10 @@ static inline void i2s_clear_irqs(struct dw_i2s_dev *dev, u32 stream) if (stream == SNDRV_PCM_STREAM_PLAYBACK) { for (i = 0; i < 4; i++) - i2s_write_reg(dev->i2s_base, TOR(i), 0); + i2s_read_reg(dev->i2s_base, TOR(i)); } else { for (i = 0; i < 4; i++) - i2s_write_reg(dev->i2s_base, ROR(i), 0); + i2s_read_reg(dev->i2s_base, ROR(i)); } } -- 1.7.12.4