* New revision of promise TX4
@ 2005-05-23 13:41 Laurent CARON
2005-05-23 13:53 ` Arjan van de Ven
0 siblings, 1 reply; 3+ messages in thread
From: Laurent CARON @ 2005-05-23 13:41 UTC (permalink / raw)
To: linux-kernel-Mailing-list
Hello,
I recently bought a TX-4 which seems to be using a new chip (PCI ID:
105A:3519).
It was not supported by the kernel so i added those lines to promise_sata.c
diff sata_promise.c /usr/src/linux-2.6.11.9/drivers/scsi/sata_promise.c
170,171d169
< { PCI_VENDOR_ID_PROMISE, 0x3519, PCI_ANY_ID, PCI_ANY_ID, 0, 0,
< board_20319 },
Is it the 'right' way?
Thanks
Laurent
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: New revision of promise TX4
2005-05-23 13:41 New revision of promise TX4 Laurent CARON
@ 2005-05-23 13:53 ` Arjan van de Ven
2005-05-23 13:57 ` Laurent CARON
0 siblings, 1 reply; 3+ messages in thread
From: Arjan van de Ven @ 2005-05-23 13:53 UTC (permalink / raw)
To: Laurent CARON; +Cc: linux-kernel-Mailing-list
On Mon, 2005-05-23 at 15:41 +0200, Laurent CARON wrote:
> Hello,
>
> I recently bought a TX-4 which seems to be using a new chip (PCI ID:
> 105A:3519).
>
> It was not supported by the kernel so i added those lines to promise_sata.c
>
> diff sata_promise.c /usr/src/linux-2.6.11.9/drivers/scsi/sata_promise.c
> 170,171d169
> < { PCI_VENDOR_ID_PROMISE, 0x3519, PCI_ANY_ID, PCI_ANY_ID, 0, 0,
> < board_20319 },
>
>
> Is it the 'right' way?
if it works.. almost
the "right" way is to use "diff -purN" instead of just plain diff (it's
custom) and to do the files the other way around (again custom).
If you want to make it nice you add a PCI_ID_... constant for 0x3519 to
the header and use the symbolic constant in your code instead.
Greetings,
Arjan van de Ven
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: New revision of promise TX4
2005-05-23 13:53 ` Arjan van de Ven
@ 2005-05-23 13:57 ` Laurent CARON
0 siblings, 0 replies; 3+ messages in thread
From: Laurent CARON @ 2005-05-23 13:57 UTC (permalink / raw)
To: linux-kernel-Mailing-list; +Cc: Arjan van de Ven
Arjan van de Ven a écrit :
>if it works.. almost
>the "right" way is to use "diff -purN" instead of just plain diff (it's
>custom) and to do the files the other way around (again custom).
>
>
diff -purN /usr/src/linux-2.6.11.9/drivers/scsi/sata_promise.c
sata_promise.c
--- /usr/src/linux-2.6.11.9/drivers/scsi/sata_promise.c 2005-05-12
00:42:30.000000000 +0200
+++ sata_promise.c 2005-05-23 15:56:09.000000000 +0200
@@ -167,6 +167,8 @@ static struct pci_device_id pdc_ata_pci_
board_20319 },
{ PCI_VENDOR_ID_PROMISE, 0x3d18, PCI_ANY_ID, PCI_ANY_ID, 0, 0,
board_20319 },
+ { PCI_VENDOR_ID_PROMISE, 0x3519, PCI_ANY_ID, PCI_ANY_ID, 0, 0,
+ board_20319 },
{ } /* terminate list */
};
>If you want to make it nice you add a PCI_ID_... constant for 0x3519 to
>the header and use the symbolic constant in your code instead.
>
>
I did it like this mainly because the file was built like this (without
pci ids in the header).
Regards,
Laurent
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2005-05-23 13:57 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-05-23 13:41 New revision of promise TX4 Laurent CARON
2005-05-23 13:53 ` Arjan van de Ven
2005-05-23 13:57 ` Laurent CARON
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox