Commit graph

874,573 commits

Author SHA1 Message Date
Heikki Krogerus
df76aa0442 usb: typec: ucsi: Remove all bit-fields
We can't use bit fields with data that is received or send
to/from the device.

Change-Id: I20467156173540cb8306ec15bdbb5ed7f17e1959
Signed-off-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Tested-by: Ajay Gupta <ajayg@nvidia.com>
Link: https://lore.kernel.org/r/20191104142435.29960-17-heikki.krogerus@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Git-commit: 3cf657f07918bc2d9295bf896a71bd31e407bb0c
Git-repo: https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git
Signed-off-by: Jack Pham <jackp@codeaurora.org>
2019-11-25 10:07:07 -08:00
Heikki Krogerus
43c6e4c137 usb: typec: ucsi: Remove struct ucsi_control
That data structure was used for constructing the commands
before executing them, but it was never really useful. Using
the structure just complicated the driver. The commands are
64-bit wide, so it is enough to simply fill a u64 variable.
No data structures needed.

This simplifies the driver considerable and makes it much
easier to for example add support for big endian systems
later on.

Change-Id: I3533a2c24c3a91ea51e2ebdefe6bc2351223ca0b
Signed-off-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Tested-by: Ajay Gupta <ajayg@nvidia.com>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Link: https://lore.kernel.org/r/20191104142435.29960-16-heikki.krogerus@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Git-commit: 470ce43a1a810117f09aa4bcad6ca2be6b29c8d1
Git-repo: https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git
Signed-off-by: Jack Pham <jackp@codeaurora.org>
2019-11-25 10:07:07 -08:00
Heikki Krogerus
0765951ca1 usb: typec: ucsi: Remove the old API
The drivers now only use the new API, so removing the old one.

Change-Id: I716f18549d9f3efcbd47ef51ca371d37e4a5f3df
Signed-off-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Tested-by: Ajay Gupta <ajayg@nvidia.com>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Link: https://lore.kernel.org/r/20191104142435.29960-15-heikki.krogerus@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Git-commit: 2ede55468ca8cc236da66579359c2c406d4c1cba
Git-repo: https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git
Signed-off-by: Jack Pham <jackp@codeaurora.org>
2019-11-25 10:07:07 -08:00
Heikki Krogerus
3884275a90 usb: typec: ucsi: ccg: Move to the new API
Replacing the old "cmd" and "sync" callbacks with an
implementation of struct ucsi_operations. The interrupt
handler will from now on read the CCI (Command Status and
Connector Change Indication) register, and call
ucsi_connector_change() function and/or complete pending
command completions based on it.

Change-Id: I9dfdc70b10544d6e65a0d289491be7cd9232e4af
Signed-off-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Tested-by: Ajay Gupta <ajayg@nvidia.com>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Link: https://lore.kernel.org/r/20191104142435.29960-14-heikki.krogerus@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Git-commit: e32fd989ac1c45f993fbe89ad0a89aa9ea6993d2
Git-repo: https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git
Signed-off-by: Jack Pham <jackp@codeaurora.org>
2019-11-25 10:07:06 -08:00
Heikki Krogerus
d0d25f124e usb: typec: ucsi: acpi: Move to the new API
Replacing the old "cmd" and "sync" callbacks with an
implementation of struct ucsi_operations. The ACPI
notification (interrupt) handler will from now on read the
CCI (Command Status and Connector Change Indication)
register, and call ucsi_connector_change() function and/or
complete pending command completions based on it.

Change-Id: Ia7c8e9e87f23ce6a70a657bf0e053345caf543cc
Signed-off-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Link: https://lore.kernel.org/r/20191104142435.29960-13-heikki.krogerus@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Git-commit: f56de278e8ec963637995944156527162dcf3021
Git-repo: https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git
Signed-off-by: Jack Pham <jackp@codeaurora.org>
2019-11-25 10:07:06 -08:00
Heikki Krogerus
9609b59d23 usb: typec: ucsi: Simplified registration and I/O API
Adding more simplified API for interface registration and
read and write operations.

The registration is split into separate creation and
registration phases. That allows the drivers to properly
initialize the interface before registering it if necessary.

The read and write operations are supplied in a completely
separate struct ucsi_operations that is passed to the
ucsi_register() function during registration. The new read
and write operations will work more traditionally so that
the read callback function reads a requested amount of data
from an offset, and the write callback functions write the
given data to the offset. The drivers will have to support
both non-blocking writing and blocking writing. In blocking
writing the driver itself is responsible of waiting for the
completion event.

