Skip to content
Snippets Groups Projects
Commit d20186bc authored by Manohar Vanga's avatar Manohar Vanga
Browse files

simulation: change spec_vendor name format to %04x


Signed-off-by: default avatarManohar Vanga <manohar.vanga@cern.ch>
parent 968318ce
Branches
Tags
No related merge requests found
......@@ -43,7 +43,7 @@ firmware file. The firmware file name is formatted as fakespec-VVVVVVVV-DDDD,
where V is vendor and D is device. The default device and vendor have been
set in the fake bus to 0xbabe, so the default firmware file is:
firmware-0000babe-babe
firmware-babe-babe
To change, use the spec_vendor and spec_device module parameters of the fake_wb_bus
driver. Remember to name the firmware to load accordingly.
......@@ -68,4 +68,4 @@ Installing Firmware
The generated firmware file should be 4MB in size. Copy the firmware
file into /lib/firmware/NAME where NAME is as specified above.
$ cp firmware.bin /lib/firmware/firmware-0000babe-babe
$ cp firmware.bin /lib/firmware/firmware-babe-babe
......@@ -61,7 +61,7 @@ static int fake_wbbus_probe(struct device *dev)
*
* Below, we just use the PCI id to get the firmware file.
*/
sprintf(fwname, "fakespec-%08x-%04x", spec_vendor, spec_device);
sprintf(fwname, "fakespec-%04x-%04x", spec_vendor, spec_device);
if (request_firmware(&wb_fw, fwname, dev)) {
pr_err(KBUILD_MODNAME ": failed to load "
"firmware \"%s\"\n", fwname);
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment