]> xenbits.xensource.com Git - legacy/linux-2.6.18-xen.git/commitdiff
pciback: Global 'permissive' module parameter.
authorKeir Fraser <keir.fraser@citrix.com>
Mon, 19 Jan 2009 16:25:17 +0000 (16:25 +0000)
committerKeir Fraser <keir.fraser@citrix.com>
Mon, 19 Jan 2009 16:25:17 +0000 (16:25 +0000)
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
drivers/xen/pciback/conf_space.c

index 3b7cd8c4af3e98bebfded20b52bc73ee290cac98..0c4dd49067bf4f86c3862d91451481745750c2b6 100644 (file)
@@ -15,6 +15,9 @@
 #include "conf_space.h"
 #include "conf_space_quirks.h"
 
+static int permissive;
+module_param(permissive, bool, 0644);
+
 #define DEFINE_PCI_CONFIG(op,size,type)                        \
 int pciback_##op##_config_##size                               \
 (struct pci_dev *dev, int offset, type value, void *data)      \
@@ -255,7 +258,7 @@ int pciback_config_write(struct pci_dev *dev, int offset, int size, u32 value)
                 * This means that some fields may still be read-only because
                 * they have entries in the config_field list that intercept
                 * the write and do nothing. */
-               if (dev_data->permissive) {
+               if (dev_data->permissive || permissive) {
                        switch (size) {
                        case 1:
                                err = pci_write_config_byte(dev, offset,