public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Pierre-Louis Bossart <pierre-louis.bossart@linux.dev>
To: Bard Liao <yung-chuan.liao@linux.intel.com>,
	linux-sound@vger.kernel.org, vkoul@kernel.org
Cc: vinod.koul@linaro.org, linux-kernel@vger.kernel.org, bard.liao@intel.com
Subject: Re: [PATCH v2 0/2] soundwire: set frame shape and divider based on actual clk
Date: Fri, 17 Jan 2025 10:11:24 -0600	[thread overview]
Message-ID: <5ef1ac08-5025-4902-a50a-83915a54d72a@linux.dev> (raw)
In-Reply-To: <20250114061621.110800-1-yung-chuan.liao@linux.intel.com>

On 1/14/25 12:16 AM, Bard Liao wrote:
> Set frame shape and clock divider based on actual clock frequency. And
> with that change, we can support ckock change in Intel platforms.
> 
> v2:
>  - Mave the check before writing the divider registers
>  - Remove the 'freq' intermediate variable which is multiplied by two
>    after divided by two.
> 
> Bard Liao (2):
>   soundwire: cadence_master: set frame shape and divider based on actual
>     clk freq
>   Revert "soundwire: intel_auxdevice: start the bus at default
>     frequency"

This looks fine so 

Reviewed-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.dev>

but one additional question: what is the default start frequency? There is an expectation in SoundWire 1.2 that the bus starts at the slowest speed to allow for potential programming of PHY registers before bumping the speed to a higher rate. I don't recall what is typically listed in the _DSD properties, it'd be a mistake to start blindly with the first listed value if it happens to be the max rate.

>  drivers/soundwire/cadence_master.c  | 22 +++++++++++++++++++---
>  drivers/soundwire/intel_auxdevice.c | 21 ---------------------
>  2 files changed, 19 insertions(+), 24 deletions(-)
> 


  parent reply	other threads:[~2025-01-17 16:14 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-01-14  6:16 [PATCH v2 0/2] soundwire: set frame shape and divider based on actual clk Bard Liao
2025-01-14  6:16 ` [PATCH v2 1/2] soundwire: cadence_master: set frame shape and divider based on actual clk freq Bard Liao
2025-01-14  6:16 ` [PATCH v2 2/2] Revert "soundwire: intel_auxdevice: start the bus at default frequency" Bard Liao
2025-01-17 16:11 ` Pierre-Louis Bossart [this message]
2025-01-20  2:06   ` [PATCH v2 0/2] soundwire: set frame shape and divider based on actual clk Liao, Bard

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5ef1ac08-5025-4902-a50a-83915a54d72a@linux.dev \
    --to=pierre-louis.bossart@linux.dev \
    --cc=bard.liao@intel.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-sound@vger.kernel.org \
    --cc=vinod.koul@linaro.org \
    --cc=vkoul@kernel.org \
    --cc=yung-chuan.liao@linux.intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox