Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
dd1dc802
Commit
dd1dc802
authored
Sep 11, 2006
by
Jeff Garzik
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'upstream-fixes' into upstream
Conflicts: drivers/ata/ata_piix.c
parents
406176ee
67083741
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
37 additions
and
6 deletions
+37
-6
drivers/ata/ata_piix.c
drivers/ata/ata_piix.c
+36
-4
drivers/ata/sata_mv.c
drivers/ata/sata_mv.c
+1
-2
No files found.
drivers/ata/ata_piix.c
View file @
dd1dc802
...
...
@@ -126,7 +126,8 @@ enum {
ich6_sata
=
7
,
ich6_sata_ahci
=
8
,
ich6m_sata_ahci
=
9
,
ich8_sata_ahci
=
10
,
ich7m_sata_ahci
=
10
,
ich8_sata_ahci
=
11
,
/* constants for mapping table */
P0
=
0
,
/* port 0 */
...
...
@@ -226,7 +227,7 @@ static const struct pci_device_id piix_pci_tbl[] = {
/* 82801GB/GR/GH (ICH7, identical to ICH6) */
{
0x8086
,
0x27c0
,
PCI_ANY_ID
,
PCI_ANY_ID
,
0
,
0
,
ich6_sata_ahci
},
/* 2801GBM/GHM (ICH7M, identical to ICH6M) */
{
0x8086
,
0x27c4
,
PCI_ANY_ID
,
PCI_ANY_ID
,
0
,
0
,
ich
6
m_sata_ahci
},
{
0x8086
,
0x27c4
,
PCI_ANY_ID
,
PCI_ANY_ID
,
0
,
0
,
ich
7
m_sata_ahci
},
/* Enterprise Southbridge 2 (where's the datasheet?) */
{
0x8086
,
0x2680
,
PCI_ANY_ID
,
PCI_ANY_ID
,
0
,
0
,
ich6_sata_ahci
},
/* SATA Controller 1 IDE (ICH8, no datasheet yet) */
...
...
@@ -407,6 +408,24 @@ static const struct piix_map_db ich6m_map_db = {
},
};
static
const
struct
piix_map_db
ich7m_map_db
=
{
.
mask
=
0x3
,
.
port_enable
=
0x5
,
.
present_shift
=
4
,
/* Map 01b isn't specified in the doc but some notebooks use
* it anyway. ATM, the only case spotted carries subsystem ID
* 1025:0107. This is the only difference from ich6m.
*/
.
map
=
{
/* PM PS SM SS MAP */
{
P0
,
P2
,
RV
,
RV
},
/* 00b */
{
IDE
,
IDE
,
P1
,
P3
},
/* 01b */
{
P0
,
P2
,
IDE
,
IDE
},
/* 10b */
{
RV
,
RV
,
RV
,
RV
},
},
};
static
const
struct
piix_map_db
ich8_map_db
=
{
.
mask
=
0x3
,
.
port_enable
=
0x3
,
...
...
@@ -426,6 +445,7 @@ static const struct piix_map_db *piix_map_db_table[] = {
[
ich6_sata
]
=
&
ich6_map_db
,
[
ich6_sata_ahci
]
=
&
ich6_map_db
,
[
ich6m_sata_ahci
]
=
&
ich6m_map_db
,
[
ich7m_sata_ahci
]
=
&
ich7m_map_db
,
[
ich8_sata_ahci
]
=
&
ich8_map_db
,
};
...
...
@@ -512,7 +532,7 @@ static struct ata_port_info piix_port_info[] = {
.
port_ops
=
&
piix_sata_ops
,
},
/* ich6_sata_ahci:8 */
/* ich6_sata_ahci:
8 */
{
.
sht
=
&
piix_sht
,
.
flags
=
ATA_FLAG_SATA
|
...
...
@@ -536,7 +556,19 @@ static struct ata_port_info piix_port_info[] = {
.
port_ops
=
&
piix_sata_ops
,
},
/* ich8_sata_ahci */
/* ich7m_sata_ahci: 10 */
{
.
sht
=
&
piix_sht
,
.
host_flags
=
ATA_FLAG_SATA
|
PIIX_FLAG_CHECKINTR
|
PIIX_FLAG_SCR
|
PIIX_FLAG_AHCI
,
.
pio_mask
=
0x1f
,
/* pio0-4 */
.
mwdma_mask
=
0x07
,
/* mwdma0-2 */
.
udma_mask
=
0x7f
,
/* udma0-6 */
.
port_ops
=
&
piix_sata_ops
,
},
/* ich8_sata_ahci: 11 */
{
.
sht
=
&
piix_sht
,
.
flags
=
ATA_FLAG_SATA
|
...
...
drivers/ata/sata_mv.c
View file @
dd1dc802
...
...
@@ -1960,8 +1960,7 @@ static void __mv_phy_reset(struct ata_port *ap, int can_sleep)
timeout
=
jiffies
+
msecs_to_jiffies
(
200
);
do
{
sata_scr_read
(
ap
,
SCR_STATUS
,
&
sstatus
);
sstatus
&=
0x3
;
if
((
sstatus
==
3
)
||
(
sstatus
==
0
))
if
(((
sstatus
&
0x3
)
==
3
)
||
((
sstatus
&
0x3
)
==
0
))
break
;
__msleep
(
1
,
can_sleep
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment