]> rtime.felk.cvut.cz Git - hercules2020/nv-tegra/linux-4.4.git/commit
ethernet: eqos: check tegra_prod_set_by_name() return values
authorBhadram Varka <vbhadram@nvidia.com>
Tue, 14 Mar 2017 10:43:28 +0000 (16:13 +0530)
committermobile promotions <svcmobile_promotions@nvidia.com>
Mon, 20 Mar 2017 13:42:28 +0000 (06:42 -0700)
commitef0375c6d1d4091c566a1dc0adada4891dd71993
tree707fb7f79b44812bc336e6223d1d53ecc77eb9c1
parent7921a200577ed3c98781085b20561dc9f6bd950f
ethernet: eqos: check tegra_prod_set_by_name() return values

tegra_prod_set_by_name() can be failed in below cases
1. Prod-setting DT property missing
2. Setting the prod settings according to the name.

This patch is to add separate debug messages for above two
scenarios by checking the proper return values.

Bug 200280316

Change-Id: Ife2fa7c3d58be97185028c9afe3f34a6c8e23f27
Signed-off-by: Bhadram Varka <vbhadram@nvidia.com>
Reviewed-on: http://git-master/r/1320518
(cherry picked from commit f906f24aa86bcf284a0f4847d532f9a914057204)
Reviewed-on: http://git-master/r/1322911
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
drivers/net/ethernet/nvidia/eqos/init.c
drivers/net/ethernet/nvidia/eqos/mdio.c