From: Wolfgang Grandegger <wg@domain.hid>
To: Matthias Fuchs <matthias.fuchs@domain.hid>
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai-core] [PATCH] rtcan_mem - CAN driver for memory mapped SJA1000 controllers
Date: Tue, 12 Sep 2006 15:57:31 +0200 [thread overview]
Message-ID: <4506BCCB.9010105@domain.hid> (raw)
In-Reply-To: <200609121513.40749.matthias.fuchs@domain.hid>
Matthias Fuchs wrote:
> Hi Wolfgang,
>
> On Tuesday 12 September 2006 14:22, Wolfgang Grandegger wrote:
>> What about using request_mem_region()? While looking to the driver I now
> ... will be added, of course.
>> realize, that it's mainly duplicated code. Does it not make more sense
>> to make a combined io/mem driver. If io address < 32K it's an io driver
>> else a mem driver.
> Yes, that's possible. We can also decide on the used module parameter (mem or
> io) what is to do. Passing both results in an error.
>
> You are right that its duplicated code. But the driver is very simple. It
> nearly does nothing but mapping, implementing register access callbacks,
> registering and cleanup when unloading. But the driver differs in all these
> points from the isa/io colleague. I like shot an simple drivers, so that you
> do not have to care about breaking the isa/io part when modifying the mem
> part.
>
>>> There's one thing a I am not very satisfied with :-) Why passing half of
> the
>>> external clock frequency to the module. Because of compatiblity reasons I
>>> kept this behavior of the clock paramter from the ISA driver.
>> The attached patch fixes this and replaces the module parameter "isa"
>> with "io". I also tend to rename the driver into rtcan_io instead
>> rtcan_isa if we keep it.
> Sounds good.
Jan, could you apply this patch to avoid further confusion? The real CAN
clock frequency listed also in the proc file system is half of the
oscillator clock. Some more doc might help to avoid further confusion.
Wolfgang.
next prev parent reply other threads:[~2006-09-12 13:57 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-09-12 11:30 [Xenomai-core] [PATCH] rtcan_mem - CAN driver for memory mapped SJA1000 controllers Matthias Fuchs
2006-09-12 12:21 ` Jan Kiszka
2006-09-12 12:22 ` Wolfgang Grandegger
2006-09-12 12:38 ` Jan Kiszka
2006-09-12 13:52 ` Wolfgang Grandegger
2006-09-12 13:13 ` Matthias Fuchs
2006-09-12 13:57 ` Wolfgang Grandegger [this message]
2006-09-12 14:25 ` Jan Kiszka
2006-09-12 16:07 ` Matthias Fuchs
2006-09-12 16:46 ` Wolfgang Grandegger
2006-09-12 18:37 ` Jan Kiszka
2006-09-12 19:05 ` Matthias Fuchs
2006-09-12 20:42 ` Jan Kiszka
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=4506BCCB.9010105@domain.hid \
--to=wg@domain.hid \
--cc=matthias.fuchs@domain.hid \
--cc=xenomai@xenomai.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.