linux-embedded.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Alexander Varnin <fenixk19@mail.ru>
To: Nicholas Mc Guire <der.herr@hofr.at>
Cc: linux-embedded@vger.kernel.org
Subject: Re: Need help adding platform UIO devices to board
Date: Thu, 29 Nov 2012 13:47:25 +0400	[thread overview]
Message-ID: <50B72F2D.30101@mail.ru> (raw)
In-Reply-To: <50B72B0D.80904@mail.ru>

29.11.2012 13:29, Alexander Varnin пишет:
> 28.11.2012 23:03, Nicholas Mc Guire пишет:
> Yes, sorry, stupid mistake.
> But with the correct rights O_RDWR i get error 22 EINVAL both on read 
> and write.
> So problem is still there.
> -- 
> To unsubscribe from this list: send the line "unsubscribe 
> linux-embedded" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
Seems to be solved.

Problem was due to lines

if (count != sizeof(s32))
return -EINVAL;

in uio_read kernel function.

I've made read of 4 bytes, and it is ok.

  reply	other threads:[~2012-11-29  9:47 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-11-28 18:53 Need help adding platform UIO devices to board Alexander Varnin
2012-11-28 19:03 ` Nicholas Mc Guire
2012-11-29  9:29   ` Alexander Varnin
2012-11-29  9:47     ` Alexander Varnin [this message]
     [not found] ` <008d01cdce0d$d6ea04d0$84be0e70$@iii.org.tw>
2012-11-29  9:38   ` Alexander Varnin

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=50B72F2D.30101@mail.ru \
    --to=fenixk19@mail.ru \
    --cc=der.herr@hofr.at \
    --cc=linux-embedded@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 read-only IMAP folder(s) and NNTP newsgroup(s).