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
14a5916e
Commit
14a5916e
authored
Aug 19, 2016
by
James Bottomley
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'mkp-scsi/4.8/scsi-fixes' into fixes
parents
01b3add8
a0f81dbe
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
10 additions
and
22 deletions
+10
-22
drivers/scsi/constants.c
drivers/scsi/constants.c
+3
-2
drivers/scsi/scsi_devinfo.c
drivers/scsi/scsi_devinfo.c
+4
-0
drivers/scsi/scsi_transport_sas.c
drivers/scsi/scsi_transport_sas.c
+0
-16
drivers/scsi/ses.c
drivers/scsi/ses.c
+1
-1
include/scsi/scsi_transport_sas.h
include/scsi/scsi_transport_sas.h
+2
-3
No files found.
drivers/scsi/constants.c
View file @
14a5916e
...
...
@@ -361,8 +361,9 @@ static const char * const snstext[] = {
/* Get sense key string or NULL if not available */
const
char
*
scsi_sense_key_string
(
unsigned
char
key
)
{
if
(
key
<=
0xE
)
scsi_sense_key_string
(
unsigned
char
key
)
{
if
(
key
<
ARRAY_SIZE
(
snstext
))
return
snstext
[
key
];
return
NULL
;
}
...
...
drivers/scsi/scsi_devinfo.c
View file @
14a5916e
...
...
@@ -246,6 +246,10 @@ static struct {
{
"IBM"
,
"Universal Xport"
,
"*"
,
BLIST_NO_ULD_ATTACH
},
{
"SUN"
,
"Universal Xport"
,
"*"
,
BLIST_NO_ULD_ATTACH
},
{
"DELL"
,
"Universal Xport"
,
"*"
,
BLIST_NO_ULD_ATTACH
},
{
"STK"
,
"Universal Xport"
,
"*"
,
BLIST_NO_ULD_ATTACH
},
{
"NETAPP"
,
"Universal Xport"
,
"*"
,
BLIST_NO_ULD_ATTACH
},
{
"LSI"
,
"Universal Xport"
,
"*"
,
BLIST_NO_ULD_ATTACH
},
{
"ENGENIO"
,
"Universal Xport"
,
"*"
,
BLIST_NO_ULD_ATTACH
},
{
"SMSC"
,
"USB 2 HS-CF"
,
NULL
,
BLIST_SPARSELUN
|
BLIST_INQUIRY_36
},
{
"SONY"
,
"CD-ROM CDU-8001"
,
NULL
,
BLIST_BORKEN
},
{
"SONY"
,
"TSL"
,
NULL
,
BLIST_FORCELUN
},
/* DDS3 & DDS4 autoloaders */
...
...
drivers/scsi/scsi_transport_sas.c
View file @
14a5916e
...
...
@@ -340,22 +340,6 @@ static int do_sas_phy_delete(struct device *dev, void *data)
return
0
;
}
/**
* is_sas_attached - check if device is SAS attached
* @sdev: scsi device to check
*
* returns true if the device is SAS attached
*/
int
is_sas_attached
(
struct
scsi_device
*
sdev
)
{
struct
Scsi_Host
*
shost
=
sdev
->
host
;
return
shost
->
transportt
->
host_attrs
.
ac
.
class
==
&
sas_host_class
.
class
;
}
EXPORT_SYMBOL
(
is_sas_attached
);
/**
* sas_remove_children - tear down a devices SAS data structures
* @dev: device belonging to the sas object
...
...
drivers/scsi/ses.c
View file @
14a5916e
...
...
@@ -587,7 +587,7 @@ static void ses_match_to_enclosure(struct enclosure_device *edev,
ses_enclosure_data_process
(
edev
,
to_scsi_device
(
edev
->
edev
.
parent
),
0
);
if
(
is_sas_attached
(
s
dev
))
if
(
scsi_is_sas_rphy
(
&
sdev
->
sdev_gen
dev
))
efd
.
addr
=
sas_get_address
(
sdev
);
if
(
efd
.
addr
)
{
...
...
include/scsi/scsi_transport_sas.h
View file @
14a5916e
...
...
@@ -11,12 +11,12 @@ struct sas_rphy;
struct
request
;
#if !IS_ENABLED(CONFIG_SCSI_SAS_ATTRS)
static
inline
int
is_sas_attached
(
struct
scsi_
device
*
sdev
)
static
inline
int
scsi_is_sas_rphy
(
const
struct
device
*
sdev
)
{
return
0
;
}
#else
extern
int
is_sas_attached
(
struct
scsi_device
*
sdev
);
extern
int
scsi_is_sas_rphy
(
const
struct
device
*
);
#endif
static
inline
int
sas_protocol_ata
(
enum
sas_protocol
proto
)
...
...
@@ -202,7 +202,6 @@ extern int sas_rphy_add(struct sas_rphy *);
extern
void
sas_rphy_remove
(
struct
sas_rphy
*
);
extern
void
sas_rphy_delete
(
struct
sas_rphy
*
);
extern
void
sas_rphy_unlink
(
struct
sas_rphy
*
);
extern
int
scsi_is_sas_rphy
(
const
struct
device
*
);
struct
sas_port
*
sas_port_alloc
(
struct
device
*
,
int
);
struct
sas_port
*
sas_port_alloc_num
(
struct
device
*
);
...
...
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