summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorSiddharth Vadapalli <[email protected]>2026-03-05 16:08:14 +0530
committerMattijs Korpershoek <[email protected]>2026-03-12 09:59:33 +0100
commit433a17aca15481cde866a9bc636b61584360fbb3 (patch)
tree99ff04b308f7740afe706cbc0390f735812a4758 /scripts
parent7b60cd933bc1db31c94483f6aeb9289722427c5e (diff)
common: spl: spl_dfu.c: Fix warning associated with PCI subclass_code
The subclass_code member of the pci_ep_header structure is a 1-byte field. The macro PCI_CLASS_MEMORY_RAM is a concetation of baseclass_code and subclass_code as follows: PCI_BASE_CLASS_MEMORY: 0x05 Subclass Code for RAM: 0x00 PCI_CLASS_MEMORY_RAM: 0x0500 Hence, instead of extracting it via an implicity type conversion from int to u8 which throws a warning, explicitly mask the bits to extract the subclass_code. Fixes: cde77583cf0b ("spl: Add support for Device Firmware Upgrade (DFU) over PCIe") Signed-off-by: Siddharth Vadapalli <[email protected]> Tested-by: Anshul Dalal <[email protected]> Reviewed-by: Mattijs Korpershoek <[email protected]> Tested-by: Mattijs Korpershoek <[email protected]> # am62x_evm_a53 Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Mattijs Korpershoek <[email protected]>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions