From: Stefan Roese <stefan.roese@gmail.com>
To: Wolfgang Denk <wd@denx.de>
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai] [PATCH v2] mpc5200: Add RTDM LPBFIFO driver and demo RTDM FPGA device driver
Date: Wed, 21 Nov 2012 10:28:20 +0100 [thread overview]
Message-ID: <50AC9EB4.1020705@gmail.com> (raw)
In-Reply-To: <20121121090913.B53842003CF@gemini.denx.de>
Hi Wolfgang,
On 11/21/2012 10:09 AM, Wolfgang Denk wrote:
> In message <1353481805-28850-1-git-send-email-stefan.roese@gmail.com> you wrote:
>>
>> This patch adds support for the RTDM LPB (LocalPlusBus) FIFO driver
>> for the MPC5200. It will be used for DMA support in an RTDM FPGA
>> device driver. This rt-fpga.c driver is a custom device driver,
>> but might be useful for other developers as well. Thats why I
>> included it here too.
> ...
>> --- /dev/null
>> +++ b/ksrc/drivers/mpc5200_dma/Config.in
>> @@ -0,0 +1,10 @@
>> +#
>> +# Xenomai configuration for Linux v2.4
>
> Linux v2.4 ???
>
> I am pretty sure this driver will not run with a 2.4 Linux kenrel...
Yes. I just put it in since all drivers in ksrc had it as well. Will
remove in the next version.
>> +#define dbg(format, arg...) \
>> + printk("%s (%d): " format, __func__, __LINE__, ##arg)
>> +#else
>> +#define dbg(format, arg...) \
>> +do { \
>> + if (0) \
>> + printk("%s (%d): " format, __func__, __LINE__, ##arg); \
>> +} while (0)
>> +#endif
>
> Why do you define your own (incomaptible to everything else) debug
> facilities? Can you not rather use the existing kernel debug
> macros?
I'll move to a common kernel debug function/macro in the next patch version.
>> +#ifdef PRINT_READ_TIME
>
> I see no translation happening anywhere between PRINT_READ_TIME and
> CONFIG_XENO_DRIVERS_MPC5200_DMA_PRINT_READ_TIME - am I missing
> something?
>
>> +#ifdef NO_DMA
>
> Ditto for NO_DMA versus CONFIG_XENO_DRIVERS_MPC5200_DMA_NO_DMA ?
Good catch. I forgot to switch all occurrences of these defines. Will
fix in next version.
Thanks,
Stefan
prev parent reply other threads:[~2012-11-21 9:28 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-11-21 7:10 [Xenomai] [PATCH v2] mpc5200: Add RTDM LPBFIFO driver and demo RTDM FPGA device driver stefan.roese
2012-11-21 8:24 ` Jan Kiszka
2012-11-21 9:27 ` Stefan Roese
2012-11-22 19:58 ` Jan Kiszka
2012-11-23 7:18 ` Stefan Roese
2012-11-21 9:09 ` Wolfgang Denk
2012-11-21 9:28 ` Stefan Roese [this message]
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=50AC9EB4.1020705@gmail.com \
--to=stefan.roese@gmail.com \
--cc=wd@denx.de \
--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.