From 25f7c272e5a3a9060e1823e9aa4a43d840584484 Mon Sep 17 00:00:00 2001 From: Keir Fraser Date: Mon, 19 Jan 2009 16:25:17 +0000 Subject: [PATCH] pciback: Global 'permissive' module parameter. Signed-off-by: Keir Fraser --- drivers/xen/pciback/conf_space.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/xen/pciback/conf_space.c b/drivers/xen/pciback/conf_space.c index 3b7cd8c4..0c4dd490 100644 --- a/drivers/xen/pciback/conf_space.c +++ b/drivers/xen/pciback/conf_space.c @@ -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, -- 2.39.5