From: Ilias Apalodimas <ilias.apalodimas@linaro.org>
To: u-boot@lists.denx.de
Subject: [PATCH v2] tee: optee: Change printing during optee_probe
Date: Fri, 12 Mar 2021 07:07:18 +0200 [thread overview]
Message-ID: <YEr3Bn+CXoj9pVKW@apalos.home> (raw)
In-Reply-To: <CAPnjgZ1JM9WZBFk8S_DRc2KX1iTA5NogcNXB1xKW+iEpjbvwcQ@mail.gmail.com>
On Thu, Mar 11, 2021 at 09:45:46PM -0700, Simon Glass wrote:
> Hi Ilias,
>
> On Wed, 10 Mar 2021 at 06:35, Ilias Apalodimas
> <ilias.apalodimas@linaro.org> wrote:
> >
> > Right now the error messages when optee has a version mismatch or shared
> > memory is not configured are done with a debug().
> > That's not very convenient since you have to enable debugging to figure
> > out what's going on, although this is an actual error.
>
> The code that probes the device should report the error.
I am notr sure I am following here. This gets called from the core dm code. Is
there a callback in that, so we can register a specific print per device?
If not now how do you expect the core to habdle each specific driver error
code and print a message that makes sense?
> If you put
> errors in a device driver it bloats the code and also it makes it
> impossible for the caller to suppress the error, e.g. if it is OK for
> the device to not probe.
Well in the op-tee case it's an explicit node you need to add in the DTB. So i
am not really sure this applies here.
Thanks
/Ilias
>
>
> >
> > So let's switch the debug() -> dev_err() and report those explicitly.
> >
> > Signed-off-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
> > Reviewed-by: Patrick Delaunay <patrick.delaunay@foss.st.com>
> > ---
> > drivers/tee/optee/core.c | 6 +++---
> > 1 file changed, 3 insertions(+), 3 deletions(-)
next prev parent reply other threads:[~2021-03-12 5:07 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-03-10 13:35 [PATCH v2] tee: optee: Change printing during optee_probe Ilias Apalodimas
2021-03-12 4:45 ` Simon Glass
2021-03-12 5:07 ` Ilias Apalodimas [this message]
2021-03-12 15:47 ` Simon Glass
2021-04-13 14:28 ` Tom Rini
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=YEr3Bn+CXoj9pVKW@apalos.home \
--to=ilias.apalodimas@linaro.org \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox