Skip to content

Commit

Permalink
ssb: PCI revision ID register is 8-bit wide
Browse files Browse the repository at this point in the history
The SSB code reads PCI revision ID register as 16-bit entity while the register
is actually 8-bit only (the next 8 bits are the programming interface register).
Fix the read and make the 'rev' field of 'struct ssb_boardinfo' 8-bit as well,
to match the register size.

Signed-off-by: Sergei Shtylyov <sshtylyov@ru.mvista.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
  • Loading branch information
Sergei Shtylyov authored and John W. Linville committed Jul 5, 2011
1 parent 45a7713 commit 304e21b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion drivers/ssb/pci.c
Original file line number Diff line number Diff line change
Expand Up @@ -738,7 +738,7 @@ static void ssb_pci_get_boardinfo(struct ssb_bus *bus,
&bi->vendor);
pci_read_config_word(bus->host_pci, PCI_SUBSYSTEM_ID,
&bi->type);
pci_read_config_word(bus->host_pci, PCI_REVISION_ID,
pci_read_config_byte(bus->host_pci, PCI_REVISION_ID,
&bi->rev);
}

Expand Down
2 changes: 1 addition & 1 deletion include/linux/ssb/ssb.h
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ struct ssb_sprom {
struct ssb_boardinfo {
u16 vendor;
u16 type;
u16 rev;
u8 rev;
};


Expand Down

0 comments on commit 304e21b

Please sign in to comment.