bus: mhi: core: Add support for reading MHI info from device
authorManivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Tue, 24 Mar 2020 06:10:45 +0000 (11:40 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 26 Mar 2020 14:51:07 +0000 (15:51 +0100)
commit3316ab2b45f6bf4797d8d65b22fda3cc13318890
tree8cf015a625e9d65ef366b0dff54957639942552f
parent10cea23b6aae15e8324f4101d785687f2c514fe5
bus: mhi: core: Add support for reading MHI info from device

The MHI register base has several registers used for getting the MHI
specific information such as version, family, major, and minor numbers
from the device. This information can be used by the controller drivers
for usecases such as applying quirks for a specific revision etc...

While at it, let's also rearrange the local variables
in mhi_register_controller().

Suggested-by: Hemant Kumar <hemantk@codeaurora.org>
Reviewed-by: Jeffrey Hugo <jhugo@codeaurora.org>
Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Link: https://lore.kernel.org/r/20200324061050.14845-3-manivannan.sadhasivam@linaro.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/bus/mhi/core/init.c
drivers/bus/mhi/core/internal.h
include/linux/mhi.h