[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [linux-2.6.18-xen] pciback: Global 'permissive' module parameter.



# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1232382317 0
# Node ID 0fadef4d5c46ca1579c46e2f55d2f3a165db2a08
# Parent  d490aa798cc4efffca3f0dc4bbe41efa9d84e248
pciback: Global 'permissive' module parameter.

Signed-off-by: Keir Fraser <keir.fraser@xxxxxxxxxx>
---
 drivers/xen/pciback/conf_space.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletion(-)

diff -r d490aa798cc4 -r 0fadef4d5c46 drivers/xen/pciback/conf_space.c
--- a/drivers/xen/pciback/conf_space.c  Wed Jan 14 14:04:07 2009 +0000
+++ b/drivers/xen/pciback/conf_space.c  Mon Jan 19 16:25:17 2009 +0000
@@ -14,6 +14,9 @@
 #include "pciback.h"
 #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                               \
@@ -255,7 +258,7 @@ int pciback_config_write(struct pci_dev 
                 * 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,

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.