Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4f6fd5a0 authored by Bjorn Andersson's avatar Bjorn Andersson
Browse files

remoteproc: Drop dangling find_rsc_table dummies



As the core now deals with the lack of a resource table, remove the
dangling custom dummy implementations of find_rsc_table from drivers.

Reviewed-By: default avatarLoic Pallardy <loic.pallardy@st.com>
Tested-By: default avatarLoic Pallardy <loic.pallardy@st.com>
Signed-off-by: default avatarBjorn Andersson <bjorn.andersson@linaro.org>
parent 58b64090
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -177,7 +177,6 @@ static const struct rproc_ops adsp_ops = {
	.start = adsp_start,
	.stop = adsp_stop,
	.da_to_va = adsp_da_to_va,
	.find_rsc_table = qcom_mdt_find_rsc_table,
	.load = adsp_load,
};

+0 −19
Original line number Diff line number Diff line
@@ -32,25 +32,6 @@

static BLOCKING_NOTIFIER_HEAD(ssr_notifiers);

/**
 * qcom_mdt_find_rsc_table() - provide dummy resource table for remoteproc
 * @rproc:	remoteproc handle
 * @fw:		firmware header
 * @tablesz:	outgoing size of the table
 *
 * Returns a dummy table.
 */
struct resource_table *qcom_mdt_find_rsc_table(struct rproc *rproc,
					       const struct firmware *fw,
					       int *tablesz)
{
	static struct resource_table table = { .ver = 1, };

	*tablesz = sizeof(table);
	return &table;
}
EXPORT_SYMBOL_GPL(qcom_mdt_find_rsc_table);

static int glink_subdev_probe(struct rproc_subdev *subdev)
{
	struct qcom_rproc_glink *glink = to_glink_subdev(subdev);
+0 −4
Original line number Diff line number Diff line
@@ -27,10 +27,6 @@ struct qcom_rproc_ssr {
	const char *name;
};

struct resource_table *qcom_mdt_find_rsc_table(struct rproc *rproc,
					       const struct firmware *fw,
					       int *tablesz);

void qcom_add_glink_subdev(struct rproc *rproc, struct qcom_rproc_glink *glink);
void qcom_remove_glink_subdev(struct rproc *rproc, struct qcom_rproc_glink *glink);

+0 −11
Original line number Diff line number Diff line
@@ -303,16 +303,6 @@ static void q6v5_clk_disable(struct device *dev,
		clk_disable_unprepare(clks[i]);
}

static struct resource_table *q6v5_find_rsc_table(struct rproc *rproc,
						  const struct firmware *fw,
						  int *tablesz)
{
	static struct resource_table table = { .ver = 1, };

	*tablesz = sizeof(table);
	return &table;
}

static int q6v5_xfer_mem_ownership(struct q6v5 *qproc, int *current_perm,
				   bool remote_owner, phys_addr_t addr,
				   size_t size)
@@ -926,7 +916,6 @@ static const struct rproc_ops q6v5_ops = {
	.start = q6v5_start,
	.stop = q6v5_stop,
	.da_to_va = q6v5_da_to_va,
	.find_rsc_table = q6v5_find_rsc_table,
	.load = q6v5_load,
};

+0 −1
Original line number Diff line number Diff line
@@ -308,7 +308,6 @@ static const struct rproc_ops wcnss_ops = {
	.start = wcnss_start,
	.stop = wcnss_stop,
	.da_to_va = wcnss_da_to_va,
	.find_rsc_table = qcom_mdt_find_rsc_table,
	.load = wcnss_load,
};

Loading