mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Can Guo <can.guo@oss.qualcomm.com>
To: Bart Van Assche <bvanassche@acm.org>,
	krzk@kernel.org, beanhuo@micron.com, peter.wang@mediatek.com,
	martin.petersen@oracle.com, mani@kernel.org
Cc: linux-scsi@vger.kernel.org, Alim Akhtar <alim.akhtar@samsung.com>,
	Avri Altman <avri.altman@wdc.com>,
	"James E.J. Bottomley" <James.Bottomley@HansenPartnership.com>,
	Ram Kumar Dwivedi <quic_rdwivedi@quicinc.com>,
	Nitin Rawat <quic_nitirawa@quicinc.com>,
	open list <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH v9 2/2] scsi: ufs: core: Add support for static TX Equalization settings
Date: Tue, 16 Jun 2026 16:05:32 +0800	[thread overview]
Message-ID: <f33d6b99-9358-45c5-82b4-08519f557370@oss.qualcomm.com> (raw)
In-Reply-To: <35a67c82-f71d-4a20-8560-05c2b1361b06@acm.org>



On 6/15/2026 9:38 PM, Bart Van Assche wrote:
> On 6/15/26 6:28 AM, Can Guo wrote:
>> +    prop = of_find_property(dev->of_node, prop_name, NULL);
>> +    if (!prop)
>> +        return 0;
>> +
>> +    count = of_property_count_u32_elems(dev->of_node, prop_name);
>> +    if (count < 0)
>> +        return count;
>
> Can the above two of_*() calls be combined into a single of_*() call,
> e.g. as follows?
>
> count = of_property_count_u32_elems(dev->of_node, prop_name);
> if (count == -EINVAL || count == -ENOENT)
>     return 0;
> if (count < 0)
>     return count;
Sure, will do.

Thanks,
Can Guo.
>
> Thanks,
>
> Bart.


  reply	other threads:[~2026-06-16  8:05 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20260615132834.2985346-1-can.guo@oss.qualcomm.com>
2026-06-15 13:28 ` [PATCH v9 1/2] dt-bindings: ufs: Document static TX Equalization settings properties Can Guo
2026-06-16  3:54   ` Krzysztof Kozlowski
2026-06-16 10:36   ` Peter Wang (王信友)
2026-06-15 13:28 ` [PATCH v9 2/2] scsi: ufs: core: Add support for static TX Equalization settings Can Guo
2026-06-15 13:38   ` Bart Van Assche
2026-06-16  8:05     ` Can Guo [this message]
2026-06-16  8:04   ` Peter Wang (王信友)
2026-06-16  9:09     ` Can Guo
2026-06-16 10:35       ` Peter Wang (王信友)
2026-06-16 10:36         ` Can Guo

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=f33d6b99-9358-45c5-82b4-08519f557370@oss.qualcomm.com \
    --to=can.guo@oss.qualcomm.com \
    --cc=James.Bottomley@HansenPartnership.com \
    --cc=alim.akhtar@samsung.com \
    --cc=avri.altman@wdc.com \
    --cc=beanhuo@micron.com \
    --cc=bvanassche@acm.org \
    --cc=krzk@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-scsi@vger.kernel.org \
    --cc=mani@kernel.org \
    --cc=martin.petersen@oracle.com \
    --cc=peter.wang@mediatek.com \
    --cc=quic_nitirawa@quicinc.com \
    --cc=quic_rdwivedi@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®