[PATCH v21 3/4] i2c: ast2600: Add controller driver for new register layout
andriy.shevchenko at linux.intel.com
andriy.shevchenko at linux.intel.com
Fri Nov 7 20:42:39 AEDT 2025
On Fri, Nov 07, 2025 at 06:26:39AM +0000, Ryan Chen wrote:
> > On 27/10/2025 07:12, Ryan Chen wrote:
...
> Add new file i2c-aspeed-core.c to do legacy probe and i2c-ast2600 probe.
>
> if (of_device_is_compatible(dev_of_node(dev), "aspeed,ast2600-i2c-bus") &&
if (device_is_compatible(dev, "aspeed,ast2600-i2c-bus") &&
> of_parse_phandle(dev_of_node(dev), "aspeed,global-regs", 0)) {
Not sure why do you need this. Isn't it as simple as
device_property_present(dev, "aspeed,global-regs", 0)) {
or something between these lines?
> ret = ast2600_i2c_probe(pdev);
> } else {
> ret = aspeed_i2c_probe(pdev);
> }
--
With Best Regards,
Andy Shevchenko
More information about the openbmc
mailing list