From patchwork Wed Jul 26 15:02:05 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Herve Codina X-Patchwork-Id: 126486 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:a985:0:b0:3e4:2afc:c1 with SMTP id t5csp507466vqo; Wed, 26 Jul 2023 09:12:12 -0700 (PDT) X-Google-Smtp-Source: APBJJlGpt8FDRbs8ksHF1EhJO8+XoS/pf+45kMSH/YSRrrwZhPSwI7WVJiZLT/qEyV+/va4a5fmt X-Received: by 2002:a05:6512:202c:b0:4fe:d0f:1f1b with SMTP id s12-20020a056512202c00b004fe0d0f1f1bmr1665553lfs.65.1690387932159; Wed, 26 Jul 2023 09:12:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690387932; cv=none; d=google.com; s=arc-20160816; b=rrow7TBFD2Tp3qTbU5+rhYCPiqSnCwryj+KEOF6oiOxAAAzetvIDLfP9gPTWDd3Cg7 rU1WghN8XmcjeJERkSzKFdQDmYk8jNc4ZHBXle6IhljmhohNL6OZw+6QKaveN4lOyRfd grtt/U9uh+Z4wdZG3OCP7ZVk5vN1vHoFatM2vy7pnMqlhFtxHgc4iuhkynNTEVC5OjWW QyG0Mtbm6ZCPDsESp4KZ662rZoHPYLI+oQdT7ObWBmH7HEZ7QBPy1DPbitiEKhheoSoP JELl/8ixaf7ZN7z08NmXa4wCQ3k2JchukwsPeGOPYwlXc32f4EqElh1x9UsSwnRdvjnu TO5Q== 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=9Lsv//xZOZUEYqxjK5adaHoTjpXfQ7QdhE8gN77jKDc=; fh=OtJVFpZ5Y8/ND7g8QcUIbRSFhG4LznwcYYtG4zWKevM=; b=0f48hU/St9Z+Ry5eu7aNGPqen2zJZPHZtsf/I0v2AUAr8s3BG/gHfBVlxxM1zb4DWZ rmo5R0dC60t23Q9oyvayJ2tRKxhornrn9KZUXoSEmcGzpmmOm4CwSRgCyk8ME1IIkxTw kfBkZu3g/qsh0jNJ731YLd6d4jN+WqjTxwPlAG6uvK9jdnrApRm+H41DJPiHgDRctwXx jkaWqkHNZqvZ4gR3y2rMsPxzEuG9cW77jbgWms2wTGwPtwGbfcJqqKUllD9MJUmD14Ki BgJVMRWNzKc0aFdMlhLkvXvv9MISz0rXEUqzWmAv6+zVeTbdVEPsy1gDcnRgAzxltUZT yHaA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=E+ljzQeS; 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 k11-20020aa7d8cb000000b005222c6fb4fasi4913081eds.0.2023.07.26.09.11.46; Wed, 26 Jul 2023 09:12:12 -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=E+ljzQeS; 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 S234316AbjGZPDj (ORCPT + 99 others); Wed, 26 Jul 2023 11:03:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46220 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234611AbjGZPDV (ORCPT ); Wed, 26 Jul 2023 11:03:21 -0400 Received: from relay5-d.mail.gandi.net (relay5-d.mail.gandi.net [IPv6:2001:4b98:dc4:8::225]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 009602683; Wed, 26 Jul 2023 08:03:10 -0700 (PDT) Received: by mail.gandi.net (Postfix) with ESMTPA id A28DC1C000E; Wed, 26 Jul 2023 15:03:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1690383789; 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=9Lsv//xZOZUEYqxjK5adaHoTjpXfQ7QdhE8gN77jKDc=; b=E+ljzQeSUkEs7hTHyQlpLWU2vSg/ruFt5yZYlBzsLhbqAfOzrUoJ9nXWAXw0Rk2SHfrq5b aZQb4aWyuGx613s7HxbFs3aFsePsTVesXqi7o/h3gfgcF2QVEveGB27sz6bj0J1h+KktLt NvzWquBK7Rh+P8Kao2qhhpaYhZYznwAIzaZ0r9dWSfvbphIvsQqpKMcmGtLMAuIEvlrRQY 6py3x+F30o/SBKz7/EMZf8ib6JWaxCU+y1Nwf+Aoff5GWj22acdHexHd/4USF5Rg0jrhxs 9575QVvW+RqFrHaxdiGocjqHOhWRkdFfgBlg2/5zab6V6ahfsJtbXzVpoCJdWw== 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 v2 09/28] soc: fsl: cpm1: qmc: Rename qmc_setup_tsa* to qmc_init_tsa* Date: Wed, 26 Jul 2023 17:02:05 +0200 Message-ID: <20230726150225.483464-10-herve.codina@bootlin.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230726150225.483464-1-herve.codina@bootlin.com> References: <20230726150225.483464-1-herve.codina@bootlin.com> MIME-Version: 1.0 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,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: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1772500216285427326 X-GMAIL-MSGID: 1772500216285427326 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 21ad7e79e7bd..64a11f5c6f85 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;