Message ID | 20230725092417.43706-7-herve.codina@bootlin.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9010:0:b0:3e4:2afc:c1 with SMTP id l16csp2346062vqg; Tue, 25 Jul 2023 02:30:44 -0700 (PDT) X-Google-Smtp-Source: APBJJlHWUW6vHLiZ7VT9iPOu9ncSJPdydoZOxfnvMb0er4oKc5fdT0fCJ6J0ZAA+xhs4svlXXlrY X-Received: by 2002:a19:6406:0:b0:4ec:9ef9:e3d with SMTP id y6-20020a196406000000b004ec9ef90e3dmr6436696lfb.26.1690277444602; Tue, 25 Jul 2023 02:30:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690277444; cv=none; d=google.com; s=arc-20160816; b=MewktvLtlls3KjXMz3xz3jRImYgC0/8XRF2nSyjNzgmw9Rz9iSUSeV/T2ZYYX4BnKp hSdaLAe05Zox+0gS/cBee//PhNwpPv9G1jw8xmlHqHfeAlSUHhq8q1r7IOTBAzJ5x2yM diQDnT+HV6iN/r/M38b4wr6FlUZloOSPAb4TkJFxm0U8TIncFzx3CIejGBhKZKcSsKXE bQBzdyz0jwxcMbkdQE2mJ+br3Je9m0m/JW4rJsCnFT4lGHQt7haVfYVYh2zpeWzSnWer E/EVvz5F6KK/mbrqZ2641MD2htD8UzBJCGdSO0JLT+qVouNNsV7SFNzhVX127BGTiEP4 t1pA== 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=rI/Z7cVYNpZ1HZTf8Lpn3jGtAUPL+KFds0KdvZs2xqU=; fh=j5z+1OhFuGBFoHpqsKfNW8PvbyYDiDyztgOSDrYZWKg=; b=EgoMIlZx+hK5Juu48qmID7xgZ0IeIf6e15AI/hjsNOzhvtpXmMao6fsW3CFUvl8VUt exM52e4Vz1n75swT16ov/eRrbo2kH+r1GCAvv4ra/wGiRxVsAP9sFg8hvOn+R8zF1Jni APcITgolg7Pu09+ZE+zDb6ITLmV9X86WGNcR20R8gvc2wGdPL+pqH+f43pA6dRmCueQi t2FR7Y/H9IAOdPOmWAT7moMXSDabnOI59VvH/zVl8N9NDMRmzOPnCqLeQ3jIPf43kxM3 dkEg8A4Ryd+jgI0HrCuXSCgq+2gxHojB86yDPzj874e8iwpIZk9PUKdX2dbf+Ru/I0tr c43g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=Hfqwuyfa; 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 bm9-20020a0564020b0900b00521a6decedfsi7857579edb.245.2023.07.25.02.30.20; Tue, 25 Jul 2023 02:30:44 -0700 (PDT) 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=Hfqwuyfa; 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 S231516AbjGYJ0A (ORCPT <rfc822;kloczko.tomasz@gmail.com> + 99 others); Tue, 25 Jul 2023 05:26:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33658 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232603AbjGYJZV (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Tue, 25 Jul 2023 05:25:21 -0400 Received: from relay2-d.mail.gandi.net (relay2-d.mail.gandi.net [217.70.183.194]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8F0F7172A; Tue, 25 Jul 2023 02:25:15 -0700 (PDT) Received: by mail.gandi.net (Postfix) with ESMTPA id 3FE8340006; Tue, 25 Jul 2023 09:25:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1690277113; 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=rI/Z7cVYNpZ1HZTf8Lpn3jGtAUPL+KFds0KdvZs2xqU=; b=HfqwuyfaftY4b8hbDlFb9Py7xEycO4+lDol+yw+0U1pmuzC9LuokW8RqqNTInWa4IHcCD1 Xu05HhwbdyjNc76wvUWSNPLN6PeKGm+ZrV79GLDGX3tE6CYawx0/OrGv+SQIP+AJzvse32 u8qqzBmj9Hy3FQwocUmwPT8hv/YXFa8HBG++JeXZvmo00WSLWK5DkeQKIPuhBj/KEydw8T m2pJMNmgnEy8LhA9Vkq1O5G33Ogr0EF6d/Ht35mqdk4U1qSMCc/v90LZu1JYXKNJTdDQc5 W+yPhuwTd82HQfKqMdZkc9SN4/tXPsgY4zirBrsM9bgHcxVy1T7xOvlPV1G2MA== From: Herve Codina <herve.codina@bootlin.com> To: Herve Codina <herve.codina@bootlin.com>, "David S. Miller" <davem@davemloft.net>, Eric Dumazet <edumazet@google.com>, Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>, Andrew Lunn <andrew@lunn.ch>, Rob Herring <robh+dt@kernel.org>, Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>, Conor Dooley <conor+dt@kernel.org>, Lee Jones <lee@kernel.org>, Linus Walleij <linus.walleij@linaro.org>, Qiang Zhao <qiang.zhao@nxp.com>, Li Yang <leoyang.li@nxp.com>, Liam Girdwood <lgirdwood@gmail.com>, Mark Brown <broonie@kernel.org>, 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>, Christophe Leroy <christophe.leroy@csgroup.eu> Cc: netdev@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org, linux-arm-kernel@lists.infradead.org, alsa-devel@alsa-project.org, Thomas Petazzoni <thomas.petazzoni@bootlin.com> Subject: [PATCH 06/26] soc: fsl: cpm1: qmc: Introduce available timeslots masks Date: Tue, 25 Jul 2023 11:23:42 +0200 Message-ID: <20230725092417.43706-7-herve.codina@bootlin.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230725092417.43706-1-herve.codina@bootlin.com> References: <20230725092417.43706-1-herve.codina@bootlin.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-GND-Sasl: herve.codina@bootlin.com 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, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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: INBOX X-GMAIL-THRID: 1772384361577537167 X-GMAIL-MSGID: 1772384361577537167 |
Series |
Add support for QMC HDLC, framer infrastruture and PEF2256 framer
|
|
Commit Message
Herve Codina
July 25, 2023, 9:23 a.m. UTC
Available timeslots masks define timeslots available for the related
channel. These timeslots are defined by the QMC binding.
Timeslots used are initialized to available timeslots but can be a
subset of available timeslots.
This prepares the dynamic timeslots management (ie. changing timeslots
at runtime).
Signed-off-by: Herve Codina <herve.codina@bootlin.com>
---
drivers/soc/fsl/qe/qmc.c | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/drivers/soc/fsl/qe/qmc.c b/drivers/soc/fsl/qe/qmc.c index 1c7853a20ef9..a30cff7d325a 100644 --- a/drivers/soc/fsl/qe/qmc.c +++ b/drivers/soc/fsl/qe/qmc.c @@ -177,7 +177,9 @@ struct qmc_chan { struct qmc *qmc; void *__iomem s_param; enum qmc_mode mode; + u64 tx_ts_mask_avail; u64 tx_ts_mask; + u64 rx_ts_mask_avail; u64 rx_ts_mask; bool is_reverse_data; @@ -875,7 +877,8 @@ static int qmc_of_parse_chans(struct qmc *qmc, struct device_node *np) of_node_put(chan_np); return ret; } - chan->tx_ts_mask = ts_mask; + chan->tx_ts_mask_avail = ts_mask; + chan->tx_ts_mask = chan->tx_ts_mask_avail; ret = of_property_read_u64(chan_np, "fsl,rx-ts-mask", &ts_mask); if (ret) { @@ -884,7 +887,8 @@ static int qmc_of_parse_chans(struct qmc *qmc, struct device_node *np) of_node_put(chan_np); return ret; } - chan->rx_ts_mask = ts_mask; + chan->rx_ts_mask_avail = ts_mask; + chan->rx_ts_mask = chan->rx_ts_mask_avail; mode = "transparent"; ret = of_property_read_string(chan_np, "fsl,operational-mode", &mode);