From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755567AbbI2Okg (ORCPT ); Tue, 29 Sep 2015 10:40:36 -0400 Received: from smtpbg299.qq.com ([184.105.67.99]:33354 "EHLO smtpbg299.qq.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755129AbbI2OkE (ORCPT ); Tue, 29 Sep 2015 10:40:04 -0400 X-QQ-mid: bizesmtp4t1443537541t725t259 X-QQ-SSF: 01100000008000F0FG42B00A0000000 X-QQ-FEAT: p7i6Fud2twRHI/FucMGiIdjkkM7rBfC+X2FMFI+Pj3VZ/wH8rNDII3E/x7JvG 0pyRjOOVxh1+3GYUGEQCE/iHYws1TRn4AKKChzLvzYucdTM1h0hz2/GG/E9hKaCe1p46x9a MvJSMOUDMpBZXkm/JUAkpIG5zczgkowkC5QRMDO30p9j/LDexs7WX20bW2ru7F6dttl2K8c VCFQlNSZ1fRLMGh9slAemNSX9XLfB8H1iL3TYztCh/7OdeYeSQFIyWC+bzYyiVzw= X-QQ-GoodBg: 0 From: "yitian" To: , , , , , Cc: , , Subject: [RESEND PATCH 1/1] ASoC: dwc: correct irq clear method Date: Tue, 29 Sep 2015 22:39:00 +0800 Message-ID: <006301d0fac4$94eb5890$bec209b0$@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: AdD6xHdHx1tfU5tdQHu9PyY8EXg5xA== Content-Language: zh-cn X-QQ-SENDSIZE: 520 X-QQ-FName: 19130788D87D468F836E3E5956F4FFA8 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