From: Prasad Sodagudi <quic_psodagud@quicinc.com>
To: "Ninad Naik (QUIC)" <quic_ninanaik@quicinc.com>, <ahalaney@redhat.com>
Cc: <andersson@kernel.org>, <agross@kernel.org>,
<konrad.dybcio@linaro.org>, <linux-arm-msm@vger.kernel.org>,
<linux-gpio@vger.kernel.org>, <linux-kernel@vger.kernel.org>,
"Parikshit Pareek (QUIC)" <quic_ppareek@quicinc.com>,
Prasad Sodagudi <psodagud@quicinc.com>,
"Prasanna Kumar (QUIC)" <quic_kprasan@quicinc.com>,
<quic_psodagud@quicinc.com>
Subject: Re: FW: [PATCH] pinctrl: qcom: Add intr_target_width to define intr_target_bit field width
Date: Fri, 14 Jul 2023 14:04:05 -0700 [thread overview]
Message-ID: <d43a0ce0-c915-a5d2-1d01-549ae08c678e@quicinc.com> (raw)
In-Reply-To: <BY5PR02MB6339C6B8A53C5D0CB55E58B7C034A@BY5PR02MB6339.namprd02.prod.outlook.com>
> -----Original Message-----
> From: Andrew Halaney <ahalaney@redhat.com>
> Sent: Friday, July 14, 2023 11:17 AM
> To: Ninad Naik (QUIC) <quic_ninanaik@quicinc.com>
> Cc: andersson@kernel.org; agross@kernel.org; konrad.dybcio@linaro.org; linux-arm-msm@vger.kernel.org; linux-gpio@vger.kernel.org; linux-kernel@vger.kernel.org; Parikshit Pareek (QUIC) <quic_ppareek@quicinc.com>; Prasad Sodagudi <psodagud@quicinc.com>; Prasanna Kumar (QUIC) <quic_kprasan@quicinc.com>
> Subject: Re: [PATCH] pinctrl: qcom: Add intr_target_width to define intr_target_bit field width
>
> WARNING: This email originated from outside of Qualcomm. Please be wary of any links or attachments, and do not enable macros.
>
> On Fri, Jul 14, 2023 at 11:40:09AM +0530, Ninad Naik wrote:
>> SA8775 and newer target have added support for an increased number of
>> interrupt targets. To implement this change, the intr_target field,
>> which is used to configure the interrupt target in the interrupt
>> configuration register is increased from 3 bits to 4 bits.
>>
>> In accordance to these updates, a new intr_target_width member is
>> introduced in msm_pingroup structure. This member stores the value of
>> width of intr_target field in the interrupt configuration register.
>> This value is used to dynamically calculate and generate mask for
>> setting the intr_target field. By default, this mask is set to 3 bit
>> wide, to ensure backward compatibility with the older targets.
>>
>> Signed-off-by: Ninad Naik <quic_ninanaik@quicinc.com>
>
> Thanks for the patch. Naive question (without really reading the code), but what practical affect does this have?
>
Target bits configures irq destination processor on Qualcomm SoC.
g->intr_target_kpss_val(0x3) routes the gpio IRQ to application process.
On this SoCs target bits length is changed from 3 bits to 4 bits in hw
and reset value of g->intr_target_reg register value is 0x1E2. So reset
value of target bits is 0xf. With old logic, when writing
g->intr_target_kpss_val(0x3) value result is 0xb instead of 0x3 as top
most bit is not getting cleared out and leading to IRQ is not getting
fired on application processor. 0xb value is unused on current HW and
IRQ would not be fired.
> i.e. does this change behavior of how IRQs were handled before this patch vs after on this platform?
>
> To shed some light on the question, there's a GPIO IRQ for the ethernet phy on this platform that is purposely _not_ described because it didn't ever trigger, resulting in the interface staying down. Things work fine without the IRQ (the driver goes into polling mode).
> The explanation I got was very brief and attributed it to a "hardware issue".
>
> I'm wondering if I should re-evaluate that, and if this was the "hardware issue".
Hi Andrew,
I don't have complete idea on ethernet phy gpio irq issue and I will
sync up with offline. Please try this patch for ethernet use case.
>
> Thanks,
> Andrew
>
next prev parent reply other threads:[~2023-07-14 21:06 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-07-14 6:10 Ninad Naik
2023-07-14 14:32 ` Konrad Dybcio
2023-07-14 18:17 ` Andrew Halaney
2023-07-14 20:51 ` Bjorn Andersson
[not found] ` <BY5PR02MB6339C6B8A53C5D0CB55E58B7C034A@BY5PR02MB6339.namprd02.prod.outlook.com>
2023-07-14 21:04 ` Prasad Sodagudi [this message]
2023-07-14 22:39 ` FW: " Andrew Halaney
2023-07-14 20:38 ` Bjorn Andersson
2023-07-18 5:08 ` Ninad Naik
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=d43a0ce0-c915-a5d2-1d01-549ae08c678e@quicinc.com \
--to=quic_psodagud@quicinc.com \
--cc=agross@kernel.org \
--cc=ahalaney@redhat.com \
--cc=andersson@kernel.org \
--cc=konrad.dybcio@linaro.org \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux-gpio@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=psodagud@quicinc.com \
--cc=quic_kprasan@quicinc.com \
--cc=quic_ninanaik@quicinc.com \
--cc=quic_ppareek@quicinc.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
all inboxes | Powered by JetHome®