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
nexedi
linux
Commits
2f4c5416
Commit
2f4c5416
authored
Jan 31, 2006
by
Linus Torvalds
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'upstream-fixes' of master.kernel.org:/pub/scm/linux/kernel/git/jgarzik/libata-dev
parents
d20e6336
9220a2d0
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
4 deletions
+15
-4
drivers/scsi/ahci.c
drivers/scsi/ahci.c
+15
-4
No files found.
drivers/scsi/ahci.c
View file @
2f4c5416
...
...
@@ -286,6 +286,10 @@ static const struct pci_device_id ahci_pci_tbl[] = {
board_ahci
},
/* ICH8M */
{
PCI_VENDOR_ID_INTEL
,
0x282a
,
PCI_ANY_ID
,
PCI_ANY_ID
,
0
,
0
,
board_ahci
},
/* ICH8M */
{
0x197b
,
0x2360
,
PCI_ANY_ID
,
PCI_ANY_ID
,
0
,
0
,
board_ahci
},
/* JMicron JMB360 */
{
0x197b
,
0x2363
,
PCI_ANY_ID
,
PCI_ANY_ID
,
0
,
0
,
board_ahci
},
/* JMicron JMB363 */
{
}
/* terminate list */
};
...
...
@@ -802,7 +806,6 @@ static int ahci_host_init(struct ata_probe_ent *probe_ent)
struct
pci_dev
*
pdev
=
to_pci_dev
(
probe_ent
->
dev
);
void
__iomem
*
mmio
=
probe_ent
->
mmio_base
;
u32
tmp
,
cap_save
;
u16
tmp16
;
unsigned
int
i
,
j
,
using_dac
;
int
rc
;
void
__iomem
*
port_mmio
;
...
...
@@ -836,9 +839,13 @@ static int ahci_host_init(struct ata_probe_ent *probe_ent)
writel
(
0xf
,
mmio
+
HOST_PORTS_IMPL
);
(
void
)
readl
(
mmio
+
HOST_PORTS_IMPL
);
/* flush */
if
(
pdev
->
vendor
==
PCI_VENDOR_ID_INTEL
)
{
u16
tmp16
;
pci_read_config_word
(
pdev
,
0x92
,
&
tmp16
);
tmp16
|=
0xf
;
pci_write_config_word
(
pdev
,
0x92
,
tmp16
);
}
hpriv
->
cap
=
readl
(
mmio
+
HOST_CAP
);
hpriv
->
port_map
=
readl
(
mmio
+
HOST_PORTS_IMPL
);
...
...
@@ -1082,6 +1089,10 @@ static int ahci_init_one (struct pci_dev *pdev, const struct pci_device_id *ent)
if
(
have_msi
)
hpriv
->
flags
|=
AHCI_FLAG_MSI
;
/* JMicron-specific fixup: make sure we're in AHCI mode */
if
(
pdev
->
vendor
==
0x197b
)
pci_write_config_byte
(
pdev
,
0x41
,
0xa1
);
/* initialize adapter */
rc
=
ahci_host_init
(
probe_ent
);
if
(
rc
)
...
...
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