Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/mlx5/mlx5_core/mlx5_fwdump.c
Show First 20 Lines • Show All 334 Lines • ▼ Show 20 Lines | |||||
mlx5_fw_reset(struct mlx5_core_dev *mdev) | mlx5_fw_reset(struct mlx5_core_dev *mdev) | ||||
{ | { | ||||
device_t dev, bus; | device_t dev, bus; | ||||
int error; | int error; | ||||
error = -mlx5_set_mfrl_reg(mdev, MLX5_FRL_LEVEL3); | error = -mlx5_set_mfrl_reg(mdev, MLX5_FRL_LEVEL3); | ||||
if (error == 0) { | if (error == 0) { | ||||
dev = mdev->pdev->dev.bsddev; | dev = mdev->pdev->dev.bsddev; | ||||
mtx_lock(&Giant); | bus_topo_lock(); | ||||
bus = device_get_parent(dev); | bus = device_get_parent(dev); | ||||
error = BUS_RESET_CHILD(device_get_parent(bus), bus, | error = BUS_RESET_CHILD(device_get_parent(bus), bus, | ||||
DEVF_RESET_DETACH); | DEVF_RESET_DETACH); | ||||
mtx_unlock(&Giant); | bus_topo_unlock(); | ||||
} | } | ||||
return (error); | return (error); | ||||
} | } | ||||
static int | static int | ||||
mlx5_eeprom_copyout(struct mlx5_core_dev *dev, struct mlx5_eeprom_get *eeprom_info) | mlx5_eeprom_copyout(struct mlx5_core_dev *dev, struct mlx5_eeprom_get *eeprom_info) | ||||
{ | { | ||||
struct mlx5_eeprom eeprom; | struct mlx5_eeprom eeprom; | ||||
▲ Show 20 Lines • Show All 182 Lines • Show Last 20 Lines |