The new API makes it possible for the drivers to perform
tasks also independently of the core ucsi.c, and that should
allow for example quirks to be handled completely in the
drivers without the need to touch ucsi.c.

The old API is kept until all drivers have been converted to
the new API.

Change-Id: Ica25b44b228a96adbc2bd397d74978db6074c82e
Signed-off-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Tested-by: Ajay Gupta <ajayg@nvidia.com>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Link: https://lore.kernel.org/r/20191104142435.29960-12-heikki.krogerus@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Git-commit: bdc62f2bae8fb0e8e99574de5232f0a3c54a27df
Git-repo: https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git
Signed-off-by: Jack Pham <jackp@codeaurora.org>
2019-11-25 10:07:06 -08:00
Heikki Krogerus
088f52f15f usb: typec: Remove the callback members from struct typec_capability
There are no more users for them.

Change-Id: Ia8f006d7c052326188a1249117daf243066aaeaa
Signed-off-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Link: https://lore.kernel.org/r/20191104142435.29960-9-heikki.krogerus@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Git-commit: 8c038ea8b65fc803cd35423b8a1ff7057dd52f8b
Git-repo: https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git
Signed-off-by: Jack Pham <jackp@codeaurora.org>
2019-11-25 10:07:05 -08:00
Heikki Krogerus
929d75d207 usb: typec: ucsi: Start using struct typec_operations
Supplying the operation callbacks as part of a struct
typec_operations instead of as part of struct
typec_capability during port registration.

Change-Id: I51ad090a7551096558f921cf5f347d4871ea769f
Signed-off-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Link: https://lore.kernel.org/r/20191104142435.29960-7-heikki.krogerus@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Git-commit: 6df475f804e62887f5d2132832ecabe6e596cd1c
Git-repo: https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git
Signed-off-by: Jack Pham <jackp@codeaurora.org>
2019-11-25 10:07:05 -08:00
Heikki Krogerus
06d4ed6096 usb: typec: tps6598x: Start using struct typec_operations
Supplying the operation callbacks as part of a struct
typec_operations instead of as part of struct
typec_capability during port registration. After this there
is not need to keep the capabilities stored anywhere in the
driver.

Change-Id: Ib7bd4d899925522dbea297e25a50d8bdd3aa79e2
Signed-off-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Link: https://lore.kernel.org/r/20191104142435.29960-6-heikki.krogerus@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Git-commit: 1007dda3be1c9f924746f892c094219be250928e
Git-repo: https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git
Signed-off-by: Jack Pham <jackp@codeaurora.org>
2019-11-25 10:07:05 -08:00
Heikki Krogerus
84ef8818a8 usb: typec: tcpm: Start using struct typec_operations
Supplying the operation callbacks as part of a struct
typec_operations instead of as part of struct
typec_capability during port registration.

Change-Id: I6eb7c3e87c8704e4d9ccae1d6e615bb1e492fd81
Signed-off-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Link: https://lore.kernel.org/r/20191104142435.29960-5-heikki.krogerus@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Git-commit: 00ec21e58dc63dd899a1e1cb3f1d44fa18ca22dd
Git-repo: https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git
Signed-off-by: Jack Pham <jackp@codeaurora.org>
2019-11-25 10:07:04 -08:00
Heikki Krogerus
328c602a09 usb: typec: Separate the operations vector
Introducing struct typec_operations which has the same
callbacks as struct typec_capability. The old callbacks are
kept for now, but after all users have been converted, they
will be removed.

Change-Id: Idfad5265f42ee2fcf6dbd0e109ed4f98b7563cb0
Signed-off-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Link: https://lore.kernel.org/r/20191104142435.29960-4-heikki.krogerus@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Git-commit: 46310e4dade2bc3b574d540e421e3aa9f32cfd5f
Git-repo: https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git
Signed-off-by: Jack Pham <jackp@codeaurora.org>
2019-11-25 10:07:04 -08:00
Heikki Krogerus
9b784e3a10 usb: typec: Introduce typec_get_drvdata()
Leaving the private driver_data pointer of the port device
to the port drivers.

