Bugzilla – Attachment 50328 Details for
Bug 117068
10.0 RC1: Promise PATA on SATA patch needed
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
IDP Log In
|
Forgot Password
[patch]
PATA on SATA patch for 10.0 RC1
pata-on-sata.patch (text/plain), 2.09 KB, created by
Robert Kesterson
on 2005-09-19 17:11:56 UTC
(
hide
)
Description:
PATA on SATA patch for 10.0 RC1
Filename:
MIME Type:
Creator:
Robert Kesterson
Created:
2005-09-19 17:11:56 UTC
Size:
2.09 KB
patch
obsolete
>diff -r linux-2.6.13.9.suse/drivers/scsi/libata-core.c linux-2.6.13-9/drivers/scsi/libata-core.c >4114a4115 >> ap->flags |= ent->port_flags[port_no]; >diff -r linux-2.6.13.9.suse/drivers/scsi/sata_promise.c linux-2.6.13-9/drivers/scsi/sata_promise.c >82a83,84 >> static void pdc_pata_phy_reset(struct ata_port *ap); >> static void pdc_pata_cbl_reset(struct ata_port *ap); >135c137 >< .host_flags = ATA_FLAG_SATA | ATA_FLAG_NO_LEGACY | >--- >> .host_flags = /* ATA_FLAG_SATA | */ ATA_FLAG_NO_LEGACY | >278c280,308 >< sata_phy_reset(ap); >--- >> if (ap->flags & ATA_FLAG_SATA) >> sata_phy_reset(ap); >> else >> pdc_pata_phy_reset(ap); >> } >> >> static void pdc_pata_cbl_detect(struct ata_port *ap) >> { >> u8 tmp; >> void *mmio = (void *) ap->ioaddr.cmd_addr + PDC_CTLSTAT + 0x03; >> >> tmp = readb(mmio); >> >> if (tmp & 0x01) >> { >> ap->cbl = ATA_CBL_PATA40; >> ap->udma_mask &= ATA_UDMA_MASK_40C; >> } >> else >> ap->cbl = ATA_CBL_PATA80; >> } >> >> static void pdc_pata_phy_reset(struct ata_port *ap) >> { >> pdc_pata_cbl_detect(ap); >> >> ata_port_probe(ap); >> >> ata_bus_reset(ap); >589a620 >> u8 tmp; >649a681,683 >> probe_ent->port_flags[0] = ATA_FLAG_SATA; >> probe_ent->port_flags[1] = ATA_FLAG_SATA; >> >659a694,696 >> >> probe_ent->port_flags[2] = ATA_FLAG_SATA; >> probe_ent->port_flags[3] = ATA_FLAG_SATA; >662c699,712 >< probe_ent->n_ports = 2; >--- >> /* Some boards have also PATA port */ >> tmp = readb(mmio_base + PDC_FLASH_CTL+1); >> if (!(tmp & 0x80)) >> { >> probe_ent->n_ports = 3; >> >> pdc_ata_setup_port(&probe_ent->port[2], base + 0x300); >> >> probe_ent->port_flags[2] = ATA_FLAG_SLAVE_POSS; >> >> printk(KERN_INFO DRV_NAME " PATA port found\n"); >> } >> else >> probe_ent->n_ports = 2; >diff -r linux-2.6.13.9.suse/include/linux/libata.h linux-2.6.13-9/include/linux/libata.h >214a215 >> unsigned long port_flags[ATA_MAX_PORTS]; >diff -r linux-2.6.13.9.suse/include/linux/version.h linux-2.6.13-9/include/linux/version.h >1c1 >< #define UTS_RELEASE "2.6.13-9-default" >--- >> #define UTS_RELEASE "2.6.13-9" >Only in linux-2.6.13-9/scripts/kconfig: conf >Only in linux-2.6.13-9/scripts/kconfig: .conf.cmd
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
Actions:
View
|
Diff
Attachments on
bug 117068
:
50328
|
50426