Sync Ubuntu patches
cover Sync Ubuntu patches
The following changes are found in the git repository at:
rsync://rsync.kernel.org/pub/scm/linux/kernel/git/bcollins/ubuntu-2.6.git#for-linus
Ben Collins:
asus_acpi: Invert read of wled proc file to show correct state of LED. ide/sis5513: Add support for 965 chipset
drivers/acpi/asus_acpi.c | 10 +++++----- drivers/ide/pci/sis5513.c | 8 +++++++- include/linux/pci_ids.h | 1 + 3 files changed, 13 insertions(+), 6 deletions(-)
PATCH 1/2 asus_acpi: Invert read of wled proc file to show correct state of LED.
User with this equipment stated that writes to this file worked correctly, but that reads were showing inverted state (1 for off, 0 for on). Following the same style for reads, introduced an invert flag to read_led, and used it for wled.
---
drivers/acpi/asus_acpi.c | 10 +++++----- 1 files changed, 5 insertions(+), 5 deletions(-)
applies-to: f7e55af855531331113cbddb98688f3901d48425 d23291aeab378d85b93eda31f043a41449a5b474
drivers/acpi/asus_acpi.c +5 -5
@@ -490,13 +490,13 @@ proc_read_info(char *page, char **start,*/ /* Generic LED functions */ -static int read_led (const char *ledname,int ledmask) +static int read_led (const char *ledname,int ledmask,int invert) {if (ledname) {int led_status;if (read_acpi_int (NULL , ledname, &led_status)) -return led_status; +return (invert) ? !led_status : led_status;else printk (KERN_WARNING "Asus ACPI: Error reading LED " "status\n" );
@@ -552,7 +552,7 @@ proc_read_mled(char *page, char **start, void *data) {return sprintf (page,"%d\n" , -read_led (hotk->methods->mled_status,MLED_ON )); +read_led (hotk->methods->mled_status,MLED_ON ,0 )); } static int
@@ -570,7 +570,7 @@ proc_read_wled(char *page, char **start, void *data) {return sprintf (page,"%d\n" , -read_led (hotk->methods->wled_status,WLED_ON )); +read_led (hotk->methods->wled_status,WLED_ON ,1 )); } static int
@@ -588,7 +588,7 @@ proc_read_tled(char *page, char **start, void *data) {return sprintf (page,"%d\n" , -read_led (hotk->methods->tled_status,TLED_ON )); +read_led (hotk->methods->tled_status,TLED_ON ,0 )); } static int
---
0.99.9k
PATCH 2/2 ide/sis5513: Add support for 965 chipset
Tested by Ubuntu user.
http://bugzilla.ubuntu.com/17236
---
drivers/ide/pci/sis5513.c | 8 +++++++- include/linux/pci_ids.h | 1 + 2 files changed, 8 insertions(+), 1 deletions(-)
applies-to: a3b21d3b4c1fc36a94b3ffd9e722254ea2a8a950 3f0c8c36457e8f67471e1d0432f8cc1c5a6bedac
drivers/ide/pci/sis5513.c +7 -1
@@ -766,7 +766,7 @@ static unsigned int __devinit init_chipspci_read_config_word (dev,PCI_DEVICE_ID , &trueid);pci_write_config_dword (dev,0x54 , idemisc); -if (trueid ==0x5518 ) { +if (trueid ==PCI_DEVICE_ID_SI_5518 ) {printk (KERN_INFO "SIS5513: SiS 962/963 MuTIOL IDE UDMA133 controller\n" ); chipset_family =ATA_133 ;
@@ -779,6 +779,11 @@ static unsigned int __devinit init_chipsprintk (KERN_INFO "SIS5513: Switching to 5513 register mapping\n" ); } } + +if (trueid ==PCI_DEVICE_ID_SI_180 ) { + chipset_family =ATA_133 ; +printk (KERN_INFO "SIS5513: SiS 965 IDE UDMA133 controller\n" ); + } }if (!chipset_family) {/* Belongs to pci-quirks */
@@ -953,6 +958,7 @@ static int __devinit sis5513_init_one(ststatic struct pci_device_id sis5513_pci_tbl[] = { {PCI_VENDOR_ID_SI ,PCI_DEVICE_ID_SI_5513 ,PCI_ANY_ID ,PCI_ANY_ID ,0 ,0 ,0 }, {PCI_VENDOR_ID_SI ,PCI_DEVICE_ID_SI_5518 ,PCI_ANY_ID ,PCI_ANY_ID ,0 ,0 ,0 }, + {PCI_VENDOR_ID_SI ,PCI_DEVICE_ID_SI_180 ,PCI_ANY_ID ,PCI_ANY_ID ,0 ,0 ,0 }, {0 , }, };MODULE_DEVICE_TABLE (pci, sis5513_pci_tbl);
include/linux/pci_ids.h +1 -0
@@ -581,6 +581,7 @@#define PCI_DEVICE_ID_SI_ACPI 0x0009#define PCI_DEVICE_ID_SI_SMBUS 0x0016#define PCI_DEVICE_ID_SI_LPC 0x0018 +#define PCI_DEVICE_ID_SI_180 0x0180#define PCI_DEVICE_ID_SI_5597_VGA 0x0200#define PCI_DEVICE_ID_SI_6205 0x0205#define PCI_DEVICE_ID_SI_501 0x0406
---
0.99.9k
Re: [PATCH 2/2] ide/sis5513: Add support for 965 chipset
Hi,
SiS965 support has been merged recently (different patch because sis5513_pci_tbl[] chunk of this patch causes problems on the real SiS180 controller).
Please ask the user to test vanilla 2.6.15-rc5.
Thanks,
Bartlomiej
Quoted 5 lines · Ben Collins
Tested by Ubuntu user.
http://bugzilla.ubuntu.com/17236
Signed-off-by Ben Collins <[email protected]>
Re: [PATCH 2/2] ide/sis5513: Add support for 965 chipset
Quoted 7 lines · Bartlomiej Zolnierkiewicz
Hi,
SiS965 support has been merged recently (different patch because sis5513_pci_tbl[] chunk of this patch causes problems on the real SiS180 controller).
Please ask the user to test vanilla 2.6.15-rc5.
This patch was against 2.6.15-rc5.
Signature · 3 lines
Ben Collins <[email protected]> Developer Ubuntu Linux
Re: [PATCH 2/2] ide/sis5513: Add support for 965 chipset
Quoted 10 lines · Ben Collins
Quoted 7 lines · Bartlomiej Zolnierkiewicz
Hi,
SiS965 support has been merged recently (different patch because sis5513_pci_tbl[] chunk of this patch causes problems on the real SiS180 controller).
Please ask the user to test vanilla 2.6.15-rc5.
This patch was against 2.6.15-rc5.
The original bug was filled against 2.6.12-9-amd64-k8 and then reported to work with this patch with 2.6.14-something (probably, because the exact kernel version is not mentioned in the bugzilla).
Were you able to reproduce the problem with 2.6.15-rc5?
BTW please use [email protected] for ATA stuff
Thanks,
Bartlomiej
Re: [PATCH 2/2] ide/sis5513: Add support for 965 chipset
Quoted 10 lines · Bartlomiej Zolnierkiewicz
Quoted 9 lines · Ben Collins
Quoted 7 lines · Bartlomiej Zolnierkiewicz
Hi,
SiS965 support has been merged recently (different patch because sis5513_pci_tbl[] chunk of this patch causes problems on the real SiS180 controller).
Please ask the user to test vanilla 2.6.15-rc5.
Quoted 7 lines
Quoted 1 line
This patch was against 2.6.15-rc5.
The original bug was filled against 2.6.12-9-amd64-k8 and then reported to work with this patch with 2.6.14-something (probably, because the exact kernel version is not mentioned in the bugzilla).
Were you able to reproduce the problem with 2.6.15-rc5?
No, but the useful bits were nowhere to be found, so I figured that it still applied.
Quoted 1 line
BTW please use [email protected] for ATA stuff
Sure thing.
Signature · 3 lines
Ben Collins <[email protected]> Developer Ubuntu Linux
Re: [PATCH 2/2] ide/sis5513: Add support for 965 chipset
Quoted 13 lines · Ben Collins
Quoted 12 lines · Bartlomiej Zolnierkiewicz
Quoted 10 lines · Ben Collins
Quoted 7 lines · Bartlomiej Zolnierkiewicz
Hi,
SiS965 support has been merged recently (different patch because sis5513_pci_tbl[] chunk of this patch causes problems on the real SiS180 controller).
Please ask the user to test vanilla 2.6.15-rc5.
This patch was against 2.6.15-rc5.
Quoted 8 lines
Quoted 5 lines
The original bug was filled against 2.6.12-9-amd64-k8 and then reported to work with this patch with 2.6.14-something (probably, because the exact kernel version is not mentioned in the bugzilla).
Were you able to reproduce the problem with 2.6.15-rc5?
No, but the useful bits were nowhere to be found, so I figured that it still applied.
The useful bits are here:
http://kernel.org/git/?p=linux/kernel/git/bcollins/ubuntu-2.6.git;a=commitdiff;h=14351f8e573442e2437d4b177fa10075aaefd5c9;hp=4f1d774aadfc5a6ed1545dca180f66ab6d0f543d
The author of the patch that you are submitting confirmed that a new patch works for him and suggested that it should be used instead of the original patch (because it conflicts with sata_sis driver as it claims the wrong PCI device).
Bartlomiej
Re: [PATCH 2/2] ide/sis5513: Add support for 965 chipset
Quoted 7 lines · Bartlomiej Zolnierkiewicz
The useful bits are here:
http://kernel.org/git/?p=linux/kernel/git/bcollins/ubuntu-2.6.git;a=commitdiff;h=14351f8e573442e2437d4b177fa10075aaefd5c9;hp=4f1d774aadfc5a6ed1545dca180f66ab6d0f543dThe author of the patch that you are submitting confirmed that a new patch works for him and suggested that it should be used instead of the original patch (because it conflicts with
sata_sisdriver as it claims the wrong PCI device).
Thanks for pointing this out. Reverting out of both my tree's.
Signature · 3 lines
Ben Collins <[email protected]> Developer Ubuntu Linux