Change-Id: Ib38c66e69a15904d5a8160312af6532f28712b67
Signed-off-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Link: https://lore.kernel.org/r/20191104142435.29960-3-heikki.krogerus@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Git-commit: 8c127a42af89c39560a8c5bd5accadaaa5741f8c
Git-repo: https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git
Signed-off-by: Jack Pham <jackp@codeaurora.org>
2019-11-25 10:07:04 -08:00
Heikki Krogerus
6591b48228 usb: typec: Copy everything from struct typec_capability during registration
Copying everything from struct typec_capability to struct
typec_port during port registration. This will make sure
that under no circumstances the driver can change the values
in the struct typec_capability that the port uses.

Change-Id: I6e94623300837afe5eedfc5a7d7214d61c147cff
Signed-off-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Link: https://lore.kernel.org/r/20191104142435.29960-2-heikki.krogerus@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Git-commit: ad772c39b2fbb24ff6104d73d14fc125d8f02711
Git-repo: https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git
Signed-off-by: Jack Pham <jackp@codeaurora.org>
2019-11-25 10:07:04 -08:00
qctecmdr
11b286fb73 Merge "platform: msm: Migrate SCM calls in IPAv3" 2019-11-21 10:51:40 -08:00
qctecmdr
7af7e28c0e Merge "PM / devfreq: Add cache HW monitor governor" 2019-11-21 10:21:40 -08:00
qctecmdr
57aa166221 Merge "usb: dwc3-msm: Fix usage of find_matching_dbm_ep()" 2019-11-21 09:45:13 -08:00
qctecmdr
bdd39a28b4 Merge "clk: qcom: gpucc: Fix gpll0 parent names" 2019-11-21 09:08:37 -08:00
qctecmdr
f21762b8f4 Merge "msm: ipa: Adapt IPA driver to several DLKMs" 2019-11-21 07:44:37 -08:00
qctecmdr
ce93124b98 Merge "msm: ipa4: add MAC filtering for 802_1Q packets" 2019-11-21 01:56:54 -08:00
qctecmdr
0fa15b97cc Merge "iommu/arm-smmu: Fix atomic domain handling" 2019-11-20 21:55:22 -08:00
qctecmdr
067f101702 Merge "soc: qcom: qsee_ipc_irq_bridge: Use __poll_t for qiib_poll" 2019-11-20 15:58:35 -08:00
qctecmdr
158fc52b71 Merge "arm64: defconfig: Enable the ARM SMMU module on Lahaina" 2019-11-20 15:58:34 -08:00
qctecmdr
f6203b6327 Merge "techpack: Replace xtype with type while searching for sub-dirs" 2019-11-20 15:58:34 -08:00
qctecmdr
fa519ac504 Merge "msm: ipa: Update WDI3.0 specific GSI interface for Lahaina" 2019-11-20 15:58:34 -08:00
qctecmdr
8e5fd2b3f0 Merge "interconnect: Move Lahaina interconnect driver to core_initcall" 2019-11-20 15:58:33 -08:00
qctecmdr
bcea21bdd1 Merge "soc: qcom: Migrate SCM calls in jtagv8" 2019-11-20 15:58:33 -08:00
qctecmdr
ae3eacab9f Merge "usb: phy: Remove unused register offsets" 2019-11-20 12:53:48 -08:00
qctecmdr
4f35bba296 Merge "msm: ipa: Bus Scaling/Interconnect Migration" 2019-11-20 12:13:55 -08:00
Amir Levy
ece40dea5e msm: ipa4: add MAC filtering for 802_1Q packets
Add ability to filter MAC addresses from 802_1Q packets.
MAC address is located in a different offset than in ETH_II
header.

Change-Id: I4b808102dbb708779762bedb998c2477b5058886
Signed-off-by: Amir Levy <alevy@codeaurora.org>
2019-11-20 15:26:52 +02:00
Siddharth Gupta
bea316fb9c platform: msm: Migrate SCM calls in IPAv3
Adding API to upstream driver to get secure dump state and protect
memory regions. Migrating SCM calls used in the IPA driver.

Change-Id: Ia61436d8c18ddda49c411e06f147cdae345a23af
Signed-off-by: Siddharth Gupta <sidgup@codeaurora.org>
Signed-off-by: Elliot Berman <eberman@codeaurora.org>
2019-11-19 22:45:36 -08:00
Siddharth Gupta
44992a2dfa soc: qcom: Migrate SCM calls in jtagv8
Adding API to upstream driver to get JTAG ETM feat id.
Migrating SCM calls used in the JTAG driver.

