From: Frederic Konrad <fred.konrad@greensocs.com>
To: "Bystricky, Juro" <juro.bystricky@intel.com>
Cc: Marek Vasut <marex@denx.de>,
"qemu-devel@nongnu.org" <qemu-devel@nongnu.org>,
"jurobystricky@hotmail.com" <jurobystricky@hotmail.com>,
"crwulff@gmail.com" <crwulff@gmail.com>
Subject: Re: [Qemu-devel] [PATCH v4] nios2: Add Altera JTAG UART emulation
Date: Fri, 10 Feb 2017 07:54:39 +0100 [thread overview]
Message-ID: <3270cd0f-3e99-2086-c4df-705aad4808fb@greensocs.com> (raw)
In-Reply-To: <6E51916E4A1F32428260031F4C7CD2B6118FBFA6@ORSMSX112.amr.corp.intel.com>
On 02/09/2017 09:53 PM, Bystricky, Juro wrote:
>
>
>> On 02/09/2017 07:52 PM, Juro Bystricky wrote:
>>> JTAG UART core eliminates the need for a separate RS-232 serial
>>> connection to a host PC for character I/O.
>>
>> And how does this describe the content of this patch ? This patch adds a
>> model of JTAG UART , it doesn't eliminate anything ...
>>
>
> The commit message explicitly says:
> "Add Altera JTAG UART emulation."
>
> But I will amend the message with more details.
>
>>> Hardware emulation based on:
>>> https://www.altera.com/en_US/pdfs/literature/ug/ug_embedded_ip.pdf
>>> (Please see "Register Map" on page 65)
>>>
>>> Signed-off-by: Juro Bystricky <juro.bystricky@intel.com>
>>> ---
>>
>> Changelog is missing ...
>
> I modelled this patch based on other nios2 patches, none of them contained
> Changelog. So please elaborate.
Things after "---" disappear when commited in the git.
Thanks,
Fred
>
>
>>> + /*
>>> + * FIFO size can be set from 8 to 32,768 bytes.
>>> + * Only powers of two are allowed.
>>> + */
>>> + fifo_size_ok = false;
>>> + for (size = 8; size <= 32768; size *= 2) {
>>> + if (size == fifo_size) {
>>> + fifo_size_ok = true;
>>> + break;
>>> + }
>>> + }
>>
>> Isn't that like
>>
>> if (size < 8 || size > 32768 || (size & ~(1 << ffs(size))))
>> error()
>>
>
> possibly, however ffs is rejected by checkpatch as non-portable
> libc call.
>
>
>>> +#define DEFAULT_FIFO_SIZE 64
>>
>> This is still not QOM property , why ?
>>
>
> Not sure what you mean, the code has:
>
> DEFINE_PROP_UINT32("fifo-size", AlteraJUARTState, rx_fifo_size, DEFAULT_FIFO_SIZE),
>
>
> Thanks
>
> Juro
>
>
next prev parent reply other threads:[~2017-02-10 6:54 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-02-09 18:52 [Qemu-devel] [PATCH v4] nios2: Add Altera JTAG UART emulation Juro Bystricky
2017-02-09 19:38 ` Marek Vasut
2017-02-09 20:53 ` Bystricky, Juro
2017-02-09 21:04 ` Marek Vasut
2017-02-10 6:54 ` Frederic Konrad [this message]
2017-02-10 18:37 ` Bystricky, Juro
2017-02-10 6:53 ` Frederic Konrad
2017-02-10 18:35 ` Bystricky, Juro
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=3270cd0f-3e99-2086-c4df-705aad4808fb@greensocs.com \
--to=fred.konrad@greensocs.com \
--cc=crwulff@gmail.com \
--cc=juro.bystricky@intel.com \
--cc=jurobystricky@hotmail.com \
--cc=marex@denx.de \
--cc=qemu-devel@nongnu.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.