ia64/linux-2.6.18-xen.hg

changeset 779:0fadef4d5c46

pciback: Global 'permissive' module parameter.

Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
author Keir Fraser <keir.fraser@citrix.com>
date Mon Jan 19 16:25:17 2009 +0000 (2009-01-19)
parents d490aa798cc4
children 7ff5bab08275
files drivers/xen/pciback/conf_space.c
line diff
     1.1 --- a/drivers/xen/pciback/conf_space.c	Wed Jan 14 14:04:07 2009 +0000
     1.2 +++ b/drivers/xen/pciback/conf_space.c	Mon Jan 19 16:25:17 2009 +0000
     1.3 @@ -15,6 +15,9 @@
     1.4  #include "conf_space.h"
     1.5  #include "conf_space_quirks.h"
     1.6  
     1.7 +static int permissive;
     1.8 +module_param(permissive, bool, 0644);
     1.9 +
    1.10  #define DEFINE_PCI_CONFIG(op,size,type) 			\
    1.11  int pciback_##op##_config_##size 				\
    1.12  (struct pci_dev *dev, int offset, type value, void *data)	\
    1.13 @@ -255,7 +258,7 @@ int pciback_config_write(struct pci_dev 
    1.14  		 * This means that some fields may still be read-only because
    1.15  		 * they have entries in the config_field list that intercept
    1.16  		 * the write and do nothing. */
    1.17 -		if (dev_data->permissive) {
    1.18 +		if (dev_data->permissive || permissive) {
    1.19  			switch (size) {
    1.20  			case 1:
    1.21  				err = pci_write_config_byte(dev, offset,