Change-Id: I60cd57d5c6aae62ec089e960b55ac221f0474f64
Signed-off-by: Siddharth Gupta <sidgup@codeaurora.org>
Signed-off-by: Elliot Berman <eberman@codeaurora.org>
2019-11-19 22:45:36 -08:00
Siddharth Gupta
5d6607bbfc crypto: ice: Migrate SCM calls
Migrating all SCM calls made to the old driver to now be made
through the backported upstream driver.

Change-Id: Ic77d315c5a55859f0cc58d7bbf05c0c24d1ef155
Signed-off-by: Siddharth Gupta <sidgup@codeaurora.org>
Signed-off-by: Elliot Berman <eberman@codeaurora.org>
2019-11-19 22:45:36 -08:00
Siddharth Gupta
050d2dca67 iommu/arm-smmu: Migrate SCM IO calls in arm-smmu
Migrate SCM IO read calls in the smmu driver to use new SCM driver.
Add support for io-pgtable-msm-secure map and unmap in SCM driver.

Change-Id: If1ce054b9cfcfdcdab3aecc6752fcd4765197a05
Signed-off-by: Siddharth Gupta <sidgup@codeaurora.org>
Signed-off-by: Elliot Berman <eberman@codeaurora.org>
2019-11-19 22:45:36 -08:00
Elliot Berman
e061e5f060 soc: qcom: Migrate SCM calls in core hang
Migrate SCM io_read/write to upstream API in core hang detection.

Change-Id: If720dcd0f9a5341276fcd2a052c8ab6cf238aaa5
Signed-off-by: Elliot Berman <eberman@codeaurora.org>
Signed-off-by: Siddharth Gupta <sidgup@codeaurora.org>
2019-11-19 22:45:36 -08:00
Elliot Berman
f3261f7069 msm: kgsl: Migrate SCM calls in adreno
- Migrate iommu_sync scm call to firmware/qcom_scm driver.
- Migrate a5xx_microcode_load to use qcom_scm_set_remote_state.

Change-Id: I05911ac6cf9366b4bff5ee02e6832b8728d1d35e
Signed-off-by: Elliot Berman <eberman@codeaurora.org>
2019-11-19 22:45:36 -08:00
Elliot Berman
f1624c54ae soc: qcom: Migrate SCM call to disable watchdog
Add support for SCM call to deactivate secure watchdog on Qualcomm
devices.

Change-Id: I4008792e45d2c264b98ca954ea37a94093ea771e
Signed-off-by: Elliot Berman <eberman@codeaurora.org>
2019-11-19 22:45:36 -08:00
Elliot Berman
bbf72fdcb6 firmware: qcom_scm: Use qtee_shmbridge if available
Secure world imposed that buffer exchanges between secure and non-secure
worlds be allocated from qtee_shmbridge, so add a function to allocate
buffer space using shmbridge for extra arguments. Change helps in
dealing with early scm calls when the driver is not initialized.

Change-Id: I270b4aef9d33ec6d7ea0897ddcc0944ac9e1833f
Signed-off-by: Elliot Berman <eberman@codeaurora.org>
2019-11-19 22:45:36 -08:00
Siddharth Gupta
4d0fbd6baf firmware: qcom_scm: Merge qtee_shmbridge and qcom_scm
Merge qtee_shmbridge and qcom_scm drivers into a single compilation unit.

Change-Id: Icfbf7c335fc8d9468236cdc08dfda52fa563be40
Signed-off-by: Siddharth Gupta <sidgup@codeaurora.org>
Signed-off-by: Elliot Berman <eberman@codeaurora.org>
2019-11-19 22:45:36 -08:00
Elliot Berman
29f1d94ad1 firmware: qcom_scm: Rename -64 -> -smc, remove -32
- Rename qcom_scm-64.c to qcom_scm-smc as it supports SMC-based calling
  conventions for 32 and 64-bit targets
- Remove qcom_scm-32.c as it has been superceded by qcom_scm-smc.c
- Update Kconfig to select QCOM_SCM_TRANSPORT_SMC on ARM and ARM64
  targets

