diff options
Diffstat (limited to 'arch/powerpc/platforms/iseries/viopath.c')
-rw-r--r-- | arch/powerpc/platforms/iseries/viopath.c | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/arch/powerpc/platforms/iseries/viopath.c b/arch/powerpc/platforms/iseries/viopath.c index 842672695598..622a30149b48 100644 --- a/arch/powerpc/platforms/iseries/viopath.c +++ b/arch/powerpc/platforms/iseries/viopath.c | |||
@@ -270,7 +270,7 @@ static void handleMonitorEvent(struct HvLpEvent *event) | |||
270 | * First see if this is just a normal monitor message from the | 270 | * First see if this is just a normal monitor message from the |
271 | * other partition | 271 | * other partition |
272 | */ | 272 | */ |
273 | if (event->xFlags.xFunction == HvLpEvent_Function_Int) { | 273 | if (hvlpevent_is_int(event)) { |
274 | remoteLp = event->xSourceLp; | 274 | remoteLp = event->xSourceLp; |
275 | if (!viopathStatus[remoteLp].isActive) | 275 | if (!viopathStatus[remoteLp].isActive) |
276 | sendMonMsg(remoteLp); | 276 | sendMonMsg(remoteLp); |
@@ -331,13 +331,12 @@ static void handleConfig(struct HvLpEvent *event) | |||
331 | { | 331 | { |
332 | if (!event) | 332 | if (!event) |
333 | return; | 333 | return; |
334 | if (event->xFlags.xFunction == HvLpEvent_Function_Int) { | 334 | if (hvlpevent_is_int(event)) { |
335 | printk(VIOPATH_KERN_WARN | 335 | printk(VIOPATH_KERN_WARN |
336 | "unexpected config request from partition %d", | 336 | "unexpected config request from partition %d", |
337 | event->xSourceLp); | 337 | event->xSourceLp); |
338 | 338 | ||
339 | if ((event->xFlags.xFunction == HvLpEvent_Function_Int) && | 339 | if (hvlpevent_need_ack(event)) { |
340 | (event->xFlags.xAckInd == HvLpEvent_AckInd_DoAck)) { | ||
341 | event->xRc = HvLpEvent_Rc_InvalidSubtype; | 340 | event->xRc = HvLpEvent_Rc_InvalidSubtype; |
342 | HvCallEvent_ackLpEvent(event); | 341 | HvCallEvent_ackLpEvent(event); |
343 | } | 342 | } |
@@ -377,7 +376,7 @@ static void vio_handleEvent(struct HvLpEvent *event, struct pt_regs *regs) | |||
377 | int subtype = (event->xSubtype & VIOMAJOR_SUBTYPE_MASK) | 376 | int subtype = (event->xSubtype & VIOMAJOR_SUBTYPE_MASK) |
378 | >> VIOMAJOR_SUBTYPE_SHIFT; | 377 | >> VIOMAJOR_SUBTYPE_SHIFT; |
379 | 378 | ||
380 | if (event->xFlags.xFunction == HvLpEvent_Function_Int) { | 379 | if (hvlpevent_is_int(event)) { |
381 | remoteLp = event->xSourceLp; | 380 | remoteLp = event->xSourceLp; |
382 | /* | 381 | /* |
383 | * The isActive is checked because if the hosting partition | 382 | * The isActive is checked because if the hosting partition |
@@ -436,8 +435,7 @@ static void vio_handleEvent(struct HvLpEvent *event, struct pt_regs *regs) | |||
436 | "unexpected virtual io event subtype %d from partition %d\n", | 435 | "unexpected virtual io event subtype %d from partition %d\n", |
437 | event->xSubtype, remoteLp); | 436 | event->xSubtype, remoteLp); |
438 | /* No handler. Ack if necessary */ | 437 | /* No handler. Ack if necessary */ |
439 | if ((event->xFlags.xFunction == HvLpEvent_Function_Int) && | 438 | if (hvlpevent_is_int(event) && hvlpevent_need_ack(event)) { |
440 | (event->xFlags.xAckInd == HvLpEvent_AckInd_DoAck)) { | ||
441 | event->xRc = HvLpEvent_Rc_InvalidSubtype; | 439 | event->xRc = HvLpEvent_Rc_InvalidSubtype; |
442 | HvCallEvent_ackLpEvent(event); | 440 | HvCallEvent_ackLpEvent(event); |
443 | } | 441 | } |