/* * Disable status check because some devices report communication error * (invalid command) for VOUT_MODE command (0x20) although the correct * VOUT_MODE (0x16) is returned: it leads to incorrect exponent in linear * mode. * This affects both pfe3000 and pfe1100.
*/ staticstruct pmbus_platform_data pfe_plat_data = {
.flags = PMBUS_SKIP_STATUS_CHECK,
};
staticint pfe_pmbus_probe(struct i2c_client *client)
{ int model;
model = (int)i2c_match_id(pfe_device_id, client)->driver_data;
client->dev.platform_data = &pfe_plat_data;
/* * PFE3000-12-069RA devices may not stay in page 0 during device * probe which leads to probe failure (read status word failed). * So let's set the device to page 0 at the beginning.
*/ if (model == pfe3000)
i2c_smbus_write_byte_data(client, PMBUS_PAGE, 0);
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.