Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp2889198rdb; Tue, 12 Sep 2023 15:50:30 -0700 (PDT) X-Google-Smtp-Source: AGHT+IERwe0FpH7gUYHeDNS1xWr+d30T3LXygPZYnMR686rBH1F1yy5HWtSQKHUBUzn1peUG9Zfk X-Received: by 2002:a05:6a21:19e:b0:145:3bd9:1377 with SMTP id le30-20020a056a21019e00b001453bd91377mr762910pzb.5.1694559029862; Tue, 12 Sep 2023 15:50:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694559029; cv=none; d=google.com; s=arc-20160816; b=QtOPUGelEAsNAKk+RYpni/10D1ulz/rzhoBY6dPMhJPvgXvTERC2f4VLd5XkRd62XA h1He60K5zrvSpv6WbBy6VMwVEv0ipLGJD/PQY35fycexW6gShUna5zB6O6EK+cwcYbfS nMWibUI4KVup9Fu43rWFopgP9/HQ/nFFTQ5mMuOAgj0hhIEancvB9RPRdma1GCWfjqZU oX7RIcRDHEpl04008BDIs6VXc77N0cdVkHAIOxivNeSY6T5MP3WOM3Gmh6nvObwLjQN9 AN1IRbH4hn62tHy6rGS3bVrNer1GQO6q6zY6XElFmBoLat8KB3X8wnFBrhZj642/aarQ d8jg== 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=YiY/wCCitPfCyCnUThTdd1jSLMhhOOSgUzVukHdnZrs=; fh=5rCQDomVZxLXb7yR2oN4iSS3zxUnzGJP2HoQaRzhQu0=; b=WMeq9VwgU2olvwALJ44RvpUhgnfqdjK7FSRsfyPEHevdbGpkoDNe/wQADJqNCGFlop anCx1m0VhwJY4tDUhg35z56qmP+NSkbg+hAggtOlIhvU+RBjjZpF6G3hmNycmMaqW6Kb E31ZcY1ue2g4X1X9XDANiwnBDMFBa08iRZTY1jV8FOmQzV0U6OUI+o8Wm3GUsivFKmkv Pbx6zq3Z2Ne+O6Vqi69Op3FLIX+wHOsxjZ+pzgE+TJ4PQIfhR8Ti63PfwyHz0y72sWau /1td4CO0g95uH3TkHqwbhEGz4oJUPlNVHFubYkAaeH/+HJLUZOE5SAPxOyIpYuwopwhb DRKA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=Qg7mkScl; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 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 howler.vger.email (howler.vger.email. [2620:137:e000::3:4]) by mx.google.com with ESMTPS id kb14-20020a170903338e00b001c0993e4111si8736743plb.253.2023.09.12.15.50.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Sep 2023 15:50:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) client-ip=2620:137:e000::3:4; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=Qg7mkScl; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 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 howler.vger.email (Postfix) with ESMTP id C05D7853A0EA; Tue, 12 Sep 2023 03:15:02 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234209AbjILKPA (ORCPT + 99 others); Tue, 12 Sep 2023 06:15:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39716 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233960AbjILKOg (ORCPT ); Tue, 12 Sep 2023 06:14:36 -0400 Received: from relay6-d.mail.gandi.net (relay6-d.mail.gandi.net [IPv6:2001:4b98:dc4:8::226]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 481CC2D7D; Tue, 12 Sep 2023 03:14:24 -0700 (PDT) Received: by mail.gandi.net (Postfix) with ESMTPA id C6595C000B; Tue, 12 Sep 2023 10:14:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1694513662; 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=YiY/wCCitPfCyCnUThTdd1jSLMhhOOSgUzVukHdnZrs=; b=Qg7mkSclS81fNqiP6gOPby57szSHvaDpt/a5mBtAAjOuR02M/94SdBtyvrBRWSulBiY0Gm 9Jbtbas9WXF0MxOAhT3HUTwmgw5DodObma1Kcxcwdt2Y3k6ztw95r85b7EW3bLsSxNcT90 LYFMZO+ZYAzUEXJrZ9n/lJk7+mZK4rIABES88+DzMauGZQzL9Bz+8dXUTp6BgPqHkOCWoz 5dtc4e+K9nyxnGo6uKoPqafccvByx9UcRIQ1ObdBNuOGaB6ogsLQq0QXqCjTQuRbzZBdL2 rqpMQ+afFHwDaGtjlF8vatPbvWkNnBSgvLnHN03kkmQ/QWScmPAhtNOCwcP2uQ== 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 21/31] soc: fsl: cpm1: qmc: Remove timeslots handling from setup_chan() Date: Tue, 12 Sep 2023 12:14:16 +0200 Message-ID: <20230912101416.225700-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 (howler.vger.email [0.0.0.0]); Tue, 12 Sep 2023 03:15:02 -0700 (PDT) Timeslots setting is done at channel start() and stop(). There is no more need to do that during setup_chan(). Simply remove timeslot setting from setup_chan(). Signed-off-by: Herve Codina Reviewed-by: Christophe Leroy Signed-off-by: Christophe Leroy --- drivers/soc/fsl/qe/qmc.c | 28 ---------------------------- 1 file changed, 28 deletions(-) diff --git a/drivers/soc/fsl/qe/qmc.c b/drivers/soc/fsl/qe/qmc.c index 185e6e87a83f..b63b54ec0a3a 100644 --- a/drivers/soc/fsl/qe/qmc.c +++ b/drivers/soc/fsl/qe/qmc.c @@ -723,30 +723,6 @@ static int qmc_chan_setup_tsa_rx(struct qmc_chan *chan, bool enable) return qmc_chan_setup_tsa_32rx(chan, &info, enable); } -static int qmc_chan_setup_tsa(struct qmc_chan *chan, bool enable) -{ - struct tsa_serial_info info; - int ret; - - /* Retrieve info from the TSA related serial */ - ret = tsa_serial_get_info(chan->qmc->tsa_serial, &info); - if (ret) - return ret; - - /* - * Setup one common 64 entries table or two 32 entries (one for Tx - * and one for Tx) according to assigned TS numbers. - */ - if (chan->qmc->is_tsa_64rxtx) - return qmc_chan_setup_tsa_64rxtx(chan, &info, enable); - - ret = qmc_chan_setup_tsa_32rx(chan, &info, enable); - if (ret) - return ret; - - return qmc_chan_setup_tsa_32tx(chan, &info, enable); -} - static int qmc_chan_command(struct qmc_chan *chan, u8 qmc_opcode) { return cpm_command(chan->id << 2, (qmc_opcode << 4) | 0x0E); @@ -1323,10 +1299,6 @@ static int qmc_setup_chan(struct qmc *qmc, struct qmc_chan *chan) chan->qmc = qmc; - ret = qmc_chan_setup_tsa(chan, true); - if (ret) - return ret; - /* Set channel specific parameter base address */ chan->s_param = qmc->dpram + (chan->id * 64); /* 16 bd per channel (8 rx and 8 tx) */ -- 2.41.0