lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <ZT6VkUjzhy3/rEP2@shikoro>
Date:   Sun, 29 Oct 2023 18:25:37 +0100
From:   Wolfram Sang <wsa@...nel.org>
To:     Riwen Lu <luriwen@...mail.com>
Cc:     linux-i2c@...r.kernel.org, linux-kernel@...r.kernel.org,
        xiongxin@...inos.cn, Riwen Lu <luriwen@...inos.cn>
Subject: Re: [PATCH v1] i2c: i2c-core-base: Modify the maximum idr id for i2c
 adapter


> 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()?


Download attachment "signature.asc" of type "application/pgp-signature" (834 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