From: anarsoul@gmail.com (Vasily Khoruzhick)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 3/4] s3c244x: configure GPG13-15 as input before suspend
Date: Wed, 31 Mar 2010 09:15:38 +0300 [thread overview]
Message-ID: <201003310915.44139.anarsoul@gmail.com> (raw)
In-Reply-To: <20100331011337.GM31126@trinity.fluff.org>
? ????????? ?? 31 ????? 2010 04:13:37 ????? Ben Dooks ???????:
> > +#ifdef CONFIG_S3C_DEV_NAND
> > + /* According to S3C2442 user's manual, page 7-17,
> > + * when the system is operating in NAND boot mode,
> > + * the hardware pin configuration - EINT[23:21] ???
> > + * must be set as input for starting up after
> > + * wakeup from sleep mode
> > + */
> > + s3c2410_gpio_cfgpin(S3C2410_GPG(15), S3C2410_GPIO_INPUT);
> > + s3c2410_gpio_cfgpin(S3C2410_GPG(14), S3C2410_GPIO_INPUT);
> > + s3c2410_gpio_cfgpin(S3C2410_GPG(13), S3C2410_GPIO_INPUT);
>
> Please don't do this conditionally, we can compile kernels supporting
> many machines, some of the machines might not be using this boot method.
>
> I'll think over the solution.
>
> 1) Make each machine add a relevant sysdev to hook suspend/resume.
>
> 2) Update the nand driver to do this, but would (a) need to check what
> else is s3c2440 compatible, and (b) it doesn't know if the system
> has booted from NAND or not.
Maybe it's better to do this in s3c2410_pm_prepare()? I see some machine-
specific gpio configuration there.
Regards
Vasily
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20100331/2da39d54/attachment.sig>
next prev parent reply other threads:[~2010-03-31 6:15 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-03-20 18:20 [PATCH 0/4] HP iPAQ RX1950 patch series Vasily Khoruzhick
2010-03-20 18:20 ` [PATCH 1/4] Add HP iPAQ RX1950 machine support Vasily Khoruzhick
2010-03-21 22:42 ` denis grigoriev
2010-03-20 18:20 ` [PATCH 2/4] Locate kernel at 0x30108000 if PM_H1940 is enabled Vasily Khoruzhick
2010-03-20 18:20 ` [PATCH 3/4] s3c244x: configure GPG13-15 as input before suspend Vasily Khoruzhick
2010-03-31 1:13 ` Ben Dooks
2010-03-31 6:15 ` Vasily Khoruzhick [this message]
2010-03-20 18:20 ` [PATCH 4/4] Add suspend/resume support for RX1950 Vasily Khoruzhick
2010-03-25 6:28 ` [PATCH 0/4] HP iPAQ RX1950 patch series Vasily Khoruzhick
2010-03-29 7:58 ` Vasily Khoruzhick
2010-03-31 1:15 ` Ben Dooks
2010-03-31 6:38 ` Vasily Khoruzhick
2010-04-01 12:45 ` Vasily Khoruzhick
2010-04-12 19:38 ` Vasily Khoruzhick
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=201003310915.44139.anarsoul@gmail.com \
--to=anarsoul@gmail.com \
--cc=linux-arm-kernel@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.