public inbox for linux-i2c@vger.kernel.org
 help / color / mirror / Atom feed
From: Mukesh Kumar Savaliya <quic_msavaliy@quicinc.com>
To: Konrad Dybcio <konrad.dybcio@linaro.org>, <andersson@kernel.org>,
	<andi.shyti@kernel.org>, <linux-arm-msm@vger.kernel.org>,
	<linux-kernel@vger.kernel.org>, <linux-i2c@vger.kernel.org>,
	<dmaengine@vger.kernel.org>
Cc: <quic_vdadhani@quicinc.com>, Vinod Koul <vkoul@kernel.org>
Subject: Re: [PATCH v2] i2c: i2c-qcom-geni: Add support to share an I2C SE from two subsystem
Date: Wed, 3 Apr 2024 11:26:42 +0530	[thread overview]
Message-ID: <669b516a-74c7-445a-b151-5463fe39b21b@quicinc.com> (raw)
In-Reply-To: <51c84af2-73f7-4af4-8676-2276b6c7786d@linaro.org>

Thanks Konrad. I understood.

On 4/2/2024 7:54 PM, Konrad Dybcio wrote:
> On 2.04.2024 8:21 AM, Mukesh Kumar Savaliya wrote:
>> Add feature to share an I2C serial engine between two subsystems(SS) so
>> that individual clients from different subsystems can access the same bus.
>> For example single i2c slave device can be accessed by Client driver from
>> APPS OR modem subsystem image. Same way we can have slave being accessed
>> between APPS and TZ subsystems.
>>
>> This is possible in GSI mode where driver queues the TREs with required
>> descriptors and ensures to execute TREs in an mutually exclusive way.
>> Issue a "Lock TRE" command at the start of the transfer and an "Unlock TRE"
>> command at the end of the transfer. This prevents other subsystems from
>> concurrently performing DMA transfers and avoids disturbance to data path.
>> Change MAX_TRE macro to 5 from 3 because of these two additional TREs.
>>
>> Since the GPIOs are also shared for the i2c bus, do not touch GPIO
>> configuration while going to runtime suspend and only turn off the
>> clocks. This will allow other SS to continue to transfer the data.
>>
>> This feature needs to be controlled by DTSI flag to make it flexible
>> based on the usecase, hence during probe check the same from i2c driver.
>>
>> Export function geni_se_clks_off() to call explicitly instead of
>> geni_se_resources_off() to not modify TLMM configuration as other SS might
>> perform the transfer while APPS SS can go to sleep.
>>
>> Signed-off-by: Mukesh Kumar Savaliya <quic_msavaliy@quicinc.com>
>> ---
>> v1 -> v2:
>> - Addressed review comments.
> 
> The biggest one ("too many changes across the board") is still not
> addressed and the patch will not be further reviewed until that is done.
> 
> Each subsystem has different owners and each change requires an explanation
> (maintainers always "expect your patch to be wrong" and you need to
> convince them otherwise through commit messages)
> 
Sure, I got it. Will send patch dividing logically between i2c, dma.
I have already responded in just previous Mail to seek clarity as below.
It was :
"Please correct me if this is wrong. The overall change is for i2c in 
GSI DMA mode. This also requires changes in resource control like TLMM 
changes. But it's more like integrated feature.
Are you suggesting to make 3 sub-patches under same change ? "



> Konrad

  reply	other threads:[~2024-04-03  5:56 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-04-02  6:21 [PATCH v2] i2c: i2c-qcom-geni: Add support to share an I2C SE from two subsystem Mukesh Kumar Savaliya
2024-04-02  7:00 ` Vinod Koul
2024-04-02 14:24 ` Konrad Dybcio
2024-04-03  5:56   ` Mukesh Kumar Savaliya [this message]
2024-04-10 12:29     ` Konrad Dybcio

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=669b516a-74c7-445a-b151-5463fe39b21b@quicinc.com \
    --to=quic_msavaliy@quicinc.com \
    --cc=andersson@kernel.org \
    --cc=andi.shyti@kernel.org \
    --cc=dmaengine@vger.kernel.org \
    --cc=konrad.dybcio@linaro.org \
    --cc=linux-arm-msm@vger.kernel.org \
    --cc=linux-i2c@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=quic_vdadhani@quicinc.com \
    --cc=vkoul@kernel.org \
    /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