WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-changelog

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

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [linux-2.6.18-xen] pciback: Global 'permissive' module parameter.
From: "Xen patchbot-linux-2.6.18-xen" <patchbot-linux-2.6.18-xen@xxxxxxxxxxxxxxxxxxx>
Date: Mon, 19 Jan 2009 12:55:03 -0800
Delivery-date: Mon, 19 Jan 2009 12:54:42 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# 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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [linux-2.6.18-xen] pciback: Global 'permissive' module parameter., Xen patchbot-linux-2.6.18-xen <=