mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-30 05:16:53 +07:00
[SCSI] hpsa: check that simple mode is supported
before trying to enter simple mode transport method. Signed-off-by: Stephen M. Cameron <scameron@beardog.cce.hp.com> Signed-off-by: James Bottomley <James.Bottomley@suse.de>
This commit is contained in:
parent
eb6b2ae905
commit
cda7612d4b
@ -3413,6 +3413,11 @@ static inline void hpsa_p600_dma_prefetch_quirk(struct ctlr_info *h)
|
||||
static int __devinit hpsa_enter_simple_mode(struct ctlr_info *h)
|
||||
{
|
||||
int i;
|
||||
u32 trans_support;
|
||||
|
||||
trans_support = readl(&(h->cfgtable->TransportSupport));
|
||||
if (!(trans_support & SIMPLE_MODE))
|
||||
return -ENOTSUPP;
|
||||
|
||||
h->max_commands = readl(&(h->cfgtable->CmdsOutMax));
|
||||
/* Update the field, and then ring the doorbell */
|
||||
|
Loading…
Reference in New Issue
Block a user