From 979dc3df78748821abf1248b971226704f5c50ac Mon Sep 17 00:00:00 2001 From: Stricted Date: Wed, 18 Apr 2018 15:47:34 +0200 Subject: [PATCH] store gtp_ref.bin and gtp_clk.bin on /cache this is safe as the files are getting generated when they dont exist --- .../ttab/touchpanel/gt9xx_driver.c | 20 +++++++++---------- .../ttab/touchpanel/tpd_custom_gt9xx.h | 4 ++-- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/arch/arm/mach-mt8127/ttab/touchpanel/gt9xx_driver.c b/arch/arm/mach-mt8127/ttab/touchpanel/gt9xx_driver.c index 2797ac53135c..42aa3b2df9ce 100644 --- a/arch/arm/mach-mt8127/ttab/touchpanel/gt9xx_driver.c +++ b/arch/arm/mach-mt8127/ttab/touchpanel/gt9xx_driver.c @@ -1584,9 +1584,9 @@ static u8 gtp_bak_ref_proc(struct i2c_client *client, u8 mode) //check file-system mounted GTP_DEBUG("[gtp_bak_ref_proc]Waiting for FS %d", gtp_ref_retries); - if (gup_check_fs_mounted("/data") == FAIL)/*[PLATFORM]-MOD by falin.luo@tcl.com 2015/4/29*/ + if (gup_check_fs_mounted("/cache") == FAIL)/*[PLATFORM]-MOD by falin.luo@tcl.com 2015/4/29*/ { - GTP_DEBUG("[gtp_bak_ref_proc]/data not mounted"); + GTP_DEBUG("[gtp_bak_ref_proc]/cache not mounted"); if(gtp_ref_retries++ < GTP_CHK_FS_MNT_MAX) { msleep(100);/*[PLATFORM]-ADD by falin.luo@tcl.com 2015/4/29*/ @@ -1595,7 +1595,7 @@ static u8 gtp_bak_ref_proc(struct i2c_client *client, u8 mode) } else { - GTP_DEBUG("[gtp_bak_ref_proc]/data mounted !!!!"); + GTP_DEBUG("[gtp_bak_ref_proc]/cache mounted !!!!"); } if (is_950) @@ -1820,9 +1820,9 @@ static u8 gtp_main_clk_proc(struct i2c_client *client) struct file *flp = NULL; GTP_DEBUG("[gtp_main_clk_proc]Waiting for FS %d", gtp_clk_retries);/*[PLATFORM]-MOD by falin.luo@tcl.com 2015/4/29*/ - if (gup_check_fs_mounted("/data") == FAIL)/*[PLATFORM]-MOD by falin.luo@tcl.com 2015/4/29*/ + if (gup_check_fs_mounted("/cache") == FAIL)/*[PLATFORM]-MOD by falin.luo@tcl.com 2015/4/29*/ { - GTP_DEBUG("[gtp_main_clk_proc]/data not mounted"); + GTP_DEBUG("[gtp_main_clk_proc]/cache not mounted"); if(gtp_clk_retries++ < GTP_CHK_FS_MNT_MAX) { msleep(100);/*[PLATFORM]-ADD by falin.luo@tcl.com 2015/4/29*/ @@ -1835,7 +1835,7 @@ static u8 gtp_main_clk_proc(struct i2c_client *client) } else { - GTP_DEBUG("[gtp_main_clk_proc]/data mounted !!!!"); + GTP_DEBUG("[gtp_main_clk_proc]/cache mounted !!!!"); flp = filp_open(GTP_MAIN_CLK_PATH, O_RDWR | O_CREAT, 0666); if (!IS_ERR(flp)) { @@ -1959,17 +1959,17 @@ u8 gtp_hopping_proc(struct i2c_client *client, s32 mode) { s32 ret = 0; - GTP_DEBUG("Store hopping data, wait for /data mounted."); + GTP_DEBUG("Store hopping data, wait for /cache mounted."); /*[PLATFORM]-MOD-BEGIN by falin.luo@tcl.com 2015/4/29*/ - ret = gup_check_fs_mounted("/data"); + ret = gup_check_fs_mounted("/cache"); /*[PLATFORM]-MOD-END by falin.luo@tcl.com 2015/4/29*/ if (FAIL == ret) { - GTP_DEBUG("/data not mounted."); + GTP_DEBUG("/cache not mounted."); return FAIL; } - GTP_DEBUG("/data Mounted!"); + GTP_DEBUG("/cache Mounted!"); if (GTP_HOPPING_SEND == mode) { diff --git a/arch/arm/mach-mt8127/ttab/touchpanel/tpd_custom_gt9xx.h b/arch/arm/mach-mt8127/ttab/touchpanel/tpd_custom_gt9xx.h index 2b573835dab0..d9e63364046f 100644 --- a/arch/arm/mach-mt8127/ttab/touchpanel/tpd_custom_gt9xx.h +++ b/arch/arm/mach-mt8127/ttab/touchpanel/tpd_custom_gt9xx.h @@ -323,8 +323,8 @@ typedef enum #define GTP_CHK_FW_MAX 1000 #define GTP_CHK_FS_MNT_MAX 300 -#define GTP_BAK_REF_PATH "/data/gtp_ref.bin" -#define GTP_MAIN_CLK_PATH "/data/gtp_clk.bin" +#define GTP_BAK_REF_PATH "/cache/gtp_ref.bin" +#define GTP_MAIN_CLK_PATH "/cache/gtp_clk.bin" #define GTP_RQST_CONFIG 0x01 #define GTP_RQST_BAK_REF 0x02 #define GTP_RQST_RESET 0x03 -- 2.20.1