Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linux-davinci
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
linux
linux-davinci
Commits
70c85233
Commit
70c85233
authored
Jun 04, 2005
by
Committed by
Jeff Garzik
Jun 04, 2005
Browse files
Options
Browse Files
Download
Plain Diff
Merge of /spare/repo/libata-dev branch bridge-detect
parents
31c94a6e
73561695
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
35 additions
and
2 deletions
+35
-2
drivers/scsi/libata-core.c
drivers/scsi/libata-core.c
+33
-2
include/linux/ata.h
include/linux/ata.h
+1
-0
include/linux/libata.h
include/linux/libata.h
+1
-0
No files found.
drivers/scsi/libata-core.c
View file @
70c85233
...
...
@@ -1295,6 +1295,37 @@ err_out:
DPRINTK
(
"EXIT, err
\n
"
);
}
static
inline
u8
ata_dev_knobble
(
struct
ata_port
*
ap
)
{
return
((
ap
->
cbl
==
ATA_CBL_SATA
)
&&
(
!
ata_id_is_sata
(
ap
->
device
->
id
)));
}
/**
* ata_dev_config - Run device specific handlers and check for
* SATA->PATA bridges
* @ap: Bus
* @i: Device
*
* LOCKING:
*/
void
ata_dev_config
(
struct
ata_port
*
ap
,
unsigned
int
i
)
{
/* limit bridge transfers to udma5, 200 sectors */
if
(
ata_dev_knobble
(
ap
))
{
printk
(
KERN_INFO
"ata%u(%u): applying bridge limits
\n
"
,
ap
->
id
,
ap
->
device
->
devno
);
ap
->
udma_mask
&=
ATA_UDMA5
;
ap
->
host
->
max_sectors
=
ATA_MAX_SECTORS
;
ap
->
host
->
hostt
->
max_sectors
=
ATA_MAX_SECTORS
;
ap
->
device
->
flags
|=
ATA_DFLAG_LOCK_SECTORS
;
}
if
(
ap
->
ops
->
dev_config
)
ap
->
ops
->
dev_config
(
ap
,
&
ap
->
device
[
i
]);
}
/**
* ata_bus_probe - Reset and probe ATA bus
* @ap: Bus to probe
...
...
@@ -1322,8 +1353,7 @@ static int ata_bus_probe(struct ata_port *ap)
ata_dev_identify
(
ap
,
i
);
if
(
ata_dev_present
(
&
ap
->
device
[
i
]))
{
found
=
1
;
if
(
ap
->
ops
->
dev_config
)
ap
->
ops
->
dev_config
(
ap
,
&
ap
->
device
[
i
]);
ata_dev_config
(
ap
,
i
);
}
}
...
...
@@ -4408,6 +4438,7 @@ EXPORT_SYMBOL_GPL(ata_scsi_release);
EXPORT_SYMBOL_GPL
(
ata_host_intr
);
EXPORT_SYMBOL_GPL
(
ata_dev_classify
);
EXPORT_SYMBOL_GPL
(
ata_dev_id_string
);
EXPORT_SYMBOL_GPL
(
ata_dev_config
);
EXPORT_SYMBOL_GPL
(
ata_scsi_simulate
);
#ifdef CONFIG_PCI
...
...
include/linux/ata.h
View file @
70c85233
...
...
@@ -224,6 +224,7 @@ struct ata_taskfile {
};
#define ata_id_is_ata(id) (((id)[0] & (1 << 15)) == 0)
#define ata_id_is_sata(id) ((id)[93] == 0)
#define ata_id_rahead_enabled(id) ((id)[85] & (1 << 6))
#define ata_id_wcache_enabled(id) ((id)[85] & (1 << 5))
#define ata_id_has_flush(id) ((id)[83] & (1 << 12))
...
...
include/linux/libata.h
View file @
70c85233
...
...
@@ -421,6 +421,7 @@ extern void ata_sg_init(struct ata_queued_cmd *qc, struct scatterlist *sg,
extern
unsigned
int
ata_dev_classify
(
struct
ata_taskfile
*
tf
);
extern
void
ata_dev_id_string
(
u16
*
id
,
unsigned
char
*
s
,
unsigned
int
ofs
,
unsigned
int
len
);
extern
void
ata_dev_config
(
struct
ata_port
*
ap
,
unsigned
int
i
);
extern
void
ata_bmdma_setup
(
struct
ata_queued_cmd
*
qc
);
extern
void
ata_bmdma_start
(
struct
ata_queued_cmd
*
qc
);
extern
void
ata_bmdma_stop
(
struct
ata_port
*
ap
);
...
...
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