|
@@ -329,6 +329,8 @@ int scsiInitiatorRunCommand(int target_id,
|
|
|
int status = -1;
|
|
int status = -1;
|
|
|
while ((phase = (SCSI_PHASE)scsiHostPhyGetPhase()) != BUS_FREE)
|
|
while ((phase = (SCSI_PHASE)scsiHostPhyGetPhase()) != BUS_FREE)
|
|
|
{
|
|
{
|
|
|
|
|
+ platform_poll();
|
|
|
|
|
+
|
|
|
if (phase == MESSAGE_IN)
|
|
if (phase == MESSAGE_IN)
|
|
|
{
|
|
{
|
|
|
uint8_t dummy = 0;
|
|
uint8_t dummy = 0;
|
|
@@ -687,6 +689,8 @@ bool scsiInitiatorReadDataToFile(int target_id, uint32_t start_sector, uint32_t
|
|
|
|
|
|
|
|
while (true)
|
|
while (true)
|
|
|
{
|
|
{
|
|
|
|
|
+ platform_poll();
|
|
|
|
|
+
|
|
|
phase = (SCSI_PHASE)scsiHostPhyGetPhase();
|
|
phase = (SCSI_PHASE)scsiHostPhyGetPhase();
|
|
|
if (phase != DATA_IN && phase != BUS_BUSY)
|
|
if (phase != DATA_IN && phase != BUS_BUSY)
|
|
|
{
|
|
{
|
|
@@ -721,6 +725,8 @@ bool scsiInitiatorReadDataToFile(int target_id, uint32_t start_sector, uint32_t
|
|
|
|
|
|
|
|
while ((phase = (SCSI_PHASE)scsiHostPhyGetPhase()) != BUS_FREE)
|
|
while ((phase = (SCSI_PHASE)scsiHostPhyGetPhase()) != BUS_FREE)
|
|
|
{
|
|
{
|
|
|
|
|
+ platform_poll();
|
|
|
|
|
+
|
|
|
if (phase == MESSAGE_IN)
|
|
if (phase == MESSAGE_IN)
|
|
|
{
|
|
{
|
|
|
uint8_t dummy = 0;
|
|
uint8_t dummy = 0;
|