mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
spmi: pmic-arb: Use asynchronous probe
A spmi controller may have many child devices, which together may take a signifigant amount of time to register and probe. Reduce this effect by probing asynchronously. After: [ 0.277217] calling__software_resume+0x0/0x24c_@_1 Before: [ 0.319295] calling__software_resume+0x0/0x24c_@_1 Change-Id: I95704a2ae7aae98e23dc9f29c7d023867d60388d Signed-off-by: Patrick Daly <[email protected]> Signed-off-by: Swathi Sridhar <[email protected]>
This commit is contained in:
parent
727f8a7022
commit
f4031a6aa1
1 changed files with 2 additions and 1 deletions
|
|
@ -1,6 +1,6 @@
|
|||
// SPDX-License-Identifier: GPL-2.0-only
|
||||
/*
|
||||
* Copyright (c) 2012-2015, 2017, The Linux Foundation. All rights reserved.
|
||||
* Copyright (c) 2012-2015, 2017-2018 The Linux Foundation. All rights reserved.
|
||||
*/
|
||||
#include <linux/bitmap.h>
|
||||
#include <linux/delay.h>
|
||||
|
|
@ -1344,6 +1344,7 @@ static struct platform_driver spmi_pmic_arb_driver = {
|
|||
.driver = {
|
||||
.name = "spmi_pmic_arb",
|
||||
.of_match_table = spmi_pmic_arb_match_table,
|
||||
.probe_type = PROBE_PREFER_ASYNCHRONOUS,
|
||||
},
|
||||
};
|
||||
module_platform_driver(spmi_pmic_arb_driver);
|
||||
|
|
|
|||
Loading…
Reference in a new issue