From: Yijing Wang Date: Thu, 19 Jun 2014 08:30:30 +0000 (+0800) Subject: PCI/MSI: Cache Multiple Message Capable in struct msi_desc X-Git-Tag: omap-for-v3.17/fixes-against-rc2~196^2~1^6 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=31ea5d4dfe21fb50276dcd70ce268e58d57eccb4;p=pandora-kernel.git PCI/MSI: Cache Multiple Message Capable in struct msi_desc The Multiple Message Capable field in the MSI Message Control register indicates how many vectors the device supports. This field is read-only, so cache it in msi_desc to avoid reading it repeatedly. Since we cache the extracted field (not the entire Message Control register), we can use msi_mask() instead of msi_capable_mask(), which is then unused, so remove it. [bhelgaas: fix whitespace, changelog] Signed-off-by: Yijing Wang Signed-off-by: Bjorn Helgaas --- Reading git-diff-tree failed