From: p.zabel@pengutronix.de (Philipp Zabel)
To: linux-snps-arc@lists.infradead.org
Subject: [PATCH v2] ARC: HSDK: improve reset driver
Date: Wed, 17 Oct 2018 16:20:31 +0200 [thread overview]
Message-ID: <1539786031.4729.7.camel@pengutronix.de> (raw)
In-Reply-To: <1539784482.4199.35.camel@synopsys.com>
Hi Eugeniy,
On Wed, 2018-10-17@13:54 +0000, Eugeniy Paltsev wrote:
[...]
> > The documentation states that calling reset_control_assert "on an
> > exclusive reset controller guarantees that the reset will be asserted."
> > Since this is clearly not the case with this driver, it is appropriate
> > to keep returning an error in this case.
> >
> > If there is a driver that requests an exclusive reset control, calls
> > reset_control_assert, and then checks the error value to see whether
> > asserting the reset succeeded, it should be made aware that
> > we couldn't actually assert the reset line as requested. If the driver
> > can continue operation even though the reset line was not asserted,
> > it should ignore the error.
> >
> > So if you need to hide this error, I'd like to know the actual case that
> > is fixed by this, to see if we can't fix it in a better way.
>
> Ok, I can drop it in my case as it will work fine with certain drivers:
> (several drivers use shared reset control, other drivers use exclusive reset
> control but don't check reset_control_assert() return value)
>
> I simply want to say that this wouldn't work in all cases (without changes
> in driver which use reset control).
Ok, if there is ever such a case, please let me know.
regards
Philipp
prev parent reply other threads:[~2018-10-17 14:20 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-09-28 16:28 [PATCH v2] ARC: HSDK: improve reset driver Eugeniy Paltsev
2018-10-12 12:08 ` Philipp Zabel
2018-10-17 13:54 ` Eugeniy Paltsev
2018-10-17 14:20 ` Philipp Zabel [this message]
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=1539786031.4729.7.camel@pengutronix.de \
--to=p.zabel@pengutronix.de \
--cc=linux-snps-arc@lists.infradead.org \
/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;
as well as URLs for NNTP newsgroup(s).