public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Greg KH <gregkh@suse.de>
To: "Jimmy Chen (陳永達)" <jimmy.chen@moxa.com>
Cc: linux-kernel@vger.kernel.org, Joe Perches <joe@perches.com>,
	Alan Cox <alan@lxorguk.ukuu.org.uk>
Subject: Re: [PATCH 2/2] misc: add real function open/read/write/ioctl/close for moxa_serial_io driver
Date: Tue, 26 Apr 2011 06:20:41 -0700	[thread overview]
Message-ID: <20110426132041.GB13597@suse.de> (raw)
In-Reply-To: <ECB3782BB8F03341905DD923270296115F6A7D@mhqms01.moxa.com>

On Tue, Apr 26, 2011 at 05:01:23PM +0800, Jimmy Chen (陳永達) wrote:
> Greg,
> Thank for the advices. Yes, we think of accessing the I/O in user
> space level
> (http://www.faqs.org/docs/Linux-mini/IO-Port-Programming.html#s1).
> However, the driver has been used for many years in our product
> including ARM9/ARM11 series platform (note that #ifdef code have been
> removed in this patch). That the reason why we expect to remain the
> consistency during user access. Also, the driver will be used to
> support different arch in the future.

Just because you created a messy/bad user/kernel interface in the past
doesn't mean we are forced to take it :)

I have been aware of this code for a very long time, and I disagreed
with it years ago when I first saw it, yet my opinion seemed to be
ignored then for this same reason.

We don't add code to the kernel that is not necessary, and this code is
not necessary at all as you can do the whole thing from userspace.
Please do it there.

thanks,

greg k-h

  reply	other threads:[~2011-04-26 13:28 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-04-22 10:07 [PATCH 0/2] misc: add support to MOXA V2100 serial io driver Jimmy Chen (陳永達)
2011-04-25  2:28 ` [PATCH 1/2] misc: add option in menu to support " Jimmy Chen (陳永達)
2011-04-25  2:35   ` [PATCH 2/2] misc: add real function open/read/write/ioctl/close for moxa_serial_io driver Jimmy Chen (陳永達)
2011-04-25  2:47     ` Joe Perches
2011-04-25  3:01       ` Greg KH
2011-04-25  3:44         ` Jimmy Chen (陳永達)
2011-04-25 14:13           ` Greg KH
2011-04-26  9:01             ` Jimmy Chen (陳永達)
2011-04-26 13:20               ` Greg KH [this message]
2011-04-25 11:40     ` Alan Cox
2011-04-25 11:34   ` [PATCH 1/2] misc: add option in menu to support MOXA V2100 serial io driver Alan Cox
  -- strict thread matches above, loose matches on Subject: below --
2011-04-25  6:44 [PATCH 2/2] misc: add real function open/read/write/ioctl/close for moxa_serial_io driver Jimmy Chen (陳永達)
2011-04-25  7:30 ` Joe Perches

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=20110426132041.GB13597@suse.de \
    --to=gregkh@suse.de \
    --cc=alan@lxorguk.ukuu.org.uk \
    --cc=jimmy.chen@moxa.com \
    --cc=joe@perches.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox