Re: [PATCH 5/8] platform: arm64: qcom-hamoa-ec: Verify required I2C adapter functionality

From: Anvesh Jain P

Date: Thu Jul 30 2026 - 02:47:39 EST




On 7/29/2026 4:38 PM, Konrad Dybcio wrote:
>> + if (!i2c_check_functionality(client->adapter,
>> + I2C_FUNC_I2C | I2C_FUNC_SMBUS_BYTE_DATA |
>> + I2C_FUNC_SMBUS_WRITE_I2C_BLOCK))
>> + return -EOPNOTSUPP;
> return dev_err_probe(dev, -EOPNOTSUPP, "I2C adapter missing required functionality\n")

Ack, will switch to dev_err_probe() there so a probe failure due to
missing adapter functionality actually shows up in dmesg.

--
Best Regards,
Anvesh