Re: [PATCH v4 1/2] drivers: qcom: add command DB driver

2018-03-06 Thread Stephen Boyd
Quoting Lina Iyer (2018-03-06 08:56:19) > On Tue, Mar 06 2018 at 09:21 -0700, Lina Iyer wrote: > >On Mon, Mar 05 2018 at 11:42 -0700, Stephen Boyd wrote: > >>Quoting Lina Iyer (2018-02-26 09:58:01) > >>>+size_t cmd_db_read_aux_data_len(const char *id) > >>>+{ > >>>+ int ret; > >>>+

Re: [PATCH v4 1/2] drivers: qcom: add command DB driver

2018-03-06 Thread Stephen Boyd
Quoting Lina Iyer (2018-03-06 08:56:19) > On Tue, Mar 06 2018 at 09:21 -0700, Lina Iyer wrote: > >On Mon, Mar 05 2018 at 11:42 -0700, Stephen Boyd wrote: > >>Quoting Lina Iyer (2018-02-26 09:58:01) > >>>+size_t cmd_db_read_aux_data_len(const char *id) > >>>+{ > >>>+ int ret; > >>>+

Re: [PATCH v4 1/2] drivers: qcom: add command DB driver

2018-03-06 Thread Stephen Boyd
Quoting Lina Iyer (2018-03-06 08:21:40) > On Mon, Mar 05 2018 at 11:42 -0700, Stephen Boyd wrote: > >Quoting Lina Iyer (2018-02-26 09:58:01) > > >> +} > >> +EXPORT_SYMBOL(cmd_db_ready); > >> + > >> +static u64 cmd_db_get_u64_id(const char *id) > >> +{ > >> + u64 rsc_id = 0; > >> + u8

Re: [PATCH v4 1/2] drivers: qcom: add command DB driver

2018-03-06 Thread Stephen Boyd
Quoting Lina Iyer (2018-03-06 08:21:40) > On Mon, Mar 05 2018 at 11:42 -0700, Stephen Boyd wrote: > >Quoting Lina Iyer (2018-02-26 09:58:01) > > >> +} > >> +EXPORT_SYMBOL(cmd_db_ready); > >> + > >> +static u64 cmd_db_get_u64_id(const char *id) > >> +{ > >> + u64 rsc_id = 0; > >> + u8

Re: [PATCH v4 1/2] drivers: qcom: add command DB driver

2018-03-06 Thread Lina Iyer
On Tue, Mar 06 2018 at 09:21 -0700, Lina Iyer wrote: On Mon, Mar 05 2018 at 11:42 -0700, Stephen Boyd wrote: Quoting Lina Iyer (2018-02-26 09:58:01) +size_t cmd_db_read_aux_data_len(const char *id) +{ + int ret; + struct entry_header ent; + struct rsc_hdr rsc_hdr; + +

Re: [PATCH v4 1/2] drivers: qcom: add command DB driver

2018-03-06 Thread Lina Iyer
On Tue, Mar 06 2018 at 09:21 -0700, Lina Iyer wrote: On Mon, Mar 05 2018 at 11:42 -0700, Stephen Boyd wrote: Quoting Lina Iyer (2018-02-26 09:58:01) +size_t cmd_db_read_aux_data_len(const char *id) +{ + int ret; + struct entry_header ent; + struct rsc_hdr rsc_hdr; + +

Re: [PATCH v4 1/2] drivers: qcom: add command DB driver

2018-03-06 Thread Lina Iyer
On Mon, Mar 05 2018 at 11:42 -0700, Stephen Boyd wrote: Quoting Lina Iyer (2018-02-26 09:58:01) diff --git a/drivers/soc/qcom/cmd-db.c b/drivers/soc/qcom/cmd-db.c new file mode 100644 index ..0792a2a98fc9 --- /dev/null +++ b/drivers/soc/qcom/cmd-db.c @@ -0,0 +1,319 @@ +/*

Re: [PATCH v4 1/2] drivers: qcom: add command DB driver

2018-03-06 Thread Lina Iyer
On Mon, Mar 05 2018 at 11:42 -0700, Stephen Boyd wrote: Quoting Lina Iyer (2018-02-26 09:58:01) diff --git a/drivers/soc/qcom/cmd-db.c b/drivers/soc/qcom/cmd-db.c new file mode 100644 index ..0792a2a98fc9 --- /dev/null +++ b/drivers/soc/qcom/cmd-db.c @@ -0,0 +1,319 @@ +/*

Re: [PATCH v4 1/2] drivers: qcom: add command DB driver

2018-03-05 Thread Stephen Boyd
Quoting Lina Iyer (2018-02-26 09:58:01) > diff --git a/drivers/soc/qcom/cmd-db.c b/drivers/soc/qcom/cmd-db.c > new file mode 100644 > index ..0792a2a98fc9 > --- /dev/null > +++ b/drivers/soc/qcom/cmd-db.c > @@ -0,0 +1,319 @@ > +/* SPDX-License-Identifier: GPL-2.0 */ > +/* Copyright (c)

Re: [PATCH v4 1/2] drivers: qcom: add command DB driver

2018-03-05 Thread Stephen Boyd
Quoting Lina Iyer (2018-02-26 09:58:01) > diff --git a/drivers/soc/qcom/cmd-db.c b/drivers/soc/qcom/cmd-db.c > new file mode 100644 > index ..0792a2a98fc9 > --- /dev/null > +++ b/drivers/soc/qcom/cmd-db.c > @@ -0,0 +1,319 @@ > +/* SPDX-License-Identifier: GPL-2.0 */ > +/* Copyright (c)

[PATCH v4 1/2] drivers: qcom: add command DB driver

2018-02-26 Thread Lina Iyer
From: Mahesh Sivasubramanian Command DB is a simple database in the shared memory of QCOM SoCs, that provides information regarding shared resources. Some shared resources in the SoC have properties that are probed dynamically at boot by the remote processor. The

[PATCH v4 1/2] drivers: qcom: add command DB driver

2018-02-26 Thread Lina Iyer
From: Mahesh Sivasubramanian Command DB is a simple database in the shared memory of QCOM SoCs, that provides information regarding shared resources. Some shared resources in the SoC have properties that are probed dynamically at boot by the remote processor. The information pertaining to the