Message ID | 20230217145645.1768659-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 s9csp930398wrn; Fri, 17 Feb 2023 06:58:40 -0800 (PST) X-Google-Smtp-Source: AK7set+JwzpCgZ71W2LoEajcWauowN2GYWnWk8d2a+tASHWCSWrv1KRoEZKlvsqCvMbDIrztwWVF X-Received: by 2002:a17:90a:194b:b0:230:7b4a:45dd with SMTP id 11-20020a17090a194b00b002307b4a45ddmr1302018pjh.20.1676645920023; Fri, 17 Feb 2023 06:58:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1676645920; cv=none; d=google.com; s=arc-20160816; b=ySTnYP6Bg+jsW3Zju5lc3mkf8Yyephr9xphiKGES2lQ8nAqNdmjf5rtHFT8YxSQ9PI 6TaV7nD+FNuXihmtwZofMRCIpcvcTwjfVmp673cLBeSLAblxIS+woafGcVhd5Lmg0qee HLnMq/FYlJH4i0Y2/ECdJTCRiQlGdbWyKgbdnnEb6kt8PcJTsfBbfUkoE5VKAXBy5iOF 7/HCtJAXNpIpCSxv42Tj6LyW+AK2uIwnXSMYZ5TDzFPOyR2dDeIPgW+X9Og33ZpyB92K YluOJZP4QxE0vX04bmcnq15BxIRdlPRgJdM4m2JDh7LRWCnu7LnWdE6o6Rx4TgAfktfO sZ8g== 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=G+UNtwo9Blm4QFpeMaX/6I3K3Hv55FXb27tDybz/bIc=; b=soJpjGxPg3e9QnAbsC5vY/yNkq48UlXPn+RauTUTy5kt76wcKYS/ElgtGwAP3ZWj0o rLM6T4xj+rLbkJtaFYaLKlJ32sMOPKm/WZH82aiTnLV/RmLJXTDUU1QfFC/V61qbguKP 6EW5422k2guDIQ2bYxSQAJhE4BNXVrfAWpZbWcgmtC3CRvx6LTu/mi326nY5rOgy32Hg ssqjrCPHc+GRDKUgYjsklwflNRBKQ44PZrG6zqmSuyWAzBVW55NQHWmyfPvlcur9CAjU Hu+GMFRL3tLMxwgJM8iItccVmnJ1ej0ra9IcI5VRgNg9KXyHA1HxRBSTM5dso6hHsgay Q2LQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=AsOMPDgE; 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 d6-20020a17090a3b0600b00233e50c1117si4604935pjc.71.2023.02.17.06.58.27; Fri, 17 Feb 2023 06:58:39 -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=AsOMPDgE; 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 S230185AbjBQO56 (ORCPT <rfc822;aimixsaka@gmail.com> + 99 others); Fri, 17 Feb 2023 09:57:58 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51730 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230138AbjBQO5g (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Fri, 17 Feb 2023 09:57:36 -0500 Received: from relay8-d.mail.gandi.net (relay8-d.mail.gandi.net [IPv6:2001:4b98:dc4:8::228]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 342C43C793; Fri, 17 Feb 2023 06:57:08 -0800 (PST) Received: (Authenticated sender: herve.codina@bootlin.com) by mail.gandi.net (Postfix) with ESMTPA id 880A71BF217; Fri, 17 Feb 2023 14:57:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1676645824; 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=G+UNtwo9Blm4QFpeMaX/6I3K3Hv55FXb27tDybz/bIc=; b=AsOMPDgE3WN1LS7viGVfjZzNw8qG9B8KZFwQ2x6lEgL3scEYC5GmRjj3WpdQl56tAPVLzl TWbMyGl6X0ZT/cmuDEUmxwqi1sPRol12EN0bYkf8wtSjtdKuM28Ut0GoPHjdJHHxEhNxqk 6ca0H4T1Ql/KO7eUHsingq9Qj13mhJJyUsHBzwZXH6zQWdKEwKhize1FikJaImjMM9SCWX emt3HefjQb8raf1uFoZWAtN/tfyIcSsDiFwYdTZs1ws4ujDKKGE6OPwAmXQ2BVXAU7PtSp HQcV0hGKdQFJ06yMeKZBkbwSYMz80gyg2/n9QS2b3Yo65q90doYvUReJQ4fk/A== 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 v6 04/10] powerpc/8xx: Use a larger CPM1 command check mask Date: Fri, 17 Feb 2023 15:56:39 +0100 Message-Id: <20230217145645.1768659-5-herve.codina@bootlin.com> X-Mailer: git-send-email 2.39.1 In-Reply-To: <20230217145645.1768659-1-herve.codina@bootlin.com> References: <20230217145645.1768659-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?1758090672298419100?= X-GMAIL-MSGID: =?utf-8?q?1758090672298419100?= |
Series |
Add the PowerQUICC audio support using the QMC
|
|
Commit Message
Herve Codina
Feb. 17, 2023, 2:56 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);