From 3a4daeca76431d557a7c1b8eed82eb788b7ec5c7 Mon Sep 17 00:00:00 2001 From: Vasant Hegde Date: Thu, 12 Mar 2020 18:11:45 +0530 Subject: Revert "FSP: Disable PSI link whenever FSP tells OPAL about impending R/R" This reverts commit a4788a49f004a91bb8ca015336abf9ae119fbc52. Above patch was added to handle host power down with FSP in R/R state. But FSP is not liking OPAL giving up PSI link early in R/R process. For FSP initiated R/R OPAL should wait until we get PSI interrupt. Hence reverting above commit. Also partially reverting commit e04a34af to make fsp_dpo_pending as global variable. We have made several improvement in the way we handle FSP communication and also in power down path. Now if host sends powerdown message when FSP in RR, OPAL return OPAL_BUSY_EVENT. Kernel will run poller() and retry power down message after sometime. So I think this patch will not have any side effect on power down path. Cc: Ananth N Mavinakayanahalli Signed-off-by: Vasant Hegde Acked-by: Ananth N Mavinakayanahalli Signed-off-by: Oliver O'Halloran --- include/fsp.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include/fsp.h') diff --git a/include/fsp.h b/include/fsp.h index 0c53ed7..2010dd0 100644 --- a/include/fsp.h +++ b/include/fsp.h @@ -842,6 +842,7 @@ extern void fsp_epow_init(void); /* DPO */ extern void fsp_dpo_init(void); +extern bool fsp_dpo_pending; /* Chiptod */ extern void fsp_chiptod_init(void); -- cgit v1.1