From: Wolfram Sang <wsa@kernel.org>
To: Riwen Lu <luriwen@hotmail.com>
Cc: linux-i2c@vger.kernel.org, linux-kernel@vger.kernel.org,
xiongxin@kylinos.cn, Riwen Lu <luriwen@kylinos.cn>
Subject: Re: [PATCH v1] i2c: i2c-core-base: Modify the maximum idr id for i2c adapter
Date: Sun, 29 Oct 2023 18:25:37 +0100 [thread overview]
Message-ID: <ZT6VkUjzhy3/rEP2@shikoro> (raw)
In-Reply-To: <TYCP286MB2607A8F23BC707F4E4FD8859B1FF9@TYCP286MB2607.JPNP286.PROD.OUTLOOK.COM>
[-- Attachment #1: Type: text/plain, Size: 587 bytes --]
> The Phytium i2c driver would register the i2c adapter with idr id 0 by
> calling function i2c_add_numbered_adapter(adap). Then, function
> idr_alloc(&i2c_adapter_idr, adap, adap->nr, adap->nr + 1, GFP_KERNEL);
> allocate the idr failed because idr id adap->nr(It equal to _UID) has been
> allocated by MWV207 GPU, and print the following error:
>
> couldn't get idr
> i2c-phytium-platform PHYT0038:00: fail to add adapter: -16
i2c-phytium-platform is not an upstream driver, right? Why does it not
simply use i2c_add_adapter() instead of i2c_add_numbered_adapter()?
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
prev parent reply other threads:[~2023-10-29 17:25 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-12-16 2:07 [PATCH v1] i2c: i2c-core-base: Modify the maximum idr id for i2c adapter Riwen Lu
2023-01-09 15:13 ` Wolfram Sang
2023-01-10 8:39 ` Riwen Lu
2023-10-29 17:25 ` Wolfram Sang [this message]
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=ZT6VkUjzhy3/rEP2@shikoro \
--to=wsa@kernel.org \
--cc=linux-i2c@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=luriwen@hotmail.com \
--cc=luriwen@kylinos.cn \
--cc=xiongxin@kylinos.cn \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.