Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fpga: dfl: fme: fix regression querying platform device in power_hwmo…
…n_write() The function power_hwmon_write() receives a hwmon device created with devm_hwmon_device_register_with_info(). Its parent device is the platform device, i.e., dfl-fme.X device. The platform device is passed to to_dfl_feature_dev_data(), which queries the associated platform data to retrieve the feature device data. The FME power management feature was available on Intel(R) Xeon(R) CPU with Integrated FPGAs, which were capable of drawing more power than the socket could deliver. Discrete FPGA cards do not expose this feature. Fixes: 43adaa2 ("fpga: dfl: fix the kernel warning when release/assign ports for SRIOV") Signed-off-by: Peter Colberg <peter.colberg@intel.com>
- Loading branch information