Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp2605080pxb; Tue, 24 Aug 2021 03:18:14 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxIHsx8Nww6V8ZdxHcgYBME0cltnS0mUGCPxIUTSRC/cr+yOz9BgCOBJzmAHjvU1ju6yRqE X-Received: by 2002:aa7:d592:: with SMTP id r18mr7019560edq.317.1629800294664; Tue, 24 Aug 2021 03:18:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629800294; cv=none; d=google.com; s=arc-20160816; b=PoiQAdY/1c9XkGEk6zgppA5fMqNPiMaS1eN44mJ5UEK3f5cwXK5AI2NOm1J8A5drHB YG5e3JIvFtNDJWeVerBkI8nsMuL2ZAN6Aqtt9UcSpwZIK/a3iw6eZlJ4JNKbT7OE5tf8 FkdfrWyDUyS86ZAqgy7bYSQsM6dEBlV7ibtPBc0PdUGPZ4dUdpl2HwSQsjC1h3FDEKjM ZwReQ9YREbgAeAkujy/zGhq/YHU988NJVU4sHyxeIzHtCUStKRwNGt3bKGwokLmBxM32 CT6w3lB+ne+ppmDtxEOdYAvu57QBzTPPOWvVXeiExlIKsg+TFsQ0rIFnbvVkt+skmFT9 9pjw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:in-reply-to:message-id:date:subject :cc:to:from; bh=WgrEOb2iXhCgnEDy2fQTlpfakfIjV71iNepeiBkIB/A=; b=G4I6sWlY1G3YFMdAjbHRg0SU8MNItZZsImktmnx4v4dglEnVP75sg5gmEyjaRY+tAY IE6X213aYF7gah5WbIEsUilrcwgj8WeHNEXHSXp6NjBvKOEwNAKwYDQFDuQMSKgktK00 P7Od+tzNxpqpztccC43XAuA3irpMgLR0x8LMSAX79Xf5p+uPO5X+4UYl79D8AG//ntLd 79XzMsdTvncbcZxhHEUABijszu/6FyjR7F17+5ch4KSsF6w7HlIylz2I/y1SKMWPMtaJ duHddNrDJgshmhkR6CEZo8idqXlZzeJ3+BH7c64uaFEi3dFADqTxRAqh/EwcMPI5Uaeg TQKw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n11si17014452edt.458.2021.08.24.03.17.51; Tue, 24 Aug 2021 03:18:14 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236033AbhHXKRP (ORCPT + 99 others); Tue, 24 Aug 2021 06:17:15 -0400 Received: from lucky1.263xmail.com ([211.157.147.130]:53512 "EHLO lucky1.263xmail.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235808AbhHXKRN (ORCPT ); Tue, 24 Aug 2021 06:17:13 -0400 Received: from localhost (unknown [192.168.167.235]) by lucky1.263xmail.com (Postfix) with ESMTP id 7E506D76D2; Tue, 24 Aug 2021 18:16:16 +0800 (CST) X-MAIL-GRAY: 0 X-MAIL-DELIVERY: 1 X-ADDR-CHECKED4: 1 X-SKE-CHECKED: 1 X-ANTISPAM-LEVEL: 2 Received: from localhost.localdomain (unknown [58.22.7.114]) by smtp.263.net (postfix) whith ESMTP id P32763T139760989173504S1629800174340042_; Tue, 24 Aug 2021 18:16:16 +0800 (CST) X-IP-DOMAINF: 1 X-UNIQUE-TAG: X-RL-SENDER: sugar.zhang@rock-chips.com X-SENDER: zxg@rock-chips.com X-LOGIN-NAME: sugar.zhang@rock-chips.com X-FST-TO: broonie@kernel.org X-RCPT-COUNT: 10 X-SENDER-IP: 58.22.7.114 X-ATTACHMENT-NUM: 0 X-System-Flag: 0 From: Sugar Zhang To: broonie@kernel.org, heiko@sntech.de Cc: linux-rockchip@lists.infradead.org, Sugar Zhang , Liam Girdwood , Jaroslav Kysela , Takashi Iwai , alsa-devel@alsa-project.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH v1 1/4] ASoC: rockchip: spdif: Mark SPDIF_SMPDR as volatile Date: Tue, 24 Aug 2021 18:15:59 +0800 Message-Id: <1629800162-12824-2-git-send-email-sugar.zhang@rock-chips.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1629800162-12824-1-git-send-email-sugar.zhang@rock-chips.com> References: <1629800162-12824-1-git-send-email-sugar.zhang@rock-chips.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch marks SPDIF_SMPDR as volatile to make it resaonable, which also requires marking it as readable, even though it isn't. Signed-off-by: Sugar Zhang --- sound/soc/rockchip/rockchip_spdif.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sound/soc/rockchip/rockchip_spdif.c b/sound/soc/rockchip/rockchip_spdif.c index 73226a4..8baa473 100644 --- a/sound/soc/rockchip/rockchip_spdif.c +++ b/sound/soc/rockchip/rockchip_spdif.c @@ -247,6 +247,7 @@ static bool rk_spdif_rd_reg(struct device *dev, unsigned int reg) case SPDIF_INTCR: case SPDIF_INTSR: case SPDIF_XFER: + case SPDIF_SMPDR: return true; default: return false; @@ -258,6 +259,7 @@ static bool rk_spdif_volatile_reg(struct device *dev, unsigned int reg) switch (reg) { case SPDIF_INTSR: case SPDIF_SDBLR: + case SPDIF_SMPDR: return true; default: return false; -- 2.7.4