Thread (22 messages) 22 messages, 5 authors, 2014-09-22

Re: [PATCH 3/3 v2] GPIO: gpio-dwapb: Suspend & Resume PM enabling

From: Linus Walleij <hidden>
Date: 2014-09-19 17:34:35
Also in: linux-devicetree, lkml

On Fri, Sep 5, 2014 at 7:53 AM, Weike Chen [off-list ref] wrote:
This patch enables suspend and resume mode for the power management, and
it is based on Josef Ahmad's previous work.

Reviewed-by: Hock Leong Kweh <redacted>
Reviewed-by: Shevchenko, Andriy <redacted>
Signed-off-by: Weike Chen <redacted>
(...)
+/* Store GPIO context across system-wide suspend/resume transitions */
+static struct dwapb_context {
+       u32 data[DWAPB_MAX_PORTS];
+       u32 dir[DWAPB_MAX_PORTS];
+       u32 ext[DWAPB_MAX_PORTS];
+       u32 int_en;
+       u32 int_mask;
+       u32 int_type;
+       u32 int_pol;
+       u32 int_deb;
+} dwapb_context;
NAK, this should STILL be part of the device state container. Not
a local variable.

I've said this before. Please fix this, thanks.

Yours,
Linus Walleij
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help