Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1abe1e07 authored by Veerabhadrarao Badiganti's avatar Veerabhadrarao Badiganti
Browse files

scsi: ufs-qcom: Force probe of ufs based on boolean property



Force probing the ufs device even if it is not the bootdevice based on
device tree property "force-ufshc-probe".
This enables the embedded ufs device for other usecases even when board
is not using UFS for boot.

Change-Id: I8e959fd9bdb810d2dcd6c793a9c7dfbfcd66eaaa
Signed-off-by: default avatarVeerabhadrarao Badiganti <vbadigan@codeaurora.org>
parent c091c7a8
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -74,6 +74,7 @@ Optional properties:
			  Defaults to 26 MHz if not specified.
- extcon:       phandle to external connector (Refer Documentation/devicetree/bindings/extcon/extcon-gpio.txt for more details).
- non-removable		: defines if the connected ufs device is not removable
- force-ufshc-probe	: For force probing UFS device (non removable) even if it is not the boot device.


Note: If above properties are not defined it can be assumed that the supply
+1 −1
Original line number Diff line number Diff line
@@ -2740,7 +2740,7 @@ static int ufs_qcom_probe(struct platform_device *pdev)
	 * the regulators.
	 */
	if (of_property_read_bool(np, "non-removable") &&
	    strlen(android_boot_dev) &&
	    !of_property_read_bool(np, "force-ufshc-probe") &&
	    strcmp(android_boot_dev, dev_name(dev)))
		return -ENODEV;