mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-30 03:56:44 +07:00
[SCSI] aic79xx: fixup DT setting
this patch is just a cross-port of the fixup for aic7xxx DT settings. As the same restrictions apply for aic79xx also (DT requires wide transfers) the dt setting routine should be modified equivalently. And an invalid period setting will be caught by ahd_find_syncrate() anyway. Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
This commit is contained in:
parent
88ff29a4a5
commit
52b5cfb355
@ -2440,6 +2440,7 @@ static void ahd_linux_set_dt(struct scsi_target *starget, int dt)
|
|||||||
unsigned int ppr_options = tinfo->goal.ppr_options
|
unsigned int ppr_options = tinfo->goal.ppr_options
|
||||||
& ~MSG_EXT_PPR_DT_REQ;
|
& ~MSG_EXT_PPR_DT_REQ;
|
||||||
unsigned int period = tinfo->goal.period;
|
unsigned int period = tinfo->goal.period;
|
||||||
|
unsigned int width = tinfo->goal.width;
|
||||||
unsigned long flags;
|
unsigned long flags;
|
||||||
|
|
||||||
#ifdef AHD_DEBUG
|
#ifdef AHD_DEBUG
|
||||||
@ -2449,8 +2450,8 @@ static void ahd_linux_set_dt(struct scsi_target *starget, int dt)
|
|||||||
#endif
|
#endif
|
||||||
if (dt) {
|
if (dt) {
|
||||||
ppr_options |= MSG_EXT_PPR_DT_REQ;
|
ppr_options |= MSG_EXT_PPR_DT_REQ;
|
||||||
if (period > 9)
|
if (!width)
|
||||||
period = 9; /* at least 12.5ns for DT */
|
ahd_linux_set_width(starget, 1);
|
||||||
} else {
|
} else {
|
||||||
if (period <= 9)
|
if (period <= 9)
|
||||||
period = 10; /* If resetting DT, period must be >= 25ns */
|
period = 10; /* If resetting DT, period must be >= 25ns */
|
||||||
|
Loading…
Reference in New Issue
Block a user