Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp863705rwl; Fri, 31 Mar 2023 03:38:24 -0700 (PDT) X-Google-Smtp-Source: AKy350ZnB+BQTzRlwy6miB3PuYfMeP2Uw1IZ91zAJJOyk3VQSDhfpcNVGSMusVWkdZtzTWCwzIbL X-Received: by 2002:a17:906:3f4f:b0:945:394a:d0fc with SMTP id f15-20020a1709063f4f00b00945394ad0fcmr4911313ejj.6.1680259103768; Fri, 31 Mar 2023 03:38:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680259103; cv=none; d=google.com; s=arc-20160816; b=R3uNMnLnxczABY9k+wJaG1RmbWiCS1i/cdC+siOuvWK1XAK6QpruApuIucXnBM8wNI CQ90DDKEcKCHztYLRo0U81unGxseILEZe/ZZ3w85GQpezWxRESE8Emhbtx0FdIc9njxw xsgmzC54HovTVG6BbFIOcn+bB9lnLSbh40PW9UBgO/gCoqFv3ycj2MoJct5+ZD6j3iMC N8a6ZRA60/tz6wHylmpRctHisN6J4cXeXZ80An8guos1fCGApJpRoIDs45zAumwptNq0 XMAueiFZjksdhnyPPUABtVaLqmjPFYCZX8g8PA2jldXRV9wSR5IFO/JDyOU1WCYwMwFk YyOw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=U6pGalmuH91x8qNJD26JlG8JTdBY77rcSYzW9Te/nEc=; b=kZRjY694suqZBpxPxN22ytGZKN+bR/qfnMJUwaoQf71DFdzoFV7hEAetL6RlzARn0R IPCkemrytr+PAGXbOZ6mZr3OxDe+jXYNBHfUlOM1S/JR71NL2F8JvyjBoDExBJw05POt edi8qjc5sXErofeNsAs0fKe5cxn+brsvNloBRpBsus4ho/DcsgWtEgHaoJM9A3gjDrxF CPa0DdKu3ya2+M8yLRP/XEfsbtsLYzZylVJovOY3znDRl+Jdeje+DoKiYuhmmtV6zp/Q r9rnfldTvKBKKA1DdU8r5fFuEpWLSppEJRufNgfiD16N6SPP85e1mCa072eLRz8ckW46 pHpg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=P38k89OQ; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ds4-20020a170907724400b0092ffc08bcffsi2283172ejc.535.2023.03.31.03.37.59; Fri, 31 Mar 2023 03:38:23 -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=@gmail.com header.s=20210112 header.b=P38k89OQ; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230493AbjCaKaG (ORCPT + 99 others); Fri, 31 Mar 2023 06:30:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36262 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231252AbjCaK32 (ORCPT ); Fri, 31 Mar 2023 06:29:28 -0400 Received: from mail-pg1-x52b.google.com (mail-pg1-x52b.google.com [IPv6:2607:f8b0:4864:20::52b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 51E541B9; Fri, 31 Mar 2023 03:29:27 -0700 (PDT) Received: by mail-pg1-x52b.google.com with SMTP id z18so13088562pgj.13; Fri, 31 Mar 2023 03:29:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1680258567; x=1682850567; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=U6pGalmuH91x8qNJD26JlG8JTdBY77rcSYzW9Te/nEc=; b=P38k89OQ9hawqAwX0z7PTVmHWlTSsPJdKbA9TXx1+lyHzN6Q41H7DkKjmU+mSAnu/9 JiX/BgGC0zBeT4Ga3/G+13MrX/sd8yfQr5RcLSmzB7GnTbr8iU+OEu7l0tupRnZaugkC kaCPzr9OK7dOuJg7U207rZ9PqZlRqoj2NAd41cnNe0Vt0vaP2IvrzKTjC5sn2DovXoI9 g1ksVKvQ/SFJHAEnyaI3TQM0qZD/ac9B4+WQJ4OTIBRiydWK92tMv/5AexWwDDY+UP5g L0bRalQ3Dvh99F0dpt4/oG2tTlALM7YzG1Ccgy2vgfao2LCe3xVU7/PA+YLgSf9pNkFE UrTA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680258567; x=1682850567; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=U6pGalmuH91x8qNJD26JlG8JTdBY77rcSYzW9Te/nEc=; b=X62HoKfjP0fkHeknQqOPaLpfw/FLO90DSY37uAYYqhrns++e51wJsbpmnU3rOlg1WU vXa8S5EwGKRSyB6gSvsewaWFf3UAn+a1M5azrGrBUYZLeEOmmq+406A4bJIcZovwE2sg DO8hncsxDB3wUUtJP4yUnYT5PNgVBfU0da/paZsO9RrTh2g6a5JA/mFDlOCmE7mBo3fC 88r64qPR2rVYAdTR1PI6s9GPTMoHZ5S5at9C5WekCIBmPy28fGtX432549lGc9XRU7E3 uulicdp8lWhQ5kfA4sZQGgDjM4jo+zlC/HEO/N1gxackPWS9Rg4zmD4hKR03YhAnKLGO 87vQ== X-Gm-Message-State: AAQBX9ch3jomv5xkSTL+3w+WCLfArD2o4qLwso36oqGAScyyK272kEzV UvBDuEWIA218291mrIxDzchX7Akhm0a9UMKyJw4= X-Received: by 2002:a63:f149:0:b0:503:72c5:dd77 with SMTP id o9-20020a63f149000000b0050372c5dd77mr7634305pgk.6.1680258566591; Fri, 31 Mar 2023 03:29:26 -0700 (PDT) MIME-Version: 1.0 References: <20230331072058.2483975-1-peng.fan@oss.nxp.com> In-Reply-To: <20230331072058.2483975-1-peng.fan@oss.nxp.com> From: Fabio Estevam Date: Fri, 31 Mar 2023 07:29:14 -0300 Message-ID: Subject: Re: [PATCH] clk: imx: imx6sx: spdif clock rate is too high for asrc To: "Peng Fan (OSS)" Cc: abelvesa@kernel.org, abel.vesa@linaro.org, mturquette@baylibre.com, sboyd@kernel.org, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, linux-imx@nxp.com, linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Shengjiu Wang , Peng Fan Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-0.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE, 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 lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Mar 31, 2023 at 4:15=E2=80=AFAM Peng Fan (OSS) wrote: > > From: Shengjiu Wang > > spdif clock is one of the asrc clock source, which is used > for ideal ratio mode. when set to 98.304MHz, it cause the > divider of asrc input clock and output clock exceed the > maximum value, and asrc driver saturate the value to maximum > value, which will cause the ASRC's performance very bad. > So we need to set spdif clock to a proper rate. which make asrc > divider not exceed maximum value, at least one of divider not > exceed maximum value. > The target is spdif clock rate / output(or input) sample rate > less than 1024(which is maximum divider). Please add a Fixes tag.