linux-i3c.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
From: Steven Niu <steven.niu.uj@renesas.com>
To: "alexandre.belloni@bootlin.com" <alexandre.belloni@bootlin.com>
Cc: "linux-i3c@lists.infradead.org" <linux-i3c@lists.infradead.org>,
	Steven Niu <steven.niu.uj@renesas.com>
Subject: How to add I3C device node for devices with random PID[31:0]
Date: Tue, 12 Mar 2024 11:30:30 +0000	[thread overview]
Message-ID: <OSAPR01MB4323733A7B1678DE5B8C3027BA2B2@OSAPR01MB4323.jpnprd01.prod.outlook.com> (raw)

Hi, Alexandre,

There is a class if I3C device with random value in PID[31:0] and these devices
are identified with PID[32]=1.

In function of_i3c_master_add_i3c_boardinfo(), the node for i3c device with
random PID is denied to be added to baordinfo with code below:

>  if ((boardinfo->pid & GENMASK_ULL(63, 48)) ||
>         I3C_PID_RND_LOWER_32BITS(boardinfo->pid))
>  return -EINVAL;

According i3c.yaml, an I3C device is allowed to attach extra resources by
adding node in devicetree. I have some questions:
1. Why the I3C devices with random PID are excluded here?
2. How to attach extra resources to such kind of devices?
3. Could 'I3C_PID_RND_LOWER_32BITS(boardinfo->pid)' be removed to allow adding
   the node of i3c devices with random PID to i3c boardinfo list?

Thank you.


Regards,
Steven

-- 
linux-i3c mailing list
linux-i3c@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-i3c

                 reply	other threads:[~2024-03-12 11:31 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=OSAPR01MB4323733A7B1678DE5B8C3027BA2B2@OSAPR01MB4323.jpnprd01.prod.outlook.com \
    --to=steven.niu.uj@renesas.com \
    --cc=alexandre.belloni@bootlin.com \
    --cc=linux-i3c@lists.infradead.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;
as well as URLs for NNTP newsgroup(s).