From: Akhil R <akhilrajeev@nvidia.com>
To: <jonathanh@nvidia.com>
Cc: <akhilrajeev@nvidia.com>, <andi.shyti@kernel.org>,
<conor+dt@kernel.org>, <devicetree@vger.kernel.org>,
<digetx@gmail.com>, <kkartik@nvidia.com>, <krzk+dt@kernel.org>,
<ldewangan@nvidia.com>, <linux-i2c@vger.kernel.org>,
<linux-kernel@vger.kernel.org>, <linux-tegra@vger.kernel.org>,
<robh@kernel.org>, <thierry.reding@gmail.com>,
<smangipudi@nvidia.com>
Subject: Re: [PATCH v8 2/4] i2c: tegra: Add HS mode support
Date: Thu, 18 Sep 2025 16:46:00 +0530 [thread overview]
Message-ID: <20250918111600.25189-1-akhilrajeev@nvidia.com> (raw)
In-Reply-To: <af2462af-5b6e-4eb1-b1a3-59ec5f96f1d6@nvidia.com>
On Thu, 18 Sep 2025 11:21:14 +0100, Jon Hunter wrote:
> On 18/09/2025 11:04, Akhil R wrote:
>> On Wed, 17 Sep 2025 14:59:54 +0100, Jon Hunter wrote:
>>> On 17/09/2025 09:56, Kartik Rajput wrote:
...
...
>>> No mention in the changelog about this part. Looks like this is a fallback.
>>>
>>> Should all of this be handled in the case statement for t->bus_freq_hz?
>>>
>>
>> HS mode timing parameters are programmed in registers different from the other
>> speed modes. These registers does not affect the timing in other speed modes.
>> HS mode registers being used or not is determined by the packet header.
>>
>> We may also want to program the regular timing registers, because it will be
>> used for the master code byte to transition to HS mode.
>>
>> So, I guess, even if we move this to the switch statement, we might end up
>> doing something similar outside it.
>
>
> The 'tlow', 'thigh' and 'tsu_thd' are configured under the case
> statement and so seems logical to also configure these for HS mode under
> this too. I see that there are different timing registers for HS mode,
We are just reusing the variables since the fields are similar. If required,
we can define separate variables with _hs suffix. Do you suggest it that way?
> but right now looks like we are programming both the normal ones and HS
> ones. Do both need to be programmed for HS mode?
Yes. As mentioned in my previous comment, the normal timing registers will
be used for the 'master code' byte sent to transition to HS mode. We need
to program both for HS mode.
So, I am not sure if moving this section to the switch block will add
any benefit. We might end up making it more complicated that it is now.
Regards,
Akhil
next prev parent reply other threads:[~2025-09-18 11:16 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-09-17 8:56 [PATCH v8 0/4] Add I2C support for Tegra264 Kartik Rajput
2025-09-17 8:56 ` [PATCH v8 1/4] i2c: tegra: Do not configure DMA if not supported Kartik Rajput
2025-09-17 14:08 ` Jon Hunter
2025-09-18 7:10 ` Kartik Rajput
2025-09-17 8:56 ` [PATCH v8 2/4] i2c: tegra: Add HS mode support Kartik Rajput
2025-09-17 13:59 ` Jon Hunter
2025-09-18 10:04 ` Akhil R
2025-09-18 10:21 ` Jon Hunter
2025-09-18 11:16 ` Akhil R [this message]
2025-09-18 12:55 ` Jon Hunter
2025-09-18 17:12 ` Akhil R
2025-09-18 17:33 ` Jon Hunter
2025-09-17 8:56 ` [PATCH v8 3/4] i2c: tegra: Add support for SW mutex register Kartik Rajput
2025-09-17 8:56 ` [PATCH v8 4/4] i2c: tegra: Add Tegra264 support Kartik Rajput
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=20250918111600.25189-1-akhilrajeev@nvidia.com \
--to=akhilrajeev@nvidia.com \
--cc=andi.shyti@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=digetx@gmail.com \
--cc=jonathanh@nvidia.com \
--cc=kkartik@nvidia.com \
--cc=krzk+dt@kernel.org \
--cc=ldewangan@nvidia.com \
--cc=linux-i2c@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-tegra@vger.kernel.org \
--cc=robh@kernel.org \
--cc=smangipudi@nvidia.com \
--cc=thierry.reding@gmail.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