master/master.c
branchstable-1.5
changeset 2460 611e4d745dcd
parent 2458 8e0bab31fddd
child 2461 d2c48550acd0
equal deleted inserted replaced
2459:8c7e674aa5d6 2460:611e4d745dcd
  2700     }
  2700     }
  2701 
  2701 
  2702     EC_SLAVE_DBG(request.slave, 1, "Schedule SDO download request.\n");
  2702     EC_SLAVE_DBG(request.slave, 1, "Schedule SDO download request.\n");
  2703 
  2703 
  2704     // schedule request.
  2704     // schedule request.
  2705     list_add_tail(&request.list, &request.slave->slave_sdo_requests);
  2705     list_add_tail(&request.list, &request.slave->sdo_requests);
  2706 
  2706 
  2707     up(&master->master_sem);
  2707     up(&master->master_sem);
  2708 
  2708 
  2709     // wait for processing through FSM
  2709     // wait for processing through FSM
  2710     if (wait_event_interruptible(request.slave->sdo_queue,
  2710     if (wait_event_interruptible(request.slave->sdo_queue,
  2781 
  2781 
  2782     EC_SLAVE_DBG(request.slave, 1, "Schedule SDO download request"
  2782     EC_SLAVE_DBG(request.slave, 1, "Schedule SDO download request"
  2783             " (complete access).\n");
  2783             " (complete access).\n");
  2784 
  2784 
  2785     // schedule request.
  2785     // schedule request.
  2786     list_add_tail(&request.list, &request.slave->slave_sdo_requests);
  2786     list_add_tail(&request.list, &request.slave->sdo_requests);
  2787 
  2787 
  2788     up(&master->master_sem);
  2788     up(&master->master_sem);
  2789 
  2789 
  2790     // wait for processing through FSM
  2790     // wait for processing through FSM
  2791     if (wait_event_interruptible(request.slave->sdo_queue,
  2791     if (wait_event_interruptible(request.slave->sdo_queue,
  2852     }
  2852     }
  2853 
  2853 
  2854     EC_SLAVE_DBG(request.slave, 1, "Schedule SDO upload request.\n");
  2854     EC_SLAVE_DBG(request.slave, 1, "Schedule SDO upload request.\n");
  2855 
  2855 
  2856     // schedule request.
  2856     // schedule request.
  2857     list_add_tail(&request.list, &request.slave->slave_sdo_requests);
  2857     list_add_tail(&request.list, &request.slave->sdo_requests);
  2858 
  2858 
  2859     up(&master->master_sem);
  2859     up(&master->master_sem);
  2860 
  2860 
  2861     // wait for processing through FSM
  2861     // wait for processing through FSM
  2862     if (wait_event_interruptible(request.slave->sdo_queue,
  2862     if (wait_event_interruptible(request.slave->sdo_queue,