From patchwork Wed Aug 9 13:27:37 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Herve Codina X-Patchwork-Id: 133331 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:c44e:0:b0:3f2:4152:657d with SMTP id w14csp2909318vqr; Wed, 9 Aug 2023 09:18:30 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGQSCHASU9BoQYNbl9lOkT1KCv2fOsJSka+4DY/GE3pV0RVsWe3UjCSLCKypNAd2bTu+C+W X-Received: by 2002:a2e:9c08:0:b0:2b6:fa60:85a1 with SMTP id s8-20020a2e9c08000000b002b6fa6085a1mr2289387lji.21.1691597910632; Wed, 09 Aug 2023 09:18:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691597910; cv=none; d=google.com; s=arc-20160816; b=ecexxjuJlbjWw1QBzGUSPUsK0qsvIAyjz6UXDNa4R1s51gT7Bz8SHSBbV3NGaxQNal iut0ILt63WR2tpH/4kmi3gWniIGI3MD3ip+MZueVriCAvXgzB+AGx7YkmKO4Wd2KBsAb fq+ku4biX08aWY+Uqbhtt1NJ3ybtam4VcOpcUErQ+qx7yfSdaEoW6PRv/ySq/qcTOmE/ iMGf4cVWRNyWJWgPzD6EaFjMylib1G3oOSAaorMtXsyp53Jx1a1xlHSucoWcgVJtHkIM nSzF4ZZArz2d3pJ0dhYWDYOiRDpOYyJwTXR8Pu0Syy22rNiMUZMV2CEnzUaDrnq2um19 sbjw== 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=34x90YsndQHjiMtkYLuUo6cQmXNJdgMPBORbQdQ2044=; fh=OtJVFpZ5Y8/ND7g8QcUIbRSFhG4LznwcYYtG4zWKevM=; b=IcUQVL+I3W5pMGKp8s2M5nJD9/2w/jGp3jB07mbaaq4SHSRtxJEh2bu8zpZ3GQp3QZ ITCCjBu8W34dioEUVL1mrffz51RI3YfyoSVqj19S4Ac6ADwk6Gg7tggRxQ8b+apZ3bhk V7oKsiMdHjWTn2F5qrRJyMMyiOkvATeqIPp+TvEOafKdnPE83okUnSJNWxha7Tlolvz+ BX7MmwnSuGE9AQJfZ13SroAyEcOg3SiFB+HuF6ZBaOmfgy15+8iQqkxu5DcAeJK6Q1FT 96Io7r1NP6GT2KchvoWc1/EZ1sCMUMMalq44x33gcW4qp1z7r0ScQWINpGM/xn6Nc5oA hllQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=FPe4Sm5J; 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 d13-20020a1709063ecd00b00992bdcb72f0si8913165ejj.339.2023.08.09.09.18.03; Wed, 09 Aug 2023 09:18:30 -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=FPe4Sm5J; 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 S233076AbjHIN3L (ORCPT + 99 others); Wed, 9 Aug 2023 09:29:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48354 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233071AbjHIN2o (ORCPT ); Wed, 9 Aug 2023 09:28:44 -0400 Received: from relay2-d.mail.gandi.net (relay2-d.mail.gandi.net [IPv6:2001:4b98:dc4:8::222]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1B7292711; Wed, 9 Aug 2023 06:28:28 -0700 (PDT) Received: by mail.gandi.net (Postfix) with ESMTPA id DE80D40005; Wed, 9 Aug 2023 13:28:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1691587707; 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=34x90YsndQHjiMtkYLuUo6cQmXNJdgMPBORbQdQ2044=; b=FPe4Sm5JvM5qHTxhKVStMje3aq/RhVqu/h82q71c5NFEVf11KsCRlZs3QjyFTbLsfJfPzF nCX52n0QfnO4d92X9wqEh/umkFknISp0fwP8xqw/iNnHDJv8Xf/Nk6IT5vHQgJawFOtapJ onSb1tIERuWYdcxaUNjrlcpy1MwaNUQN3Cg5EdWGPF4Y5uLPhgvldbPVGAOsEeOiI9uuit c0NlN/NgWASGSweCuDemQC6vYYQ0wegz14x01GLlLZ5k+fTnKKIoY0EDAG2qnsjon4O9fx 3YYGQLfCPLqtYhAdtRoZQQX6jeFsrAjoSHcvRgHtV8imQyS6Qovp0Mv4gnAoKA== From: Herve Codina To: Herve Codina , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Andrew Lunn , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Lee Jones , Linus Walleij , Qiang Zhao , Li Yang , Liam Girdwood , Mark Brown , Jaroslav Kysela , Takashi Iwai , Shengjiu Wang , Xiubo Li , Fabio Estevam , Nicolin Chen , Christophe Leroy , Randy Dunlap 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 Subject: [PATCH v3 10/28] soc: fsl: cpm1: qmc: Rename qmc_setup_tsa* to qmc_init_tsa* Date: Wed, 9 Aug 2023 15:27:37 +0200 Message-ID: <20230809132757.2470544-11-herve.codina@bootlin.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230809132757.2470544-1-herve.codina@bootlin.com> References: <20230809132757.2470544-1-herve.codina@bootlin.com> MIME-Version: 1.0 X-GND-Sasl: herve.codina@bootlin.com 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_DNSWL_BLOCKED, 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: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1773768970824552461 X-GMAIL-MSGID: 1773768970824552461 qmc_setup_tsa* are called once at initialisation. They initialize the QMC TSA table. In order to introduce setup function later on for dynamic timeslots management, rename the function to avoid later confusion. Signed-off-by: Herve Codina Reviewed-by: Christophe Leroy --- drivers/soc/fsl/qe/qmc.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/drivers/soc/fsl/qe/qmc.c b/drivers/soc/fsl/qe/qmc.c index 1bc2af58e829..261958e3199f 100644 --- a/drivers/soc/fsl/qe/qmc.c +++ b/drivers/soc/fsl/qe/qmc.c @@ -919,7 +919,7 @@ static int qmc_of_parse_chans(struct qmc *qmc, struct device_node *np) return qmc_check_chans(qmc); } -static int qmc_setup_tsa_64rxtx(struct qmc *qmc, const struct tsa_serial_info *info) +static int qmc_init_tsa_64rxtx(struct qmc *qmc, const struct tsa_serial_info *info) { struct qmc_chan *chan; unsigned int i; @@ -961,7 +961,7 @@ static int qmc_setup_tsa_64rxtx(struct qmc *qmc, const struct tsa_serial_info *i return 0; } -static int qmc_setup_tsa_32rx_32tx(struct qmc *qmc, const struct tsa_serial_info *info) +static int qmc_init_tsa_32rx_32tx(struct qmc *qmc, const struct tsa_serial_info *info) { struct qmc_chan *chan; unsigned int i; @@ -1019,7 +1019,7 @@ static int qmc_setup_tsa_32rx_32tx(struct qmc *qmc, const struct tsa_serial_info return 0; } -static int qmc_setup_tsa(struct qmc *qmc) +static int qmc_init_tsa(struct qmc *qmc) { struct tsa_serial_info info; int ret; @@ -1030,12 +1030,12 @@ static int qmc_setup_tsa(struct qmc *qmc) return ret; /* - * Setup one common 64 entries table or two 32 entries (one for Tx and - * one for Tx) according to assigned TS numbers. + * Initialize one common 64 entries table or two 32 entries (one for Tx + * and one for Tx) according to assigned TS numbers. */ return ((info.nb_tx_ts > 32) || (info.nb_rx_ts > 32)) ? - qmc_setup_tsa_64rxtx(qmc, &info) : - qmc_setup_tsa_32rx_32tx(qmc, &info); + qmc_init_tsa_64rxtx(qmc, &info) : + qmc_init_tsa_32rx_32tx(qmc, &info); } static int qmc_setup_chan_trnsync(struct qmc *qmc, struct qmc_chan *chan) @@ -1391,7 +1391,7 @@ static int qmc_probe(struct platform_device *pdev) qmc_write32(qmc->scc_pram + QMC_GBL_C_MASK32, 0xDEBB20E3); qmc_write16(qmc->scc_pram + QMC_GBL_C_MASK16, 0xF0B8); - ret = qmc_setup_tsa(qmc); + ret = qmc_init_tsa(qmc); if (ret) goto err_tsa_serial_disconnect;