Compare commits
6 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
4b1e292b77 | ||
|
|
19b8f7bb76 | ||
|
|
b6a3560c73 | ||
|
|
cc846a3479 | ||
|
|
8e45550cb9 | ||
|
|
cad5241b1f |
3
.gitmodules
vendored
3
.gitmodules
vendored
@@ -1,3 +0,0 @@
|
||||
[submodule "KernelSU-Next"]
|
||||
path = KernelSU-Next
|
||||
url = https://github.com/KernelSU-Next/KernelSU-Next
|
||||
Submodule KernelSU-Next deleted from 2241696498
@@ -692,6 +692,7 @@
|
||||
00 00 0a 0a
|
||||
00 00 8a 8a];
|
||||
qcom,platform-regulator-settings = [1d 1d 1d 1d 1d];
|
||||
qcom,panel-allow-phy-poweroff;
|
||||
qcom,phy-supply-entries {
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
|
||||
@@ -234,5 +234,4 @@ source "drivers/sensors/Kconfig"
|
||||
source "drivers/gpu/msm/Kconfig"
|
||||
|
||||
source "drivers/energy_model/Kconfig"
|
||||
source "drivers/kernelsu/Kconfig"
|
||||
endmenu
|
||||
|
||||
@@ -193,5 +193,3 @@ obj-$(CONFIG_UNISYS_VISORBUS) += visorbus/
|
||||
obj-$(CONFIG_SIOX) += siox/
|
||||
obj-$(CONFIG_GNSS) += gnss/
|
||||
obj-$(CONFIG_SENSORS_SSC) += sensors/
|
||||
|
||||
obj-$(CONFIG_KSU) += kernelsu/
|
||||
|
||||
@@ -1 +0,0 @@
|
||||
../KernelSU-Next/kernel
|
||||
@@ -77,7 +77,6 @@ extern int finish_automount(struct vfsmount *, struct path *);
|
||||
extern int sb_prepare_remount_readonly(struct super_block *);
|
||||
|
||||
extern void __init mnt_init(void);
|
||||
int path_umount(struct path *path, int flags);
|
||||
|
||||
extern int __mnt_want_write_file(struct file *);
|
||||
extern void __mnt_drop_write_file(struct file *);
|
||||
|
||||
@@ -1645,40 +1645,6 @@ static inline bool may_mandlock(void)
|
||||
}
|
||||
#endif
|
||||
|
||||
static int can_umount(const struct path *path, int flags)
|
||||
{
|
||||
struct mount *mnt = real_mount(path->mnt);
|
||||
|
||||
if (flags & ~(MNT_FORCE | MNT_DETACH | MNT_EXPIRE | UMOUNT_NOFOLLOW))
|
||||
return -EINVAL;
|
||||
if (!may_mount())
|
||||
return -EPERM;
|
||||
if (path->dentry != path->mnt->mnt_root)
|
||||
return -EINVAL;
|
||||
if (!check_mnt(mnt))
|
||||
return -EINVAL;
|
||||
if (mnt->mnt.mnt_flags & MNT_LOCKED) /* Check optimistically */
|
||||
return -EINVAL;
|
||||
if (flags & MNT_FORCE && !capable(CAP_SYS_ADMIN))
|
||||
return -EPERM;
|
||||
return 0;
|
||||
}
|
||||
|
||||
int path_umount(struct path *path, int flags)
|
||||
{
|
||||
struct mount *mnt = real_mount(path->mnt);
|
||||
int ret;
|
||||
|
||||
ret = can_umount(path, flags);
|
||||
if (!ret)
|
||||
ret = do_umount(mnt, flags);
|
||||
|
||||
/* we mustn't call path_put() as that would clear mnt_expiry_mark */
|
||||
dput(path->dentry);
|
||||
mntput_no_expire(mnt);
|
||||
return ret;
|
||||
}
|
||||
|
||||
/*
|
||||
* Now umount can handle mount points as well as block devices.
|
||||
* This is important for filesystems which use unnamed block devices.
|
||||
|
||||
@@ -325,8 +325,12 @@ static int dsi_phy_settings_init(struct platform_device *pdev,
|
||||
/* Actual timing values are dependent on panel */
|
||||
timing->count_per_lane = phy->ver_info->timing_cfg_count;
|
||||
|
||||
#ifndef CONFIG_MACH_XIAOMI_UMI
|
||||
phy->allow_phy_power_off = of_property_read_bool(pdev->dev.of_node,
|
||||
"qcom,panel-allow-phy-poweroff");
|
||||
#else
|
||||
phy->allow_phy_power_off = false;
|
||||
#endif
|
||||
|
||||
of_property_read_u32(pdev->dev.of_node,
|
||||
"qcom,dsi-phy-regulator-min-datarate-bps",
|
||||
|
||||
Reference in New Issue
Block a user