All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Cédric Le Goater" <clg@kaod.org>
To: Peter Maydell <peter.maydell@linaro.org>
Cc: Marcin Krzeminski <marcin.krzeminski@nokia.com>,
	QEMU Developers <qemu-devel@nongnu.org>,
	Peter Crosthwaite <crosthwaite.peter@gmail.com>
Subject: Re: [Qemu-devel] [PATCH v2 07/11] aspeed/smc: handle SPI flash Command mode
Date: Fri, 20 Jan 2017 12:22:36 +0100	[thread overview]
Message-ID: <644c3b24-5139-5971-46a3-6764c3da6c76@kaod.org> (raw)
In-Reply-To: <055228dc-a145-cbcf-06e4-7bc902f71f73@kaod.org>

On 01/20/2017 11:17 AM, Cédric Le Goater wrote:
> On 01/20/2017 11:13 AM, Peter Maydell wrote:
>> On 19 January 2017 at 20:35, Cédric Le Goater <clg@kaod.org> wrote:
>>> On 01/19/2017 08:26 PM, Peter Maydell wrote:
>>>> On 9 January 2017 at 16:24, Cédric Le Goater <clg@kaod.org> wrote:
>>>>> The Aspeed SMC controllers have a mode (Command mode) in which
>>>>> accesses to the flash content are no different than doing MMIOs. The
>>>>> controller generates all the necessary commands to load (or store)
>>>>> data in memory.
>>>>>
>>>>> However, accesses are restricted to the segment window assigned the
>>>>> the flash module by the controller. This window is defined by the
>>>>> Segment Address Register.
>>>>>
>>>>> Signed-off-by: Cédric Le Goater <clg@kaod.org>
>>>>> Reviewed-by: Andrew Jeffery <andrew@aj.id.au>
>>>>> ---
>>>>>  hw/ssi/aspeed_smc.c         | 152 ++++++++++++++++++++++++++++++++++++++------
>>>>>  include/hw/ssi/aspeed_smc.h |   2 +-
>>>>>  2 files changed, 132 insertions(+), 22 deletions(-)
>>>>
>>>> This deleted the only call to aspeed_smc_is_usermode() but not
>>>> its definition, which makes clang complain:
>>>> /Users/pm215/src/qemu-for-merges/hw/ssi/aspeed_smc.c:409:20: error:
>>>> unused function 'aspeed_smc_is_usermode' [-Werror,-Wunused-function]
>>>>
>>>> Presumably the function itself should be deleted?
>>>
>>> yes. This is correct. I will send a patch for it.
>>
>> I'll just edit the commit in my target-arm tree, that
>> will be simplest.
> 
> ok. sure. 
> 
> I do push a branch on github before sending for travis to test.
> Should that error have been caught by travis ? Just asking, as
> I might have missed it.

So I did miss it. I will take a closer look at the logs next time.

Thanks,

C.

  reply	other threads:[~2017-01-20 11:22 UTC|newest]

Thread overview: 38+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-01-09 16:24 [Qemu-devel] [PATCH v2 00/11] Aspeed SMC controller fixes and improvements Cédric Le Goater
2017-01-09 16:24 ` [Qemu-devel] [PATCH v2 01/11] aspeed/smc: remove call to reset in realize function Cédric Le Goater
2017-01-11 18:10   ` mar.krzeminski
2017-01-09 16:24 ` [Qemu-devel] [PATCH v2 02/11] aspeed/smc: remove call to aspeed_smc_update_cs() in reset function Cédric Le Goater
2017-01-16 17:23   ` mar.krzeminski
2017-01-17  8:05     ` Cédric Le Goater
2017-01-09 16:24 ` [Qemu-devel] [PATCH v2 03/11] aspeed/smc: rework the prototype of the AspeedSMCFlash helper routines Cédric Le Goater
2017-01-09 16:24 ` [Qemu-devel] [PATCH v2 04/11] aspeed/smc: autostrap CE0/1 configuration Cédric Le Goater
2017-01-09 16:24 ` [Qemu-devel] [PATCH v2 05/11] aspeed/smc: unfold the AspeedSMCController array Cédric Le Goater
2017-01-09 16:24 ` [Qemu-devel] [PATCH v2 06/11] aspeed/smc: adjust the size of the register region Cédric Le Goater
2017-01-09 16:24 ` [Qemu-devel] [PATCH v2 07/11] aspeed/smc: handle SPI flash Command mode Cédric Le Goater
2017-01-19 19:26   ` Peter Maydell
2017-01-19 20:35     ` Cédric Le Goater
2017-01-20 10:13       ` Peter Maydell
2017-01-20 10:17         ` Cédric Le Goater
2017-01-20 11:22           ` Cédric Le Goater [this message]
2017-01-09 16:24 ` [Qemu-devel] [PATCH v2 08/11] aspeed/smc: reset flash after each test Cédric Le Goater
2017-01-16 17:37   ` mar.krzeminski
2017-01-16 18:10     ` Cédric Le Goater
2017-01-16 18:19       ` mar.krzeminski
2017-01-09 16:24 ` [Qemu-devel] [PATCH v2 09/11] aspeed/smc: extend tests for Command mode Cédric Le Goater
2017-01-16 17:51   ` mar.krzeminski
2017-01-17  8:34     ` Cédric Le Goater
2017-01-17 17:34       ` mar.krzeminski
2017-01-18 14:56         ` Cédric Le Goater
2017-01-09 16:24 ` [Qemu-devel] [PATCH v2 10/11] aspeed: use first FMC flash as a boot ROM Cédric Le Goater
2017-01-30 12:55   ` Peter Maydell
2017-01-30 13:38     ` Cédric Le Goater
2017-01-09 16:24 ` [Qemu-devel] [PATCH v2 11/11] aspeed/smc: handle dummy bytes when doing fast reads in command mode Cédric Le Goater
2017-01-11 18:20   ` mar.krzeminski
2017-01-11 18:55     ` Cédric Le Goater
2017-01-14 18:56       ` mar.krzeminski
2017-01-16  8:18         ` Cédric Le Goater
2017-01-16 18:58           ` mar.krzeminski
2017-01-17  8:37             ` Cédric Le Goater
2017-01-17 17:30               ` mar.krzeminski
2017-01-16 17:00 ` [Qemu-devel] [PATCH v2 00/11] Aspeed SMC controller fixes and improvements Peter Maydell
2017-01-16 17:08   ` Cédric Le Goater

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=644c3b24-5139-5971-46a3-6764c3da6c76@kaod.org \
    --to=clg@kaod.org \
    --cc=crosthwaite.peter@gmail.com \
    --cc=marcin.krzeminski@nokia.com \
    --cc=peter.maydell@linaro.org \
    --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.