File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -141,6 +141,11 @@ static void mrpc_cmd_submit(struct switchtec_dev *stdev)
141141 stuser = list_entry (stdev -> mrpc_queue .next , struct switchtec_user ,
142142 list );
143143
144+ if (stdev -> dma_mrpc ) {
145+ stdev -> dma_mrpc -> status = SWITCHTEC_MRPC_STATUS_INPROGRESS ;
146+ memset (stdev -> dma_mrpc -> data , 0xFF , SWITCHTEC_MRPC_PAYLOAD_SIZE );
147+ }
148+
144149 stuser_set_state (stuser , MRPC_RUNNING );
145150 stdev -> mrpc_busy = 1 ;
146151 memcpy_toio (& stdev -> mmio_mrpc -> input_data ,
@@ -1257,7 +1262,7 @@ static int switchtec_init_isr(struct switchtec_dev *stdev)
12571262 return - EFAULT ;
12581263
12591264 dma_mrpc_irq = pci_irq_vector (stdev -> pdev , dma_mrpc_irq );
1260- if (event_irq < 0 )
1265+ if (dma_mrpc_irq < 0 )
12611266 return dma_mrpc_irq ;
12621267
12631268 rc = devm_request_irq (& stdev -> pdev -> dev , dma_mrpc_irq ,
You can’t perform that action at this time.
0 commit comments