Message ID | 20230306161754.89146-5-herve.codina@bootlin.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp1957866wrd; Mon, 6 Mar 2023 09:06:37 -0800 (PST) X-Google-Smtp-Source: AK7set9njuvceVOLYsLoq2LFy2Io9MNtXn1lqLj9dDUF/1aOPySDBNMPfhHHUX595mbwLxDTlh3c X-Received: by 2002:a17:907:1ca3:b0:8ea:2055:4f1b with SMTP id nb35-20020a1709071ca300b008ea20554f1bmr14857079ejc.24.1678122397824; Mon, 06 Mar 2023 09:06:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1678122397; cv=none; d=google.com; s=arc-20160816; b=RDLBDgLmI9X3AAdOFsvebfirfQCCr2p5FPh8UzrraCLBa1Q7f2cxXeeazTBmRCe2e+ D8OQ0sj0HQOaKRel6f7aIWA3XagOGS8vcLcca+KrYprVEu6Rq5t30Z2ir7WGtULvwyNG yDulnqTcIwXsvU5vDz+29K+FPho+HtJjATDuV72PtNWCu1LNhYCwiE0BVpqUPGiUOX+L DV0mmYUr8dxkhqX6Lu2KmEIsDbRtns08sj1T4T2pmwAlxRc9HN+PLw+mrBrqQvj8whBy a5gmi4BpK4697snlR4M0F8AUyQl816TpiIXtJJUft/nsOxBnTnBR/384Xc04Wuo7Zsg+ nzjw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=y2V/LfVO+mZGhkYaRuIafYLqj3phD1Eeb7MH4X9WAQY=; b=Ku97wF0zn3oMACm7EubexkzYgYsMKSLGmWHruXoTeB2hH8pW7ho5bHRE556M5NtxbS ToRvfUq4w6zW700Wjp0ZDjJ4RqkaKrK8mtXPxJUpTFWflUKSWUtu4RjVm2otCLD/WUGX fg5QYg9JeJk/lIVyw2W7DJ/F72u8ntC053rbG3Vw6LQJtm62LBreAY79K6KHazgQdMk0 WF9hUXgteZBGGPoNwoF4rTqDa+ENOvivn+4v+pGYJ/Uu7L6QaodZHdasE9swD9rpArBA Cyfq5h/rbtudRR501X9oPqzRocXYOflgSUGPqcNPAoLeUCrYi8oTnG9XaaKy1cytWzJ6 tIMQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=RbaE1W5z; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id kv7-20020a17090778c700b008d3248226besi9124079ejc.554.2023.03.06.09.06.12; Mon, 06 Mar 2023 09:06:37 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=RbaE1W5z; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230061AbjCFQ7w (ORCPT <rfc822;toshivichauhan@gmail.com> + 99 others); Mon, 6 Mar 2023 11:59:52 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36098 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230310AbjCFQ7s (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Mon, 6 Mar 2023 11:59:48 -0500 X-Greylist: delayed 2114 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Mon, 06 Mar 2023 08:59:22 PST Received: from mslow1.mail.gandi.net (mslow1.mail.gandi.net [217.70.178.240]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B57E015160; Mon, 6 Mar 2023 08:59:22 -0800 (PST) Received: from relay1-d.mail.gandi.net (unknown [217.70.183.193]) by mslow1.mail.gandi.net (Postfix) with ESMTP id DAD5ACC670; Mon, 6 Mar 2023 16:20:22 +0000 (UTC) Received: (Authenticated sender: herve.codina@bootlin.com) by mail.gandi.net (Postfix) with ESMTPA id CBEF7240015; Mon, 6 Mar 2023 16:18:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1678119498; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=y2V/LfVO+mZGhkYaRuIafYLqj3phD1Eeb7MH4X9WAQY=; b=RbaE1W5z0A7sOdo/DL1hDNtNXuAAhIWxbbYVemVr4kNKt3HjIlc80E7XjEHzmvSNF/FK9A UvB24A4kDqjHW3/zDWnzb3WKv9S5ONNeA9JBUHd5pB3J7NFbgXJqyNKxPyT9lmrp4Ee3u2 vgVRbAiV7Qa+l+34oMQi8sIpCeCcuxAO2qv3DK36Z6JeptglYRVwtkQCIPXYTFPSJZStlv 3kh7hk0SjL8+6h6XmCdWCrYLg/gVvadd3jFE2c98W3MXgyu7u7Yn4TVP9uDOTYAg7TMVxu kcgLpfNKKalaIhGj8z1v1Ls8JW+ZLe+dRZ19zDZuSkZq6VseCYwyM6/50aMMrA== From: Herve Codina <herve.codina@bootlin.com> To: Herve Codina <herve.codina@bootlin.com>, Li Yang <leoyang.li@nxp.com>, Rob Herring <robh+dt@kernel.org>, Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>, Liam Girdwood <lgirdwood@gmail.com>, Mark Brown <broonie@kernel.org>, Christophe Leroy <christophe.leroy@csgroup.eu>, Michael Ellerman <mpe@ellerman.id.au>, Nicholas Piggin <npiggin@gmail.com>, Qiang Zhao <qiang.zhao@nxp.com>, Jaroslav Kysela <perex@perex.cz>, Takashi Iwai <tiwai@suse.com>, Shengjiu Wang <shengjiu.wang@gmail.com>, Xiubo Li <Xiubo.Lee@gmail.com>, Fabio Estevam <festevam@gmail.com>, Nicolin Chen <nicoleotsuka@gmail.com> Cc: linuxppc-dev@lists.ozlabs.org, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, alsa-devel@alsa-project.org, Thomas Petazzoni <thomas.petazzoni@bootlin.com> Subject: [PATCH v7 04/10] powerpc/8xx: Use a larger CPM1 command check mask Date: Mon, 6 Mar 2023 17:17:48 +0100 Message-Id: <20230306161754.89146-5-herve.codina@bootlin.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230306161754.89146-1-herve.codina@bootlin.com> References: <20230306161754.89146-1-herve.codina@bootlin.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE, SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1759638871810412744?= X-GMAIL-MSGID: =?utf-8?q?1759638871810412744?= |
Series |
Add the PowerQUICC audio support using the QMC
|
|
Commit Message
Herve Codina
March 6, 2023, 4:17 p.m. UTC
The CPM1 command mask is defined for use with the standard CPM1 command register as described in the user's manual: 0 |1 3|4 7|8 11|12 14| 15| RST| - |OPCODE|CH_NUM| - |FLG| In the QMC extension the CPM1 command register is redefined (QMC supplement user's manuel) with the following mapping: 0 |1 3|4 7|8 13|14| 15| RST|QMC OPCODE| 1110|CHANNEL_NUMBER| -|FLG| Extend the check command mask in order to support both the standard CH_NUM field and the QMC extension CHANNEL_NUMBER field. Signed-off-by: Herve Codina <herve.codina@bootlin.com> Acked-by: Christophe Leroy <christophe.leroy@csgroup.eu> Acked-by: Michael Ellerman <mpe@ellerman.id.au> --- arch/powerpc/platforms/8xx/cpm1.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/powerpc/platforms/8xx/cpm1.c b/arch/powerpc/platforms/8xx/cpm1.c index 8ef1f4392086..6b828b9f90d9 100644 --- a/arch/powerpc/platforms/8xx/cpm1.c +++ b/arch/powerpc/platforms/8xx/cpm1.c @@ -100,7 +100,7 @@ int cpm_command(u32 command, u8 opcode) int i, ret; unsigned long flags; - if (command & 0xffffff0f) + if (command & 0xffffff03) return -EINVAL; spin_lock_irqsave(&cmd_lock, flags);