Message ID | 20231011061437.64213-13-herve.codina@bootlin.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:2908:b0:403:3b70:6f57 with SMTP id ib8csp334979vqb; Tue, 10 Oct 2023 23:16:19 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGWGIWypnJ8nrS1X7FxjOGGjvoKLdQNZyylR82JhmFiCjH5uX6a675E6XJGDC0FIIDshR3N X-Received: by 2002:a05:6870:a448:b0:1dd:67a6:ed6e with SMTP id n8-20020a056870a44800b001dd67a6ed6emr21933553oal.1.1697004979700; Tue, 10 Oct 2023 23:16:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697004979; cv=none; d=google.com; s=arc-20160816; b=XmbYInA/umY8OLqUuaCjQ9JJ+0/EYA/4rGj/bCBFZ45WW/rOeyO+6QQvv50fwufzun FfdG3qdwXlpZOftzy2Sa7l61STnRl5P54aeO+BG7KwJ7GA6yz92tO2brLMym0rWWJXIH dspmjKVQvV/YfZyvw9KASxrY6G+K+glEzHHVgaFBz+Sl8RNEpg/3uDkL3Kec1qMsByFU bKnTtfcogwo+5gqzAaNHbjN1lwl4QDmR9h03BWuFpBM3oroi1BbbYwtADTTcKiCm1Ww7 4aUV3WP5av98QzIYAm2Pwt5Ahjdpm2FHh7uWH93Ji8xcZbL2/ycSYgatdZymHcxPi0zE 483w== 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=H6LM5oBsAhqZ2AuRWwGids6eXtTepJ+ChJ2w8L/EWt8=; fh=5rCQDomVZxLXb7yR2oN4iSS3zxUnzGJP2HoQaRzhQu0=; b=prwwj1rTNexeoZkvztEleoiKCww79WOwiPCBEzeVhK3NaQs0MshCMbT0CX/GRpjezL e/CUupkXt+89AdHdpA3hAcu8lkzt8nrSfOBl3xts2Pyn8+LSHM7OiFk5fNknpDNsuDv9 TPWK186haBL1imwUYnFcPgAKRg+YOVqQSL163Xkr7ih56XFW1L/K1CMj5l66Ke9GpXu9 pB3iuerACdL+HupjdL+VyZsZGzPiW2xvn3k5xuTn0WrVRrKnZqnQs7ACkp0eeCavurPu P1m8KgkqokkORJNfnJuUw2l2B4J7GdtFGF0KWjabyPGd7vy6cs67/pDYpn2flCh/9IHR NdoQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=DC9wZFha; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 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 snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id h13-20020a63120d000000b005774978dd75si14016350pgl.175.2023.10.10.23.16.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Oct 2023 23:16:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=DC9wZFha; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 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 (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id CD0F7815A1FE; Tue, 10 Oct 2023 23:16:18 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345438AbjJKGQK (ORCPT <rfc822;rua109.linux@gmail.com> + 19 others); Wed, 11 Oct 2023 02:16:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35732 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345357AbjJKGPp (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Wed, 11 Oct 2023 02:15:45 -0400 Received: from relay4-d.mail.gandi.net (relay4-d.mail.gandi.net [217.70.183.196]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2F9A9EB; Tue, 10 Oct 2023 23:15:33 -0700 (PDT) Received: by mail.gandi.net (Postfix) with ESMTPA id 6B79AE000D; Wed, 11 Oct 2023 06:15:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1697004931; 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=H6LM5oBsAhqZ2AuRWwGids6eXtTepJ+ChJ2w8L/EWt8=; b=DC9wZFhapS4z4fkYFylKnyEpnBJTDgi8lJPoHmii4PZA+LHzjhfM5UzFHgWJXjLt5umrT2 O6+plBjZFdhFPAUHkahdGUjMKiGixmVUvwHKnNYHn0nU6XEmoJCwtPAd5xBk6eXYX7gsIO u+Ms1Y5xP5erYIunlNpFOzu9N1p2e8ZUdv6DtpH8BzOUFmkRUy4YLw/bQsP8IvcvbsJSIv Dil4KRHSnlBndSUs6ETBXirk/xDI1MChLrz7rJQ/YWkU2Jhqh6ii6awcZhGb6LqbJqc12C T03Dol5ygNf1JpwKeZ0AjBGwRp/cbkMU942+aIAF1NPXJejOoM3DMyBBfPjSkw== 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>, Randy Dunlap <rdunlap@infradead.org> 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, Simon Horman <horms@kernel.org>, Christophe JAILLET <christophe.jaillet@wanadoo.fr>, Thomas Petazzoni <thomas.petazzoni@bootlin.com> Subject: [PATCH v8 12/30] soc: fsl: cpm1: qmc: Introduce available timeslots masks Date: Wed, 11 Oct 2023 08:14:16 +0200 Message-ID: <20231011061437.64213-13-herve.codina@bootlin.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20231011061437.64213-1-herve.codina@bootlin.com> References: <20231011061437.64213-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, 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-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Tue, 10 Oct 2023 23:16:18 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1779438693546232772 X-GMAIL-MSGID: 1779438693546232772 |
Series |
Add support for QMC HDLC, framer infrastructure and PEF2256 framer
|
|
Commit Message
Herve Codina
Oct. 11, 2023, 6:14 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> Reviewed-by: Christophe Leroy <christophe.leroy@csgroup.eu> --- 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 5da15a25600e..653d458b84b6 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);