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
90ac8f77
Commit
90ac8f77
authored
Dec 13, 2005
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
98684a9d
50630195
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
16 additions
and
10 deletions
+16
-10
drivers/scsi/libata-scsi.c
drivers/scsi/libata-scsi.c
+5
-2
drivers/scsi/sata_mv.c
drivers/scsi/sata_mv.c
+2
-1
drivers/scsi/sata_promise.c
drivers/scsi/sata_promise.c
+6
-6
drivers/scsi/sata_sx4.c
drivers/scsi/sata_sx4.c
+2
-1
include/linux/libata.h
include/linux/libata.h
+1
-0
No files found.
drivers/scsi/libata-scsi.c
View file @
90ac8f77
...
@@ -2173,10 +2173,13 @@ ata_scsi_find_dev(struct ata_port *ap, const struct scsi_device *scsidev)
...
@@ -2173,10 +2173,13 @@ ata_scsi_find_dev(struct ata_port *ap, const struct scsi_device *scsidev)
if
(
unlikely
(
!
ata_dev_present
(
dev
)))
if
(
unlikely
(
!
ata_dev_present
(
dev
)))
return
NULL
;
return
NULL
;
if
(
!
atapi_enabled
)
{
if
(
!
atapi_enabled
||
(
ap
->
flags
&
ATA_FLAG_NO_ATAPI
))
{
if
(
unlikely
(
dev
->
class
==
ATA_DEV_ATAPI
))
if
(
unlikely
(
dev
->
class
==
ATA_DEV_ATAPI
))
{
printk
(
KERN_WARNING
"ata%u(%u): WARNING: ATAPI is %s, device ignored.
\n
"
,
ap
->
id
,
dev
->
devno
,
atapi_enabled
?
"not supported with this driver"
:
"disabled"
);
return
NULL
;
return
NULL
;
}
}
}
return
dev
;
return
dev
;
}
}
...
...
drivers/scsi/sata_mv.c
View file @
90ac8f77
...
@@ -86,7 +86,8 @@ enum {
...
@@ -86,7 +86,8 @@ enum {
MV_FLAG_DUAL_HC
=
(
1
<<
30
),
/* two SATA Host Controllers */
MV_FLAG_DUAL_HC
=
(
1
<<
30
),
/* two SATA Host Controllers */
MV_FLAG_IRQ_COALESCE
=
(
1
<<
29
),
/* IRQ coalescing capability */
MV_FLAG_IRQ_COALESCE
=
(
1
<<
29
),
/* IRQ coalescing capability */
MV_COMMON_FLAGS
=
(
ATA_FLAG_SATA
|
ATA_FLAG_NO_LEGACY
|
MV_COMMON_FLAGS
=
(
ATA_FLAG_SATA
|
ATA_FLAG_NO_LEGACY
|
ATA_FLAG_SATA_RESET
|
ATA_FLAG_MMIO
),
ATA_FLAG_SATA_RESET
|
ATA_FLAG_MMIO
|
ATA_FLAG_NO_ATAPI
),
MV_6XXX_FLAGS
=
MV_FLAG_IRQ_COALESCE
,
MV_6XXX_FLAGS
=
MV_FLAG_IRQ_COALESCE
,
CRQB_FLAG_READ
=
(
1
<<
0
),
CRQB_FLAG_READ
=
(
1
<<
0
),
...
...
drivers/scsi/sata_promise.c
View file @
90ac8f77
...
@@ -70,6 +70,9 @@ enum {
...
@@ -70,6 +70,9 @@ enum {
PDC_HAS_PATA
=
(
1
<<
1
),
/* PDC20375 has PATA */
PDC_HAS_PATA
=
(
1
<<
1
),
/* PDC20375 has PATA */
PDC_RESET
=
(
1
<<
11
),
/* HDMA reset */
PDC_RESET
=
(
1
<<
11
),
/* HDMA reset */
PDC_COMMON_FLAGS
=
ATA_FLAG_NO_LEGACY
|
ATA_FLAG_SRST
|
ATA_FLAG_MMIO
|
ATA_FLAG_NO_ATAPI
,
};
};
...
@@ -162,8 +165,7 @@ static struct ata_port_info pdc_port_info[] = {
...
@@ -162,8 +165,7 @@ static struct ata_port_info pdc_port_info[] = {
/* board_2037x */
/* board_2037x */
{
{
.
sht
=
&
pdc_ata_sht
,
.
sht
=
&
pdc_ata_sht
,
.
host_flags
=
ATA_FLAG_SATA
|
ATA_FLAG_NO_LEGACY
|
.
host_flags
=
PDC_COMMON_FLAGS
|
ATA_FLAG_SATA
,
ATA_FLAG_SRST
|
ATA_FLAG_MMIO
,
.
pio_mask
=
0x1f
,
/* pio0-4 */
.
pio_mask
=
0x1f
,
/* pio0-4 */
.
mwdma_mask
=
0x07
,
/* mwdma0-2 */
.
mwdma_mask
=
0x07
,
/* mwdma0-2 */
.
udma_mask
=
0x7f
,
/* udma0-6 ; FIXME */
.
udma_mask
=
0x7f
,
/* udma0-6 ; FIXME */
...
@@ -173,8 +175,7 @@ static struct ata_port_info pdc_port_info[] = {
...
@@ -173,8 +175,7 @@ static struct ata_port_info pdc_port_info[] = {
/* board_20319 */
/* board_20319 */
{
{
.
sht
=
&
pdc_ata_sht
,
.
sht
=
&
pdc_ata_sht
,
.
host_flags
=
ATA_FLAG_SATA
|
ATA_FLAG_NO_LEGACY
|
.
host_flags
=
PDC_COMMON_FLAGS
|
ATA_FLAG_SATA
,
ATA_FLAG_SRST
|
ATA_FLAG_MMIO
,
.
pio_mask
=
0x1f
,
/* pio0-4 */
.
pio_mask
=
0x1f
,
/* pio0-4 */
.
mwdma_mask
=
0x07
,
/* mwdma0-2 */
.
mwdma_mask
=
0x07
,
/* mwdma0-2 */
.
udma_mask
=
0x7f
,
/* udma0-6 ; FIXME */
.
udma_mask
=
0x7f
,
/* udma0-6 ; FIXME */
...
@@ -184,8 +185,7 @@ static struct ata_port_info pdc_port_info[] = {
...
@@ -184,8 +185,7 @@ static struct ata_port_info pdc_port_info[] = {
/* board_20619 */
/* board_20619 */
{
{
.
sht
=
&
pdc_ata_sht
,
.
sht
=
&
pdc_ata_sht
,
.
host_flags
=
ATA_FLAG_NO_LEGACY
|
ATA_FLAG_SRST
|
.
host_flags
=
PDC_COMMON_FLAGS
|
ATA_FLAG_SLAVE_POSS
,
ATA_FLAG_MMIO
|
ATA_FLAG_SLAVE_POSS
,
.
pio_mask
=
0x1f
,
/* pio0-4 */
.
pio_mask
=
0x1f
,
/* pio0-4 */
.
mwdma_mask
=
0x07
,
/* mwdma0-2 */
.
mwdma_mask
=
0x07
,
/* mwdma0-2 */
.
udma_mask
=
0x7f
,
/* udma0-6 ; FIXME */
.
udma_mask
=
0x7f
,
/* udma0-6 ; FIXME */
...
...
drivers/scsi/sata_sx4.c
View file @
90ac8f77
...
@@ -220,7 +220,8 @@ static struct ata_port_info pdc_port_info[] = {
...
@@ -220,7 +220,8 @@ static struct ata_port_info pdc_port_info[] = {
{
{
.
sht
=
&
pdc_sata_sht
,
.
sht
=
&
pdc_sata_sht
,
.
host_flags
=
ATA_FLAG_SATA
|
ATA_FLAG_NO_LEGACY
|
.
host_flags
=
ATA_FLAG_SATA
|
ATA_FLAG_NO_LEGACY
|
ATA_FLAG_SRST
|
ATA_FLAG_MMIO
,
ATA_FLAG_SRST
|
ATA_FLAG_MMIO
|
ATA_FLAG_NO_ATAPI
,
.
pio_mask
=
0x1f
,
/* pio0-4 */
.
pio_mask
=
0x1f
,
/* pio0-4 */
.
mwdma_mask
=
0x07
,
/* mwdma0-2 */
.
mwdma_mask
=
0x07
,
/* mwdma0-2 */
.
udma_mask
=
0x7f
,
/* udma0-6 ; FIXME */
.
udma_mask
=
0x7f
,
/* udma0-6 ; FIXME */
...
...
include/linux/libata.h
View file @
90ac8f77
...
@@ -122,6 +122,7 @@ enum {
...
@@ -122,6 +122,7 @@ enum {
ATA_FLAG_NOINTR
=
(
1
<<
9
),
/* FIXME: Remove this once
ATA_FLAG_NOINTR
=
(
1
<<
9
),
/* FIXME: Remove this once
* proper HSM is in place. */
* proper HSM is in place. */
ATA_FLAG_DEBUGMSG
=
(
1
<<
10
),
ATA_FLAG_DEBUGMSG
=
(
1
<<
10
),
ATA_FLAG_NO_ATAPI
=
(
1
<<
11
),
/* No ATAPI support */
ATA_QCFLAG_ACTIVE
=
(
1
<<
1
),
/* cmd not yet ack'd to scsi lyer */
ATA_QCFLAG_ACTIVE
=
(
1
<<
1
),
/* cmd not yet ack'd to scsi lyer */
ATA_QCFLAG_SG
=
(
1
<<
3
),
/* have s/g table? */
ATA_QCFLAG_SG
=
(
1
<<
3
),
/* have s/g table? */
...
...
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