Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp2540417rdb; Tue, 12 Sep 2023 05:21:48 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEBcgv8awcI98J9TQAFxa1rx6BE6bkzoy1qRM3Kt2ZsR4FlTDfxYem6iUZxBKUkXjv2Emnu X-Received: by 2002:a05:6a21:778a:b0:14d:446f:7211 with SMTP id bd10-20020a056a21778a00b0014d446f7211mr10332028pzc.53.1694521308087; Tue, 12 Sep 2023 05:21:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694521308; cv=none; d=google.com; s=arc-20160816; b=KXpMWXYCVX2quUUb8FLHj7HGXZNji5fkHi9k8X1eGHlm8Q2eOAby2z5RK527jmVWSJ K8W6MoaeWrEC05yfFCW/UHsv9ut16b2SwLbhNVayhgROlf80xPtqtzKzoRPkfMQuknSG VYOLofv1Qp5tZJ6TTe3qJ6A1uQXNUS5Sf8TD70JQCtKILtglNgw7rRI+m9514LxJAy8a rtEW2FBxlMWw+PEmRD/xBfXI6nh0sjnwP2de8Phm0sBdJGW4CXH3438PXCkH04xbdOOy Fsk2/PTzHRAjEnVesY7mr+apGI/vn0oZBUVaBLU32MH6GSJev7YC5x/BAoBce7BlA2yA ol3g== 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=HUuBnl5gipf9mp4kM9w5Jt6NuvosXfq2XOx43xz8t60=; fh=5rCQDomVZxLXb7yR2oN4iSS3zxUnzGJP2HoQaRzhQu0=; b=lPJpvBTWUPOUJtIzkKjQ2d3r5tZ+elGpRhcDqn0TTxlf76ZuAAdRi8f8q2FdnbX2M1 6ey/igRihwsOr1bNsfVeDlAHDi6uXFk55/k4kNnNCsTB/yPj4Cl9gARyVkFD85/gXcMM C3adXspkJudoOUogDtzRaHIPjxWkmF29GcQIlwvQU5Fx1TS6MLq6qflzksw5gm7nVmAf ThkkaKXs7Bexq9YIFYMxi2xxccviDRNxXjBPHMeLVap2bsEViyTyTfnW0KPYQsXDCmzR 5ZdcVxMFfnbX4RP2vEj9tb8IIrJu0QH7fqcTGqvgEqt63seiCuJ/PknHepO8St7cZTYy bFbg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=FdIAMYsN; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Return-Path: Received: from groat.vger.email (groat.vger.email. [2620:137:e000::3:5]) by mx.google.com with ESMTPS id d1-20020a63f241000000b00573fffb12a6si7563552pgk.793.2023.09.12.05.21.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Sep 2023 05:21:48 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) client-ip=2620:137:e000::3:5; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=FdIAMYsN; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 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 groat.vger.email (Postfix) with ESMTP id C10BE8266432; Tue, 12 Sep 2023 03:13:35 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.8 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233728AbjILKNb (ORCPT + 99 others); Tue, 12 Sep 2023 06:13:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39330 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233848AbjILKNZ (ORCPT ); Tue, 12 Sep 2023 06:13:25 -0400 Received: from relay1-d.mail.gandi.net (relay1-d.mail.gandi.net [IPv6:2001:4b98:dc4:8::221]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D2B0D1708; Tue, 12 Sep 2023 03:13:20 -0700 (PDT) Received: by mail.gandi.net (Postfix) with ESMTPA id 97882240006; Tue, 12 Sep 2023 10:13:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1694513599; 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=HUuBnl5gipf9mp4kM9w5Jt6NuvosXfq2XOx43xz8t60=; b=FdIAMYsN6AR0FdF/T6baFVVPsafSLJlHSjSTvjkoN7t27is7ZgEA+HcLkCpzx6fCC7sooF D04E9NkjCwdO6YtK3s9GuIUTFblhJ4a9Q9onrPYvHdT+Si9b9jGN2LQyqMa8xyGJkAyLVR 2RRybpaiSXhVcIyWWYYmpOJjKgD3hSMr9R8cY4UoJ7hrUlr/KEA2o3gUpXs/QphWt9oY+Z lbdPpcSKoJ8gc6M3wK/+fEgJWV4VaypbApL2NmPPIZo026xR4q1zcNxUyRnzmXoeZgxnsE Jr3rMUP6wE+8CSkRMPU/ULoMTdySGA2WP+UWwR5bnYECeYmkHUmE4uVg6LwWaA== 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, Simon Horman , Christophe JAILLET , Thomas Petazzoni Subject: [PATCH v5 13/31] soc: fsl: cpm1: qmc: Rename qmc_setup_tsa* to qmc_init_tsa* Date: Tue, 12 Sep 2023 12:13:15 +0200 Message-ID: <20230912101315.225479-1-herve.codina@bootlin.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230912081527.208499-1-herve.codina@bootlin.com> References: <20230912081527.208499-1-herve.codina@bootlin.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-GND-Sasl: herve.codina@bootlin.com Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Tue, 12 Sep 2023 03:13:35 -0700 (PDT) X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email 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 Signed-off-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 653d458b84b6..28acf4c8a141 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; -- 2.41.0