diff options
| author | Karol Kolacinski <[email protected]> | 2022-06-24 15:22:02 +0000 |
|---|---|---|
| committer | Tony Nguyen <[email protected]> | 2022-07-21 18:22:45 +0000 |
| commit | fcf9b695a554dd8b74863ea59b639515f95b10ee (patch) | |
| tree | 4069240dc37e1ebeaf5e097d357bcb6d19422d74 /drivers/net/ethernet/intel/ice/ice_common.h | |
| parent | net/cdc_ncm: Increase NTB max RX/TX values to 64kb (diff) | |
| download | kernel-fcf9b695a554dd8b74863ea59b639515f95b10ee.tar.gz kernel-fcf9b695a554dd8b74863ea59b639515f95b10ee.zip | |
ice: add i2c write command
Add the possibility to write to connected i2c devices using the AQ
command. FW may reject the write if the device is not on allowlist.
Signed-off-by: Karol Kolacinski <[email protected]>
Tested-by: Gurucharan <[email protected]> (A Contingent worker at Intel)
Signed-off-by: Tony Nguyen <[email protected]>
Diffstat (limited to 'drivers/net/ethernet/intel/ice/ice_common.h')
| -rw-r--r-- | drivers/net/ethernet/intel/ice/ice_common.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/net/ethernet/intel/ice/ice_common.h b/drivers/net/ethernet/intel/ice/ice_common.h index 872ea7d2332d..61b7c60db689 100644 --- a/drivers/net/ethernet/intel/ice/ice_common.h +++ b/drivers/net/ethernet/intel/ice/ice_common.h @@ -214,5 +214,9 @@ int ice_aq_read_i2c(struct ice_hw *hw, struct ice_aqc_link_topo_addr topo_addr, u16 bus_addr, __le16 addr, u8 params, u8 *data, struct ice_sq_cd *cd); +int +ice_aq_write_i2c(struct ice_hw *hw, struct ice_aqc_link_topo_addr topo_addr, + u16 bus_addr, __le16 addr, u8 params, u8 *data, + struct ice_sq_cd *cd); bool ice_fw_supports_report_dflt_cfg(struct ice_hw *hw); #endif /* _ICE_COMMON_H_ */ |
