View | Details | Raw Unified | Return to bug 5832 | Differences between
and this patch

Collapse All | Expand All

(-)work11.orig/drivers/pnp/pnpacpi/rsparser.c (-2 / +8 lines)
Lines 742-747 static acpi_status pnpacpi_type_resource Link Here
742
	if (pnpacpi_supported_resource(res)) {
742
	if (pnpacpi_supported_resource(res)) {
743
		(*resource)->type = res->type;
743
		(*resource)->type = res->type;
744
		(*resource)->length = sizeof(struct acpi_resource);
744
		(*resource)->length = sizeof(struct acpi_resource);
745
		if (res->type == ACPI_RESOURCE_TYPE_IRQ)
746
			(*resource)->data.irq.descriptor_length =
747
					res->data.irq.descriptor_length;
745
		(*resource)++;
748
		(*resource)++;
746
	}
749
	}
747
750
Lines 799-809 static void pnpacpi_encode_irq(struct pn Link Here
799
		irq->sharable = ACPI_SHARED;
802
		irq->sharable = ACPI_SHARED;
800
	irq->interrupt_count = 1;
803
	irq->interrupt_count = 1;
801
	irq->interrupts[0] = p->start;
804
	irq->interrupts[0] = p->start;
805
	irq->descriptor_length = resource->data.irq.descriptor_length;
802
806
803
	dev_dbg(&dev->dev, "  encode irq %d %s %s %s\n", (int) p->start,
807
	dev_dbg(&dev->dev, "  encode irq %d %s %s %s (%d-byte descriptor)\n",
808
		(int) p->start,
804
		triggering == ACPI_LEVEL_SENSITIVE ? "level" : "edge",
809
		triggering == ACPI_LEVEL_SENSITIVE ? "level" : "edge",
805
		polarity == ACPI_ACTIVE_LOW ? "low" : "high",
810
		polarity == ACPI_ACTIVE_LOW ? "low" : "high",
806
		irq->sharable == ACPI_SHARED ? "shared" : "exclusive");
811
		irq->sharable == ACPI_SHARED ? "shared" : "exclusive",
812
		irq->descriptor_length);
807
}
813
}
808
814
809
static void pnpacpi_encode_ext_irq(struct pnp_dev *dev,
815
static void pnpacpi_encode_ext_irq(struct pnp_dev *dev,

Return to bug 5832