[RFC PATCH 5/7] tsm: Don't error out for doe mailbox failure

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Only function 0 is expected to support the DOE mailbox.

Signed-off-by: Aneesh Kumar K.V (Arm) <aneesh.kumar@xxxxxxxxxx>
---
 drivers/pci/tsm.c | 13 ++++---------
 1 file changed, 4 insertions(+), 9 deletions(-)

diff --git a/drivers/pci/tsm.c b/drivers/pci/tsm.c
index e798d9bf3da4..a0deddac6767 100644
--- a/drivers/pci/tsm.c
+++ b/drivers/pci/tsm.c
@@ -192,21 +192,16 @@ static void __pci_tsm_init(struct pci_dev *pdev)
 	 * a candidate to connect with the platform TSM
 	 */
 	struct pci_dsm *dsm __free(dsm_remove) = tsm_ops->probe(pdev);
-
-	pci_dbg(pdev, "Device security capabilities detected (%s%s ), TSM %s\n",
-		pdev->ide_cap ? " ide" : "", tee_cap ? " tee" : "",
-		dsm ? "attach" : "skip");
-
 	if (!dsm)
 		return;
 
 	mutex_init(&pci_tsm->lock);
 	pci_tsm->doe_mb = pci_find_doe_mailbox(pdev, PCI_VENDOR_ID_PCI_SIG,
 					       PCI_DOE_PROTO_CMA);
-	if (!pci_tsm->doe_mb) {
-		pci_warn(pdev, "TSM init failure, no CMA mailbox\n");
-		return;
-	}
+	pci_info(pdev, "Device security capabilities detected (%s%s%s)\n",
+		 pdev->ide_cap ? " ide" : "",
+		 tee_cap ? " tee" : "",
+		 pci_tsm->doe_mb ? " doe" : "");
 
 	pci_tsm->state = PCI_TSM_INIT;
 	pci_tsm->dsm = no_free_ptr(dsm);
-- 
2.43.0





[Index of Archives]     [DMA Engine]     [Linux Coverity]     [Linux USB]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Greybus]

  Powered by Linux