Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linux-davinci-2.6.23
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-2.6.23
Commits
643736a5
Commit
643736a5
authored
Oct 04, 2005
by
Jeff Garzik
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'scsi-scan'
parents
9d5b1302
3f19ee8c
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
1 deletion
+18
-1
drivers/scsi/libata-core.c
drivers/scsi/libata-core.c
+1
-1
drivers/scsi/libata-scsi.c
drivers/scsi/libata-scsi.c
+16
-0
drivers/scsi/libata.h
drivers/scsi/libata.h
+1
-0
No files found.
drivers/scsi/libata-core.c
View file @
643736a5
...
...
@@ -4203,7 +4203,7 @@ int ata_device_add(struct ata_probe_ent *ent)
for
(
i
=
0
;
i
<
count
;
i
++
)
{
struct
ata_port
*
ap
=
host_set
->
ports
[
i
];
scsi_scan_host
(
ap
->
host
);
ata_scsi_scan_host
(
ap
);
}
dev_set_drvdata
(
dev
,
host_set
);
...
...
drivers/scsi/libata-scsi.c
View file @
643736a5
...
...
@@ -1816,3 +1816,19 @@ void ata_scsi_simulate(u16 *id,
}
}
void
ata_scsi_scan_host
(
struct
ata_port
*
ap
)
{
struct
ata_device
*
dev
;
unsigned
int
i
;
if
(
ap
->
flags
&
ATA_FLAG_PORT_DISABLED
)
return
;
for
(
i
=
0
;
i
<
ATA_MAX_DEVICES
;
i
++
)
{
dev
=
&
ap
->
device
[
i
];
if
(
ata_dev_present
(
dev
))
scsi_scan_target
(
&
ap
->
host
->
shost_gendev
,
0
,
i
,
0
,
0
);
}
}
drivers/scsi/libata.h
View file @
643736a5
...
...
@@ -51,6 +51,7 @@ extern void swap_buf_le16(u16 *buf, unsigned int buf_words);
/* libata-scsi.c */
extern
void
ata_scsi_scan_host
(
struct
ata_port
*
ap
);
extern
void
ata_to_sense_error
(
struct
ata_queued_cmd
*
qc
,
u8
drv_stat
);
extern
int
ata_scsi_error
(
struct
Scsi_Host
*
host
);
extern
unsigned
int
ata_scsiop_inq_std
(
struct
ata_scsi_args
*
args
,
u8
*
rbuf
,
...
...
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