From: Vasundhara Volam Date: Tue, 6 Aug 2013 03:57:16 +0000 (+0530) Subject: be2net: Do not call get_die_temperature cmd for VF X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=d696b5e26c9963cc68dc559f2fcaa7e0e653aa8a;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git be2net: Do not call get_die_temperature cmd for VF This is a chip wide value and the PFs already report it. Signed-off-by: Vasundhara Volam Signed-off-by: Sathya Perla Signed-off-by: David S. Miller --- diff --git a/drivers/net/ethernet/emulex/benet/be_main.c b/drivers/net/ethernet/emulex/benet/be_main.c index 4c40e3e3fd0a..82597e5387f5 100644 --- a/drivers/net/ethernet/emulex/benet/be_main.c +++ b/drivers/net/ethernet/emulex/benet/be_main.c @@ -4144,7 +4144,8 @@ static void be_worker(struct work_struct *work) be_cmd_get_stats(adapter, &adapter->stats_cmd); } - if (MODULO(adapter->work_counter, adapter->be_get_temp_freq) == 0) + if (be_physfn(adapter) && + MODULO(adapter->work_counter, adapter->be_get_temp_freq) == 0) be_cmd_get_die_temperature(adapter); for_all_rx_queues(adapter, rxo, i) {