|
|
@@ -16,7 +16,7 @@ Signed-off-by: George Moussalem <[email protected]>
|
|
|
|
|
|
--- a/drivers/remoteproc/qcom_q6v5_mpd.c
|
|
|
+++ b/drivers/remoteproc/qcom_q6v5_mpd.c
|
|
|
-@@ -44,10 +44,6 @@
|
|
|
+@@ -45,10 +45,6 @@
|
|
|
#define VERSION2 2
|
|
|
|
|
|
static LIST_HEAD(upd_rproc_list);
|
|
|
@@ -27,7 +27,7 @@ Signed-off-by: George Moussalem <[email protected]>
|
|
|
|
|
|
/**
|
|
|
* struct userpd_boot_info_header - header of user pd bootinfo
|
|
|
-@@ -82,10 +78,15 @@ struct q6_wcss {
|
|
|
+@@ -83,10 +79,15 @@ struct q6_wcss {
|
|
|
phys_addr_t mem_reloc;
|
|
|
void *mem_region;
|
|
|
size_t mem_size;
|
|
|
@@ -45,7 +45,7 @@ Signed-off-by: George Moussalem <[email protected]>
|
|
|
};
|
|
|
|
|
|
struct wcss_data {
|
|
|
-@@ -101,8 +102,8 @@ struct wcss_data {
|
|
|
+@@ -102,8 +103,8 @@ struct wcss_data {
|
|
|
*/
|
|
|
static u8 qcom_get_pd_asid(struct rproc *rproc)
|
|
|
{
|
|
|
@@ -56,7 +56,7 @@ Signed-off-by: George Moussalem <[email protected]>
|
|
|
|
|
|
return bit / 8;
|
|
|
}
|
|
|
-@@ -131,37 +132,37 @@ static int q6_wcss_start(struct rproc *r
|
|
|
+@@ -132,37 +133,37 @@ static int q6_wcss_start(struct rproc *r
|
|
|
static int q6_wcss_spawn_pd(struct rproc *rproc)
|
|
|
{
|
|
|
int ret;
|
|
|
@@ -105,7 +105,7 @@ Signed-off-by: George Moussalem <[email protected]>
|
|
|
ret = q6_wcss_spawn_pd(rproc);
|
|
|
if (ret)
|
|
|
return ret;
|
|
|
-@@ -213,22 +214,22 @@ static int q6_wcss_stop(struct rproc *rp
|
|
|
+@@ -214,22 +215,22 @@ static int q6_wcss_stop(struct rproc *rp
|
|
|
*/
|
|
|
static int wcss_pd_stop(struct rproc *rproc)
|
|
|
{
|
|
|
@@ -135,7 +135,7 @@ Signed-off-by: George Moussalem <[email protected]>
|
|
|
return ret;
|
|
|
}
|
|
|
|
|
|
-@@ -273,7 +274,8 @@ static int share_upd_bootinfo_to_q6(stru
|
|
|
+@@ -274,7 +275,8 @@ static int share_upd_bootinfo_to_q6(stru
|
|
|
size_t size;
|
|
|
u16 cnt = 0, version;
|
|
|
void *ptr;
|
|
|
@@ -145,7 +145,7 @@ Signed-off-by: George Moussalem <[email protected]>
|
|
|
struct rproc *upd_rproc;
|
|
|
struct userpd_boot_info upd_bootinfo = {0};
|
|
|
const struct firmware *fw;
|
|
|
-@@ -308,7 +310,7 @@ static int share_upd_bootinfo_to_q6(stru
|
|
|
+@@ -309,7 +311,7 @@ static int share_upd_bootinfo_to_q6(stru
|
|
|
ptr += sizeof(u16);
|
|
|
|
|
|
list_for_each_entry(upd_rproc, &upd_rproc_list, node) {
|
|
|
@@ -154,7 +154,7 @@ Signed-off-by: George Moussalem <[email protected]>
|
|
|
|
|
|
/* TYPE */
|
|
|
upd_bootinfo.header.type = UPD_BOOT_INFO_HEADER_TYPE;
|
|
|
-@@ -318,11 +320,11 @@ static int share_upd_bootinfo_to_q6(stru
|
|
|
+@@ -319,11 +321,11 @@ static int share_upd_bootinfo_to_q6(stru
|
|
|
sizeof(upd_bootinfo) - sizeof(upd_bootinfo.header);
|
|
|
|
|
|
/* Process ID */
|
|
|
@@ -169,7 +169,7 @@ Signed-off-by: George Moussalem <[email protected]>
|
|
|
return ret;
|
|
|
}
|
|
|
|
|
|
-@@ -421,19 +423,20 @@ static int q6_wcss_load(struct rproc *rp
|
|
|
+@@ -422,19 +424,20 @@ static int q6_wcss_load(struct rproc *rp
|
|
|
*/
|
|
|
static int wcss_pd_load(struct rproc *rproc, const struct firmware *fw)
|
|
|
{
|
|
|
@@ -195,7 +195,7 @@ Signed-off-by: George Moussalem <[email protected]>
|
|
|
}
|
|
|
|
|
|
static unsigned long q6_wcss_panic(struct rproc *rproc)
|
|
|
-@@ -465,26 +468,15 @@ static int q6_alloc_memory_region(struct
|
|
|
+@@ -466,26 +469,15 @@ static int q6_alloc_memory_region(struct
|
|
|
struct device_node *node;
|
|
|
struct device *dev = wcss->dev;
|
|
|
|
|
|
@@ -231,7 +231,7 @@ Signed-off-by: George Moussalem <[email protected]>
|
|
|
}
|
|
|
|
|
|
wcss->mem_phys = rmem->base;
|
|
|
-@@ -508,7 +500,7 @@ static int q6_get_inbound_irq(struct qco
|
|
|
+@@ -509,7 +501,7 @@ static int q6_get_inbound_irq(struct qco
|
|
|
{
|
|
|
int ret, irq;
|
|
|
char *interrupt, *tmp = (char *)int_name;
|
|
|
@@ -240,7 +240,7 @@ Signed-off-by: George Moussalem <[email protected]>
|
|
|
|
|
|
irq = platform_get_irq(pdev, index);
|
|
|
if (irq < 0)
|
|
|
-@@ -520,7 +512,7 @@ static int q6_get_inbound_irq(struct qco
|
|
|
+@@ -521,7 +513,7 @@ static int q6_get_inbound_irq(struct qco
|
|
|
if (!interrupt)
|
|
|
return -ENOMEM;
|
|
|
|
|
|
@@ -249,7 +249,7 @@ Signed-off-by: George Moussalem <[email protected]>
|
|
|
|
|
|
ret = devm_request_threaded_irq(&pdev->dev, *pirq,
|
|
|
NULL, handler,
|
|
|
-@@ -561,7 +553,7 @@ static int init_irq(struct qcom_q6v5 *q6
|
|
|
+@@ -562,7 +554,7 @@ static int init_irq(struct qcom_q6v5 *q6
|
|
|
void (*handover)(struct qcom_q6v5 *q6))
|
|
|
{
|
|
|
int ret;
|
|
|
@@ -258,7 +258,7 @@ Signed-off-by: George Moussalem <[email protected]>
|
|
|
|
|
|
q6->rproc = rproc;
|
|
|
q6->dev = &pdev->dev;
|
|
|
-@@ -581,7 +573,7 @@ static int init_irq(struct qcom_q6v5 *q6
|
|
|
+@@ -582,7 +574,7 @@ static int init_irq(struct qcom_q6v5 *q6
|
|
|
return ret;
|
|
|
|
|
|
/* Get pd_asid to prepare interrupt names */
|
|
|
@@ -267,7 +267,7 @@ Signed-off-by: George Moussalem <[email protected]>
|
|
|
|
|
|
ret = q6_get_inbound_irq(q6, pdev, "fatal", 0, &q6->fatal_irq,
|
|
|
q6v5_fatal_interrupt);
|
|
|
-@@ -619,7 +611,7 @@ static void q6_release_resources(void)
|
|
|
+@@ -620,7 +612,7 @@ static void q6_release_resources(void)
|
|
|
static int q6_register_userpd(struct platform_device *pdev,
|
|
|
struct device_node *userpd_np)
|
|
|
{
|
|
|
@@ -276,7 +276,7 @@ Signed-off-by: George Moussalem <[email protected]>
|
|
|
struct rproc *rproc = NULL;
|
|
|
int ret;
|
|
|
struct platform_device *userpd_pdev;
|
|
|
-@@ -652,21 +644,16 @@ static int q6_register_userpd(struct pla
|
|
|
+@@ -653,21 +645,16 @@ static int q6_register_userpd(struct pla
|
|
|
|
|
|
userpd_pdev->dev.driver = pdev->dev.driver;
|
|
|
rproc = rproc_alloc(&userpd_pdev->dev, userpd_pdev->name, &wcss_ops,
|
|
|
@@ -302,7 +302,7 @@ Signed-off-by: George Moussalem <[email protected]>
|
|
|
WCSS_CRASH_REASON, NULL, NULL);
|
|
|
if (ret)
|
|
|
goto free_rproc;
|
|
|
-@@ -678,7 +665,7 @@ static int q6_register_userpd(struct pla
|
|
|
+@@ -679,7 +666,7 @@ static int q6_register_userpd(struct pla
|
|
|
|
|
|
list_add(&rproc->node, &upd_rproc_list);
|
|
|
platform_set_drvdata(userpd_pdev, rproc);
|
|
|
@@ -311,7 +311,7 @@ Signed-off-by: George Moussalem <[email protected]>
|
|
|
return 0;
|
|
|
|
|
|
free_rproc:
|
|
|
-@@ -719,7 +706,6 @@ static int q6_wcss_probe(struct platform
|
|
|
+@@ -720,7 +707,6 @@ static int q6_wcss_probe(struct platform
|
|
|
wcss->dev = &pdev->dev;
|
|
|
wcss->desc = desc;
|
|
|
wcss->firmware = firmware;
|