Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 359a972f authored by Sathya Perla's avatar Sathya Perla Committed by David S. Miller
Browse files

be2net: FW init cmd fix for lancer



Lancer can use the same pattern as BE to indicate a driver load
to the FW.

Signed-off-by: default avatarPadmanabh Ratnakar <padmanabh.ratnakar@emulex.com>
Signed-off-by: default avatarSathya Perla <sathya.perla@emulex.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 63657b9c
Loading
Loading
Loading
Loading
+8 −19
Original line number Diff line number Diff line
@@ -470,16 +470,6 @@ int be_cmd_fw_init(struct be_adapter *adapter)
	spin_lock(&adapter->mbox_lock);

	wrb = (u8 *)wrb_from_mbox(adapter);
	if (lancer_chip(adapter)) {
		*wrb++ = 0xFF;
		*wrb++ = 0x34;
		*wrb++ = 0x12;
		*wrb++ = 0xFF;
		*wrb++ = 0xFF;
		*wrb++ = 0x78;
		*wrb++ = 0x56;
		*wrb = 0xFF;
	} else {
	*wrb++ = 0xFF;
	*wrb++ = 0x12;
	*wrb++ = 0x34;
@@ -488,7 +478,6 @@ int be_cmd_fw_init(struct be_adapter *adapter)
	*wrb++ = 0x56;
	*wrb++ = 0x78;
	*wrb = 0xFF;
	}

	status = be_mbox_notify_wait(adapter);