All of lore.kernel.org
 help / color / mirror / Atom feed
From: Denis Turischev <denis@compulab.co.il>
To: Grant Likely <grant.likely@secretlab.ca>
Cc: Linus Walleij <linus.walleij@stericsson.com>,
	linux-kernel@vger.kernel.org
Subject: [PATCH 1/2] gpio: enable SUS_GPIO[3:0] resume powered gpio, explicitly on Intel SCH.
Date: Sun, 12 Feb 2012 18:42:20 +0200	[thread overview]
Message-ID: <4F37EBEC.8060209@compulab.co.il> (raw)

Resume powered gpio pins SUS_GPIO[3:0] on Intel SCH may be
disabled by BIOS setting, need to enable them explicitly.

Signed-off-by: Denis Turischev <denis@compulab.co.il>
---
 drivers/gpio/gpio-sch.c |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/drivers/gpio/gpio-sch.c b/drivers/gpio/gpio-sch.c
index 8cadf4d..f287016 100644
--- a/drivers/gpio/gpio-sch.c
+++ b/drivers/gpio/gpio-sch.c
@@ -218,10 +218,9 @@ static int __devinit sch_gpio_probe(struct platform_device *pdev)
 			 */
 			outb(0x3, gpio_ba + CGEN + 1);
 			/*
-			 * SUS_GPIO[2:0] enabled by default
-			 * Enable SUS_GPIO3 resume powered gpio explicitly
+			 * Enable SUS_GPIO[3:0] resume powered gpio explicitly
 			 */
-			outb(0x8, gpio_ba + RGEN);
+			outb(0xF, gpio_ba + RGEN);
 			break;
 
 		case PCI_DEVICE_ID_INTEL_ITC_LPC:
-- 
1.7.5.4


             reply	other threads:[~2012-02-12 16:42 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-02-12 16:42 Denis Turischev [this message]
2012-02-12 16:45 ` [PATCH 2/2] gpio: optimise gpio functionality in gpio-sch.c Denis Turischev

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=4F37EBEC.8060209@compulab.co.il \
    --to=denis@compulab.co.il \
    --cc=grant.likely@secretlab.ca \
    --cc=linus.walleij@stericsson.com \
    --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 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.