[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <BL2PR07MB23067271DDD44A0E3D31B99A8DF40@BL2PR07MB2306.namprd07.prod.outlook.com>
Date: Mon, 19 Sep 2016 08:16:46 +0000
From: "Mintz, Yuval" <Yuval.Mintz@...ium.com>
To: Michael Chan <michael.chan@...adcom.com>,
"davem@...emloft.net" <davem@...emloft.net>
CC: "netdev@...r.kernel.org" <netdev@...r.kernel.org>
Subject: RE: [PATCH net-next 04/10] bnxt_en: Added support for Secure Firmware
Update
> + if (bp->hwrm_spec_code < 0x10400)
> + return -EOPNOTSUPP;
Don't you use defines for these kind of version values?
> static int bnxt_flash_package_from_file(struct net_device *dev,
...
> + rc = request_firmware(&fw, filename, &dev->dev);
> + if (rc != 0) {
If (rc)
> + if ((install_type & 0xffff) == 0)
> + install_type >>= 16;
! instead of "== 0". Also, this looks 'magical'.
Powered by blists - more mailing lists