public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Shared Resets
@ 2016-06-02 10:12 Lee Jones
  2016-06-02 10:50 ` Hans de Goede
  0 siblings, 1 reply; 2+ messages in thread
From: Lee Jones @ 2016-06-02 10:12 UTC (permalink / raw)
  To: p.zabel; +Cc: linux-kernel, hdegoede

Philipp, Hans,

After rebasing to the most recent upstream kernel tag (v4.6-rc1), I
witnessed some issues where a couple of USB PHY drivers where having
trouble requesting their reset lines.  After some poking around, I
stumbled across Hans' shared reset patch.  It looks reasonable at
first, but when I came to make the necessary driver changes, I
realised that your effectively insisting that drivers have platform
specific knowledge.

The way I see it, drivers should request, deassert and assert their
reset lines.  Just as clock users, request, enable and disable their
clocks.  Whether the reset lines (or clocks) are left on after an
assert (disable) because there are other users, should be of no
concern to the consumer, right?

I would like to see (and am happy to author) a different approach,
where knowledge of whether a reset line is shared or not is contained
in the framework, as it is in the clock case.

What are your thoughts?

Kind regards,
Lee

-- 
Lee Jones
Linaro STMicroelectronics Landing Team Lead
Linaro.org │ Open source software for ARM SoCs
Follow Linaro: Facebook | Twitter | Blog

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2016-06-02 10:50 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-06-02 10:12 Shared Resets Lee Jones
2016-06-02 10:50 ` Hans de Goede

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox