edac: fix local pci_write_bits32

Fix the edac local pci_write_bits32 to properly note the 'escape' mask if
all ones in a 32-bit word.

Currently no consumer of this function uses that mask, so there is no
danger to existing code.

Signed-off-by: Jeff Haran <jharan@Brocade.COM>
Signed-off-by: Doug Thompson <dougthompson@xmission.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

authored by Jeff Haran and committed by Linus Torvalds e6da46b2 a7665b0a

+10 -2
+10 -2
drivers/edac/edac_core.h
··· 767 pci_write_config_word(pdev, offset, value); 768 } 769 770 - /* write all or some bits in a dword-register*/ 771 static inline void pci_write_bits32(struct pci_dev *pdev, int offset, 772 u32 value, u32 mask) 773 { 774 - if (mask != 0xffff) { 775 u32 buf; 776 777 pci_read_config_dword(pdev, offset, &buf);
··· 767 pci_write_config_word(pdev, offset, value); 768 } 769 770 + /* 771 + * pci_write_bits32 772 + * 773 + * edac local routine to do pci_write_config_dword, but adds 774 + * a mask parameter. If mask is all ones, ignore the mask. 775 + * Otherwise utilize the mask to isolate specified bits 776 + * 777 + * write all or some bits in a dword-register 778 + */ 779 static inline void pci_write_bits32(struct pci_dev *pdev, int offset, 780 u32 value, u32 mask) 781 { 782 + if (mask != 0xffffffff) { 783 u32 buf; 784 785 pci_read_config_dword(pdev, offset, &buf);