Lines Matching +full:non +full:- +full:compliant

1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * Hardware monitoring driver for FSP 3Y-Power PSUs
56 return -EINVAL; in page_log_to_page_real()
66 return -EINVAL; in page_log_to_page_real()
69 return -EINVAL; in page_log_to_page_real()
82 page_real = page_log_to_page_real(page_log, data->chip); in set_page()
86 if (data->page != page_real) { in set_page()
91 data->page = page_real; in set_page()
113 * Inject an exponent for non-compliant YH5151-E. in fsp3y_read_byte_data()
115 if (data->vout_linear_11 && reg == PMBUS_VOUT_MODE) in fsp3y_read_byte_data()
152 return -ENXIO; in fsp3y_read_word_data()
164 * Handle YH-5151E non-compliant linear11 vout voltage. in fsp3y_read_word_data()
166 if (data->vout_linear_11 && reg == PMBUS_READ_VOUT) in fsp3y_read_word_data()
216 if (!strcmp(buf, "YM-2151E")) in fsp3y_detect()
218 else if (!strcmp(buf, "YH-5151E")) in fsp3y_detect()
222 dev_err(&client->dev, "Unsupported model %.*s\n", rv, buf); in fsp3y_detect()
223 return -ENODEV; in fsp3y_detect()
238 data = devm_kzalloc(&client->dev, sizeof(struct fsp3y_data), GFP_KERNEL); in fsp3y_probe()
240 return -ENOMEM; in fsp3y_probe()
242 data->chip = fsp3y_detect(client); in fsp3y_probe()
243 if (data->chip < 0) in fsp3y_probe()
244 return data->chip; in fsp3y_probe()
247 if (data->chip != id->driver_data) in fsp3y_probe()
248 dev_warn(&client->dev, "Device mismatch: Configured %s (%d), detected %d\n", in fsp3y_probe()
249 id->name, (int)id->driver_data, data->chip); in fsp3y_probe()
254 data->page = rv; in fsp3y_probe()
256 data->info = fsp3y_info[data->chip]; in fsp3y_probe()
259 * YH-5151E sometimes reports vout in linear11 and sometimes in in fsp3y_probe()
261 * YH-5151E can use linear16 and another might use linear11 instead. in fsp3y_probe()
263 * The format can be recognized by reading VOUT_MODE - if it doesn't in fsp3y_probe()
265 * device is compliant and uses linear16. in fsp3y_probe()
267 data->vout_linear_11 = false; in fsp3y_probe()
268 if (data->chip == yh5151e) { in fsp3y_probe()
274 data->vout_linear_11 = true; in fsp3y_probe()
277 return pmbus_do_probe(client, &data->info); in fsp3y_probe()
293 MODULE_DESCRIPTION("PMBus driver for FSP/3Y-Power power supplies");