Change-Id: Iae94a73e0c7cefb9a253230212d01f6126cd0c15
Signed-off-by: Elliot Berman <eberman@codeaurora.org>
2019-11-19 22:45:36 -08:00
Bojun Pan
826473f5e9 msm: ipa: Update WDI3.0 specific GSI interface for Lahaina
Update the GSI register fields to handle the latest
WDI3.0 changes.

Change-Id: I10c2f1280a1f5b9e79a339f4989a2fb41fe07b6e
Acked-by: Priyadarshini Rajagopal <prajagop@qti.qualcomm.com>
Signed-off-by: Bojun Pan <bojunp@codeaurora.org>
2019-11-19 20:51:00 -08:00
qctecmdr
2e0893d913 Merge "soc: qcom: Add Kconfig dependency for SENSORS_SSC" 2019-11-19 16:50:03 -08:00
Isaac J. Manjarres
3f411d46fb arm64: defconfig: Enable the ARM SMMU module on Lahaina
Enable the ARM SMMU driver as a module for Lahaina GKI.

Change-Id: I217b0fc81c78331fc2a710546eaa1d3e79a59917
Signed-off-by: Isaac J. Manjarres <isaacm@codeaurora.org>
2019-11-19 16:33:36 -08:00
Isaac J. Manjarres
207d91c187 iommu/arm-smmu: Allow the ARM-SMMU driver to be a module
Allow the ARM SMMU driver to be compiled as a loadable
kernel module.

Change-Id: Ib982ddb7f8ed82c5f7983db8b85bb2c6c83502c6
Signed-off-by: Isaac J. Manjarres <isaacm@codeaurora.org>
2019-11-19 16:33:35 -08:00
Isaac J. Manjarres
871061b2ea Revert "iommu/arm-smmu: Make arm-smmu explicitly non-modular"
This reverts commit addb672f20.

Change-Id: I2e9dc3c90c7821fc378afee3cb83bfce66c9d14c
Signed-off-by: Isaac J. Manjarres <isaacm@codeaurora.org>
2019-11-19 16:32:52 -08:00
Isaac J. Manjarres
f785b675ce iommu/arm-smmu: Fix atomic domain handling
Query if a domain is atomic or not after initializing the
domain, as opposed to before, when the domain properties
have not been finalized.

Change-Id: Ib2f05156268a16cccb410e263de957d9eb2070ae
Signed-off-by: Isaac J. Manjarres <isaacm@codeaurora.org>
2019-11-19 16:30:32 -08:00
Isaac J. Manjarres
2b275308a1 iommu/arm-smmu: Use a bitmap for the SMMU domain attributes
Use a bitmap to maintain the domain attributes for SMMU domains.
This simplifies the handling for the domain attributes, as it
removes the need to explicitly manipulate the bits, which can
be error-prone.

Change-Id: I719900df9d80801239b8e815d29953f3c6d067f0
Signed-off-by: Isaac J. Manjarres <isaacm@codeaurora.org>
2019-11-19 16:30:26 -08:00
qctecmdr
40bc59439e Merge "msm: adsprpc: fix compilation errors in fastrpc driver on lahaina" 2019-11-19 16:10:53 -08:00
Mike Tipton
c8fc98b764 clk: qcom: gpucc: Fix gpll0 parent names
Update the parent names used for gpll0 to match the actual names in the
GCC driver. Without this change, clk_set_rate will fail when the
determine_rate callback fails to find the associated parent.

Change-Id: I0b17fed4e11c30ffb00a2737078bfab5ea1ef523
Signed-off-by: Mike Tipton <mdtipton@codeaurora.org>
2019-11-19 15:04:52 -08:00
Mayank Rana
6699b963bc usb: phy: Remove unused register offsets
Remove unused register offset related enums as those are not used
for configuration within USB PHY driver. This helps to reduce
number of register offset value need to pass from devicetree with
USB QMP PHY device node.

Change-Id: Ia0581c3dc8210bfaac9a7318eb75e1ffa35440b6
Signed-off-by: Mayank Rana <mrana@codeaurora.org>
2019-11-19 13:50:28 -08:00
Bruce Levy
836f7ba9cc techpack: Replace xtype with type while searching for sub-dirs
Some build environments do not support -xtype. Therefore
use -type instead.

Change-Id: I459bdd9e16dc31ea0b91d5f0cb86d4dabb1e3352
Signed-off-by: Bruce Levy <blevy@codeaurora.org>
2019-11-19 11:52:49 -08:00