[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20160223070757-mutt-send-email-mst@redhat.com>
Date: Tue, 23 Feb 2016 07:08:07 +0200
From: "Michael S. Tsirkin" <mst@...hat.com>
To: Gabriel Somlo <somlo@....edu>
Cc: gregkh@...uxfoundation.org, robh+dt@...nel.org, pawel.moll@....com,
mark.rutland@....com, ijc+devicetree@...lion.org.uk,
galak@...eaurora.org, arnd@...db.de, lersek@...hat.com,
ralf@...ux-mips.org, rmk+kernel@....linux.org.uk, eric@...olt.net,
hanjun.guo@...aro.org, zajec5@...il.com, sudeep.holla@....com,
agross@...eaurora.org, linux-api@...r.kernel.org,
linux-kernel@...r.kernel.org, devicetree@...r.kernel.org,
qemu-devel@...gnu.org, imammedo@...hat.com,
peter.maydell@...aro.org, leif.lindholm@...aro.org,
ard.biesheuvel@...aro.org, pbonzini@...hat.com, kraxel@...hat.com,
ehabkost@...hat.com, luto@...capital.net, stefanha@...il.com,
revol@...e.fr, matt@...eblueprint.co.uk, rth@...ddle.net
Subject: Re: [PATCH] firmware: fw_cfg register offsets on supported
architectures only
On Mon, Feb 22, 2016 at 04:18:18PM -0500, Gabriel Somlo wrote:
> Refrain from defining default fw_cfg register offsets on
> unsupported architectures -- throw an error instead. If
> QEMU were to add fw_cfg support on additional architectures,
> we should add them to the FW_CFG_SYSFS depends statement in
> drivers/firmware/Kconfig, and provide default values for
> register offsets in drivers/firmware/qemu_fw_cfg.c at that
> time.
>
> Suggested-by: Michael S. Tsirkin <mst@...hat.com>
> Signed-off-by: Gabriel Somlo <somlo@....edu>
Acked-by: Michael S. Tsirkin <mst@...hat.com>
> ---
> drivers/firmware/qemu_fw_cfg.c | 4 +---
> 1 file changed, 1 insertion(+), 3 deletions(-)
>
> diff --git a/drivers/firmware/qemu_fw_cfg.c b/drivers/firmware/qemu_fw_cfg.c
> index fedbff5..79f6b7b 100644
> --- a/drivers/firmware/qemu_fw_cfg.c
> +++ b/drivers/firmware/qemu_fw_cfg.c
> @@ -109,9 +109,7 @@ static void fw_cfg_io_cleanup(void)
> # define FW_CFG_CTRL_OFF 0x00
> # define FW_CFG_DATA_OFF 0x01
> # else
> -# warning "QEMU FW_CFG may not be available on this architecture!"
> -# define FW_CFG_CTRL_OFF 0x00
> -# define FW_CFG_DATA_OFF 0x01
> +# error "QEMU FW_CFG not available on this architecture!"
> # endif
> #endif
>
> --
> 2.4.3
Powered by blists - more mailing lists