mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 11:41:38 -04:00
xen, fbfront: fix connecting to backend
Connecting to the backend isn't working reliably in xen-fbfront: in case XenbusStateInitWait of the backend has been missed the backend transition to XenbusStateConnected will trigger the connected state only without doing the actions required when the backend has connected. Cc: [email protected] Signed-off-by: Juergen Gross <[email protected]> Reviewed-by: Boris Ostrovsky <[email protected]> Signed-off-by: Bartlomiej Zolnierkiewicz <[email protected]>
This commit is contained in:
parent
cfc5b2b551
commit
9121b15b56
1 changed files with 2 additions and 2 deletions
|
|
@ -643,7 +643,6 @@ static void xenfb_backend_changed(struct xenbus_device *dev,
|
|||
break;
|
||||
|
||||
case XenbusStateInitWait:
|
||||
InitWait:
|
||||
xenbus_switch_state(dev, XenbusStateConnected);
|
||||
break;
|
||||
|
||||
|
|
@ -654,7 +653,8 @@ InitWait:
|
|||
* get Connected twice here.
|
||||
*/
|
||||
if (dev->state != XenbusStateConnected)
|
||||
goto InitWait; /* no InitWait seen yet, fudge it */
|
||||
/* no InitWait seen yet, fudge it */
|
||||
xenbus_switch_state(dev, XenbusStateConnected);
|
||||
|
||||
if (xenbus_read_unsigned(info->xbdev->otherend,
|
||||
"request-update", 0))
|
||||
|
|
|
|||
Loading…
Reference in a new issue