Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- commit 1f423ebe2f428114cc24275aa04be2a49b7067d9
- Author: Dan Pasanen <dan.pasanen@gmail.com>
- Date: Wed Jan 3 14:18:08 2018 -0600
- [NEEDS CLEANUP] more essential shit we may or may not need
- Change-Id: I92492e428b7ce8214853dfc90cffa55378e63bee
- diff --git a/drivers/media/platform/msm/vidc/msm_vidc_common.c b/drivers/media/platform/msm/vidc/msm_vidc_common.c
- index 9e07fb8f81a5..6190789f642a 100644
- --- a/drivers/media/platform/msm/vidc/msm_vidc_common.c
- +++ b/drivers/media/platform/msm/vidc/msm_vidc_common.c
- @@ -4967,6 +4967,7 @@ int msm_vidc_check_session_supported(struct msm_vidc_inst *inst)
- int rc = 0;
- struct hfi_device *hdev;
- struct msm_vidc_core *core;
- + u32 output_height, output_width, input_height, input_width;
- if (!inst || !inst->core || !inst->core->device) {
- dprintk(VIDC_WARN, "%s: Invalid parameter\n", __func__);
- @@ -4993,6 +4994,22 @@ int msm_vidc_check_session_supported(struct msm_vidc_inst *inst)
- if (!rc)
- msm_dcvs_try_enable(inst);
- + output_height = inst->prop.height[CAPTURE_PORT];
- + output_width = inst->prop.width[CAPTURE_PORT];
- + input_height = inst->prop.height[OUTPUT_PORT];
- + input_width = inst->prop.width[OUTPUT_PORT];
- +
- + if (input_width % 2 != 0 || input_height % 2 != 0 ||
- + output_width % 2 != 0 || output_height % 2 != 0) {
- + dprintk(VIDC_ERR,
- + "Height and Width should be even numbers for NV12\n");
- + dprintk(VIDC_ERR,
- + "Input WxH = (%u)x(%u), Output WxH = (%u)x(%u)\n",
- + input_width, input_height,
- + output_width, output_height);
- + rc = -ENOTSUPP;
- + }
- +
- if (!rc) {
- if (inst->prop.width[CAPTURE_PORT] < capability->width.min ||
- inst->prop.height[CAPTURE_PORT] <
- diff --git a/drivers/of/of_reserved_mem.c b/drivers/of/of_reserved_mem.c
- index 22528d051845..8c60dcf35514 100644
- --- a/drivers/of/of_reserved_mem.c
- +++ b/drivers/of/of_reserved_mem.c
- @@ -22,7 +22,7 @@
- #include <linux/of_reserved_mem.h>
- #include <linux/sort.h>
- -#define MAX_RESERVED_REGIONS 16
- +#define MAX_RESERVED_REGIONS 20
- static struct reserved_mem reserved_mem[MAX_RESERVED_REGIONS];
- static int reserved_mem_count;
- diff --git a/drivers/power/supply/qcom/battery.c b/drivers/power/supply/qcom/battery.c
- index 5e8cc84fbfbf..2120dd49f187 100644
- --- a/drivers/power/supply/qcom/battery.c
- +++ b/drivers/power/supply/qcom/battery.c
- @@ -985,7 +985,7 @@ int qcom_batt_init(void)
- goto release_wakeup_source;
- }
- - chip->fv_votable = create_votable("FV", VOTE_MAX,
- + chip->fv_votable = create_votable("FV", VOTE_MIN,
- pl_fv_vote_callback,
- chip);
- if (IS_ERR(chip->fv_votable)) {
- diff --git a/drivers/power/supply/qcom/step-chg-jeita.c b/drivers/power/supply/qcom/step-chg-jeita.c
- index 06ecc7ea6e8a..911ceba09ea1 100644
- --- a/drivers/power/supply/qcom/step-chg-jeita.c
- +++ b/drivers/power/supply/qcom/step-chg-jeita.c
- @@ -85,12 +85,11 @@ static struct step_chg_info *the_chip;
- static struct step_chg_cfg step_chg_config = {
- .psy_prop = POWER_SUPPLY_PROP_VOLTAGE_NOW,
- .prop_name = "VBATT",
- - .hysteresis = 100000, /* 100mV */
- + .hysteresis = 50000, /* 50mV */
- .fcc_cfg = {
- /* VBAT_LOW VBAT_HIGH FCC */
- - {3600000, 4000000, 3000000},
- - {4001000, 4200000, 2800000},
- - {4201000, 4400000, 2000000},
- + {3600000, 4100000, 2500000},
- + {4100001, 4400000, 2000000},
- },
- /*
- * SOC STEP-CHG configuration example.
- @@ -118,25 +117,24 @@ static struct step_chg_cfg step_chg_config = {
- static struct jeita_fcc_cfg jeita_fcc_config = {
- .psy_prop = POWER_SUPPLY_PROP_TEMP,
- .prop_name = "BATT_TEMP",
- - .hysteresis = 10, /* 1degC hysteresis */
- + .hysteresis = 9, /* 1degC hysteresis */
- .fcc_cfg = {
- /* TEMP_LOW TEMP_HIGH FCC */
- - {0, 100, 600000},
- - {101, 200, 2000000},
- - {201, 450, 3000000},
- - {451, 550, 600000},
- + {0, 109, 600000},
- + {110, 209, 1500000},
- + {210, 439, 3000000},
- + {440, 580, 1500000},
- },
- };
- static struct jeita_fv_cfg jeita_fv_config = {
- .psy_prop = POWER_SUPPLY_PROP_TEMP,
- .prop_name = "BATT_TEMP",
- - .hysteresis = 10, /* 1degC hysteresis */
- + .hysteresis = 9, /* 1degC hysteresis */
- .fv_cfg = {
- /* TEMP_LOW TEMP_HIGH FCC */
- - {0, 100, 4200000},
- - {101, 450, 4400000},
- - {451, 550, 4200000},
- + {0, 439, 4400000},
- + {440, 580, 4100000},
- },
- };
- @@ -164,6 +162,7 @@ static int get_val(struct range_data *range, int hysteresis, int current_index,
- range[i].high_threshold, threshold)) {
- *new_index = i;
- *val = range[i].value;
- + break;
- }
- /* if nothing was found, return -ENODATA */
- @@ -337,7 +336,7 @@ static int handle_jeita(struct step_chg_info *chip)
- vote(chip->fv_votable, JEITA_VOTER, true, fv_uv);
- pr_debug("%s = %d FCC = %duA FV = %duV\n",
- - step_chg_config.prop_name, pval.intval, fcc_ua, fv_uv);
- + jeita_fv_config.prop_name, pval.intval, fcc_ua, fv_uv);
- update_time:
- chip->jeita_last_update_time = ktime_get();
- diff --git a/drivers/soc/qcom/pil-q6v5-mss.c b/drivers/soc/qcom/pil-q6v5-mss.c
- index bbcff5923c53..834177bc6f19 100644
- --- a/drivers/soc/qcom/pil-q6v5-mss.c
- +++ b/drivers/soc/qcom/pil-q6v5-mss.c
- @@ -44,6 +44,8 @@
- #define subsys_to_drv(d) container_of(d, struct modem_data, subsys_desc)
- +char mfr_failure_reason[MAX_SSR_REASON_LEN];
- +
- static void log_modem_sfr(void)
- {
- u32 size;
- @@ -63,6 +65,8 @@ static void log_modem_sfr(void)
- strlcpy(reason, smem_reason, min(size, MAX_SSR_REASON_LEN));
- pr_err("modem subsystem failure reason: %s.\n", reason);
- + strlcpy(mfr_failure_reason, smem_reason, min(size, MAX_SSR_REASON_LEN));
- +
- smem_reason[0] = '\0';
- wmb();
- }
- @@ -204,6 +208,8 @@ static int pil_subsys_init(struct modem_data *drv,
- {
- int ret;
- + mfr_failure_reason[0]='\0';
- +
- drv->subsys_desc.name = "modem";
- drv->subsys_desc.dev = &pdev->dev;
- drv->subsys_desc.owner = THIS_MODULE;
- diff --git a/drivers/tty/serial/msm_serial_hs.c b/drivers/tty/serial/msm_serial_hs.c
- index 416006a3384c..14878bb7356b 100644
- --- a/drivers/tty/serial/msm_serial_hs.c
- +++ b/drivers/tty/serial/msm_serial_hs.c
- @@ -2838,6 +2838,7 @@ static int uartdm_init_port(struct uart_port *uport)
- struct msm_hs_port *msm_uport = UARTDM_TO_MSM(uport);
- struct msm_hs_tx *tx = &msm_uport->tx;
- struct msm_hs_rx *rx = &msm_uport->rx;
- + struct sched_param param = { .sched_priority = 1 };
- init_waitqueue_head(&rx->wait);
- init_waitqueue_head(&tx->wait);
- @@ -2852,6 +2853,7 @@ static int uartdm_init_port(struct uart_port *uport)
- MSM_HS_ERR("%s(): error creating task", __func__);
- goto exit_lh_init;
- }
- + sched_setscheduler(rx->task, SCHED_FIFO, ¶m);
- init_kthread_work(&rx->kwork, msm_serial_hs_rx_work);
- init_kthread_worker(&tx->kworker);
- @@ -2861,7 +2863,7 @@ static int uartdm_init_port(struct uart_port *uport)
- MSM_HS_ERR("%s(): error creating task", __func__);
- goto exit_lh_init;
- }
- -
- + sched_setscheduler(tx->task, SCHED_FIFO, ¶m);
- init_kthread_work(&tx->kwork, msm_serial_hs_tx_work);
- rx->buffer = dma_alloc_coherent(uport->dev,
Add Comment
Please, Sign In to add comment