From ea84e9776a978ec06af9ea4c69cf9957f47bfdc0 Mon Sep 17 00:00:00 2001 From: Lazarus Motha Date: Fri, 21 Oct 2022 16:24:00 -0700 Subject: [PATCH 1/2] bus: mhi: host: Fix compilation error in mhi_prepare_for_power_up This commit fixes compilation error resulting due to missing ampersand in mhi__prepare_for_power_up API. Change-Id: I7f23e9c67ad95374a4085d1161a6e8d9f8dbe9dc Signed-off-by: Lazarus Motha --- drivers/bus/mhi/host/init.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/bus/mhi/host/init.c b/drivers/bus/mhi/host/init.c index 3878d875bf5e..63744d87b817 100644 --- a/drivers/bus/mhi/host/init.c +++ b/drivers/bus/mhi/host/init.c @@ -1167,7 +1167,7 @@ int mhi_prepare_for_power_up(struct mhi_controller *mhi_cntrl) mhi_cntrl->rddm_image); if (ret) { mhi_free_bhie_table(mhi_cntrl, - mhi_cntrl->rddm_image); + &mhi_cntrl->rddm_image); goto error_reg_offset; } } From 4344f0d4456d0cd81f581dda5707dec9bc082fa8 Mon Sep 17 00:00:00 2001 From: Lazarus Motha Date: Tue, 20 Sep 2022 18:00:00 -0700 Subject: [PATCH 2/2] bus: mhi: Add MHI devices and controllers stack in makefile Enable MHI devices and controllers stack as they are now present in the host directory. Change-Id: I23d8f69150020921ac1dcf9e1463c079cc3ab309 Signed-off-by: Lazarus Motha --- drivers/bus/mhi/Kconfig | 2 ++ drivers/bus/mhi/Makefile | 6 ++++++ 2 files changed, 8 insertions(+) diff --git a/drivers/bus/mhi/Kconfig b/drivers/bus/mhi/Kconfig index b39a11e6c624..b13f94386796 100644 --- a/drivers/bus/mhi/Kconfig +++ b/drivers/bus/mhi/Kconfig @@ -7,3 +7,5 @@ source "drivers/bus/mhi/host/Kconfig" source "drivers/bus/mhi/ep/Kconfig" +source "drivers/bus/mhi/devices/Kconfig" +source "drivers/bus/mhi/controllers/Kconfig" diff --git a/drivers/bus/mhi/Makefile b/drivers/bus/mhi/Makefile index 46981331b38f..ac6f0fa5662f 100644 --- a/drivers/bus/mhi/Makefile +++ b/drivers/bus/mhi/Makefile @@ -3,3 +3,9 @@ obj-y += host/ # Endpoint MHI stack obj-y += ep/ + +# MHI Devices stack +obj-y += devices/ + +#MHI Controller stack +obj-y += controllers/