Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 7857
b: refs/heads/master
c: 6a690df
h: refs/heads/master
i:
  7855: 70556e7
v: v3
  • Loading branch information
Hannes Reinecke authored and Jeff Garzik committed Sep 8, 2005
1 parent 0914e69 commit 5aa7ecb
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 5a2cec83a9bb1b4295aa8ab728fcb8ca1811a33c
refs/heads/master: 6a690df5c8b37d4a1c41df40770d42d44fac0e97
10 changes: 6 additions & 4 deletions trunk/drivers/scsi/ata_piix.c
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,8 @@ enum {
PIIX_COMB_PATA_P0 = (1 << 1),
PIIX_COMB = (1 << 2), /* combined mode enabled? */

PIIX_PORT_PRESENT = (1 << 0),
PIIX_PORT_ENABLED = (1 << 4),
PIIX_PORT_ENABLED = (1 << 0),
PIIX_PORT_PRESENT = (1 << 4),

PIIX_80C_PRI = (1 << 5) | (1 << 4),
PIIX_80C_SEC = (1 << 7) | (1 << 6),
Expand Down Expand Up @@ -377,7 +377,9 @@ static void piix_pata_phy_reset(struct ata_port *ap)
* None (inherited from caller).
*
* RETURNS:
* Non-zero if device detected, zero otherwise.
* Non-zero if port is enabled, it may or may not have a device
* attached in that case (PRESENT bit would only be set if BIOS probe
* was done). Zero is returned if port is disabled.
*/
static int piix_sata_probe (struct ata_port *ap)
{
Expand All @@ -401,7 +403,7 @@ static int piix_sata_probe (struct ata_port *ap)
*/

for (i = 0; i < 4; i++) {
mask = (PIIX_PORT_PRESENT << i) | (PIIX_PORT_ENABLED << i);
mask = (PIIX_PORT_ENABLED << i);

if ((orig_mask & mask) == mask)
if (combined || (i == ap->hard_port_no))
Expand Down

0 comments on commit 5aa7ecb

Please sign in to comment.