linux-gpio.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Phil Reid <preid@electromag.com.au>
To: gnurou@gmail.com, linux-gpio@vger.kernel.org
Cc: Phil Reid <preid@electromag.com.au>
Subject: [PATCH 1/2] gpiolib: prevent fault 'Unable to handle kernel paging request at virtual address'
Date: Fri,  4 Dec 2015 17:06:24 +0800	[thread overview]
Message-ID: <1449219985-67261-2-git-send-email-preid@electromag.com.au> (raw)
In-Reply-To: <1449219985-67261-1-git-send-email-preid@electromag.com.au>

gpiod_request when gpio returns -EBUSY results in fault.
Changing to pr_warn fixes the problem.

Signed-off-by: Phil Reid <preid@electromag.com.au>
---
 drivers/gpio/gpiolib.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/gpio/gpiolib.c b/drivers/gpio/gpiolib.c
index a18f00f..0ef01b8 100644
--- a/drivers/gpio/gpiolib.c
+++ b/drivers/gpio/gpiolib.c
@@ -961,7 +961,7 @@ int gpiod_request(struct gpio_desc *desc, const char *label)
 
 done:
 	if (status)
-		gpiod_dbg(desc, "%s: status %d\n", __func__, status);
+		pr_warn("%s: status %d\n", __func__, status);
 
 	return status;
 }
-- 
1.8.3.1


  reply	other threads:[~2015-12-04  9:16 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-12-04  9:06 [PATCH 0/2] fdsfsd Phil Reid
2015-12-04  9:06 ` Phil Reid [this message]
2015-12-04  9:06 ` [PATCH 2/2] gpio-pca953x: Add set_multiple to allow multiple bits to be set in one write Phil Reid
2015-12-04  9:21 ` [PATCH 0/2] gpiolib exception & gpio-pca953x set_multiple support Phil Reid

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=1449219985-67261-2-git-send-email-preid@electromag.com.au \
    --to=preid@electromag.com.au \
    --cc=gnurou@gmail.com \
    --cc=linux-gpio@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;
as well as URLs for NNTP newsgroup(s).