mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Miguel Ojeda" <maxextreme@gmail.com>
To: "Andrew Morton" <akpm@osdl.org>
Cc: linux-kernel@vger.kernel.org
Subject: Re: [PATCH update5] drivers: add LCD support
Date: Wed, 1 Nov 2006 00:24:17 +0000	[thread overview]
Message-ID: <653402b90610311624m549adc79p3f9eec3bf9be4f12@mail.gmail.com> (raw)
In-Reply-To: <20061031155445.02f1aa6b.akpm@osdl.org>

On 10/31/06, Andrew Morton <akpm@osdl.org> wrote:
> On Wed, 1 Nov 2006 00:37:48 +0000
> Miguel Ojeda Sandonis <maxextreme@gmail.com> wrote:
>
> > Andrew, here it is the fifth update for the drivers-add-lcd-support.
>
> It does queue_delayed_work(), but forgot to do cancel_delayed_work().  If
> the timer is still pending after module unload, deadly things will happen.
>

Hum, I call cancel_delayed_work() as well as flush_workqueue() at module exit:

static void __exit cfag12864b_exit(void)
{
...
+       cfag12864b_disable();
...
}

And cfag12864b_disable() will call them, as fast as the mutex is
unlocked (in fact, modules must call cfag12864b_disable() when they
finish working with the LCD, as cfag12864bfb, for example, does, but
just for be safe, I called it at module unload in cfag12864b. If it is
already disabled, it won't hurt in any way.)

Is that right?

> There's a lot of "if(" in there.  Usual kernel style is "if (".
>

Excuse me, will fix in a few moments.

      reply	other threads:[~2006-11-01  0:24 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-11-01  0:37 Miguel Ojeda Sandonis
2006-10-31 23:54 ` Andrew Morton
2006-11-01  0:24   ` Miguel Ojeda [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=653402b90610311624m549adc79p3f9eec3bf9be4f12@mail.gmail.com \
    --to=maxextreme@gmail.com \
    --cc=akpm@osdl.org \
    --cc=linux-kernel@vger.kernel.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

all inboxes | Powered by JetHome®