public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
From: Marcin Wojtas <mw@semihalf.com>
To: Leif Lindholm <leif.lindholm@linaro.org>
Cc: edk2-devel-01 <edk2-devel@lists.01.org>,
	Ard Biesheuvel <ard.biesheuvel@linaro.org>,
	 nadavh@marvell.com, Neta Zur Hershkovits <neta@marvell.com>,
	 Kostya Porotchkin <kostap@marvell.com>,
	Hua Jing <jinghua@marvell.com>,
	 semihalf-dabros-jan <jsd@semihalf.com>
Subject: Re: [platforms: PATCH 2/4] Marvell/Drivers: MvSpiDxe: Enable using driver in RT
Date: Thu, 9 Nov 2017 14:46:36 +0100	[thread overview]
Message-ID: <CAPv3WKfXugybT-aa5ZviHOpMugmb_0VOw=M-BUiGB2ssWmzXKw@mail.gmail.com> (raw)
In-Reply-To: <20171109134450.f6lazrh7mr4bht54@bivouac.eciton.net>

Leif

2017-11-09 14:44 GMT+01:00 Leif Lindholm <leif.lindholm@linaro.org>:
> On Sun, Nov 05, 2017 at 11:55:37AM +0100, Marcin Wojtas wrote:
>> This patch applies necessary modifications, which allow to use
>> MvSpiDxe driver in variable support as a runtime service.
>> Its type is modified to DXE_RUNTIME_DRIVER, as well as
>> a new callback is introduced as a part of the SpiMasterProtocol.
>> It is supposed to configure the memory space for mmio access to
>> the host controller registers. Moreover gBS locking usage in
>> MvSpiTransfer is limited to the firmware, as the runtime access
>> to the flash is protected within the OS.
>
> Break the commit message up a bit:
> ---
> This patch applies necessary modifications, which allow to use
> MvSpiDxe driver in variable support as a runtime service.
>
> Its type is modified to DXE_RUNTIME_DRIVER, as well as
> a new callback is introduced as a part of the SpiMasterProtocol.
> ---
>
> And then this needs rewording
> ---
> It is supposed to configure the memory space for mmio access to
> the host controller registers.
> ---
> (Say what it does, not what it should be doing.)
>
> ---
> Moreover gBS locking usage in MvSpiTransfer is limited to the
> firmware, as the runtime access to the flash is protected within the
> OS.
> ---
> And "is limited to the firmware". Just because it is used at runtime
> does not make it not firmware. I would say something like:
> "Apply locking in the driver only during boot services. Once at
> runtime, resource protection is handled by the operating system.".
>
> Also, "Its" -> "The driver's" and "It" -> "The driver".
>
> Other than that, can you move the Depex addition here from 4/4 please?
>
> /

Sure.

Thanks,
Marcin


  reply	other threads:[~2017-11-09 13:42 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-11-05 10:55 [platforms: PATCH 0/4] Armada 7k/8k variable support Marcin Wojtas
2017-11-05 10:55 ` [platforms: PATCH 1/4] Marvell/Drivers: MvSpiFlash: Enable using driver in RT Marcin Wojtas
2017-11-09 13:38   ` Leif Lindholm
2017-11-05 10:55 ` [platforms: PATCH 2/4] Marvell/Drivers: MvSpiDxe: " Marcin Wojtas
2017-11-09 13:44   ` Leif Lindholm
2017-11-09 13:46     ` Marcin Wojtas [this message]
2017-11-05 10:55 ` [platforms: PATCH 3/4] Platform/Marvell: Introduce MvFvbDxe variable support driver Marcin Wojtas
2017-11-09 15:02   ` Leif Lindholm
2017-11-09 15:16     ` Marcin Wojtas
2017-11-09 15:40       ` Leif Lindholm
2017-11-09 15:48         ` Marcin Wojtas
2017-11-09 16:04           ` Leif Lindholm
2017-11-05 10:55 ` [platforms: PATCH 4/4] Marvell/Armada: Enable variables support Marcin Wojtas
2017-11-09 15:04   ` Leif Lindholm

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-list 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='CAPv3WKfXugybT-aa5ZviHOpMugmb_0VOw=M-BUiGB2ssWmzXKw@mail.gmail.com' \
    --to=devel@edk2.groups.io \
    /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