Message ID | 20230126083222.374243-5-herve.codina@bootlin.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp165601wrn; Thu, 26 Jan 2023 00:34:32 -0800 (PST) X-Google-Smtp-Source: AK7set9JXNHEQnu7LGzlKB8HANHcnUubajjLIEWFuwWjT+sRICtk0UzLJm/nQ5QZi0yqPYrCPNqc X-Received: by 2002:a17:902:cece:b0:196:3d28:a8e6 with SMTP id d14-20020a170902cece00b001963d28a8e6mr2239730plg.10.1674722071844; Thu, 26 Jan 2023 00:34:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674722071; cv=none; d=google.com; s=arc-20160816; b=X5EaM+iT4mOBnYknxeuVQOiNGCbQeRKaoiUdfLno8vSIXaSm9NjWULqBmjDYX3TSVG dHz1D7M4jUDGs4Hl9aGuqeL+QXTbFbc8K4fGlfAxr1j/LgECMerXq3FBaqHiC8ngCXSy rg02bhVSXr3x8sLHs0qwprENljAUkTLmT2BX34TCbG/jAzuSf6zazfKvQRNFWeiRYU1m NaALWFSOZW/yS4e7ak8I84LIbZ2GUMj+UIGjc9bX3eI6iVyVnNfq4uRe6NSNpuSqbh3H GRPgWJ4d1XBkFOTFJF+kMRtTfuD7AqUZQEStCFIRBmJHcSa7ccf/n//gT+SzFxR9qFN/ ZJwg== 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=pxqdjDxj+dSuZq8ZqJobR1k8rKHbGqUaRE2STt7+3so=; b=oxC6eP2wKYWQUbm257LqFgJt6HgWIdCpNx5CiSeeqFYkiUWUefHbCjUZxsmdefD6K8 73ipxyxnXg5KwMaYWKjPS/zogkZqjIRe2HhStoG0DTY38PgooFT/use+HfyRIsRWymjw 7ZRF2835sHWNJRf4oaZexbyn/eXXT+BiyaZBes6bGY8OgC/4PrAj0bAPzkvYha3sHR30 knEpz2NfvOJFT5+bmiXsp2qjCan1pY4KauKscChaDUNQ9oBrLnLiKIUR4db4jSsTp9wp VlSxCEtxjqQATG8LINpLc3DheV4lUmToX4nK9ifw35ebb4ZsK/imwk68JNByePy3ejm2 Soaw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=Bcs5vXdX; 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 p20-20020a170902a41400b0018c35376fdcsi1000781plq.78.2023.01.26.00.34.19; Thu, 26 Jan 2023 00:34:31 -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=Bcs5vXdX; 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 S236401AbjAZIdB (ORCPT <rfc822;lekhanya01809@gmail.com> + 99 others); Thu, 26 Jan 2023 03:33:01 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51924 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236221AbjAZIcu (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Thu, 26 Jan 2023 03:32:50 -0500 Received: from relay4-d.mail.gandi.net (relay4-d.mail.gandi.net [IPv6:2001:4b98:dc4:8::224]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 72A7CB469; Thu, 26 Jan 2023 00:32:43 -0800 (PST) Received: (Authenticated sender: herve.codina@bootlin.com) by mail.gandi.net (Postfix) with ESMTPA id 4740DE0004; Thu, 26 Jan 2023 08:32:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1674721961; 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=pxqdjDxj+dSuZq8ZqJobR1k8rKHbGqUaRE2STt7+3so=; b=Bcs5vXdXgmDlcKswjQ26G/x125YbpvLFxJzkVXefPAN2k+efXzTKhgINu0YbKktdJMfH9M kccP3WN8re+wjaCVsoxOR2Vv6IddU/Hi8cMabAh+Wn946dwz9hjY5k/OQFTlCjMspOReoN JzBzBQgdrHw/gBqgBulUYbJo7Eguq3NFQsiAIi9BzbHr/etSQnkoy2qhMNeJxdtiEIkGM+ VhBPf70FV868LOm4a7NWfmSAwAJmzWhE3KS06+Ikyont/ia3OmDAu0govbUQE59HeafOpz eXKULmxCKtZ3mmbcDBNrWh0wj/VN+VER8fuqaNKSElvCbTKr4reYockzoGOzmA== 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 v4 04/10] powerpc/8xx: Use a larger CPM1 command check mask Date: Thu, 26 Jan 2023 09:32:16 +0100 Message-Id: <20230126083222.374243-5-herve.codina@bootlin.com> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20230126083222.374243-1-herve.codina@bootlin.com> References: <20230126083222.374243-1-herve.codina@bootlin.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,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?1756073370923156232?= X-GMAIL-MSGID: =?utf-8?q?1756073370923156232?= |
Series |
Add the PowerQUICC audio support using the QMC
|
|
Commit Message
Herve Codina
Jan. 26, 2023, 8:32 a.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> --- arch/powerpc/platforms/8xx/cpm1.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Comments
Herve Codina <herve.codina@bootlin.com> writes: > 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> > --- > arch/powerpc/platforms/8xx/cpm1.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) Acked-by: Michael Ellerman <mpe@ellerman.id.au> (powerpc) cheers > 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); > -- > 2.39.0
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);