All of lore.kernel.org
 help / color / mirror / Atom feed
From: Takashi Iwai <tiwai@suse.de>
To: linux@audioscience.com
Cc: Eliot Blennerhassett <eblennerhassett@audioscience.com>,
	alsa-devel@alsa-project.org
Subject: Re: [PATCH] Make firmware vs driver major version mismatch an error.
Date: Tue, 02 Feb 2010 22:42:06 +0100	[thread overview]
Message-ID: <s5hbpg7b9ht.wl%tiwai@suse.de> (raw)
In-Reply-To: <1265144857-13808-1-git-send-email-linux@audioscience.com>

At Wed, 03 Feb 2010 10:07:37 +1300,
linux@audioscience.com wrote:
> 
> From: Eliot Blennerhassett <eblennerhassett@audioscience.com>
> 
> I.e. incompatible firmware will fail driver load.
> 
> Signed-off-by: Eliot Blennerhassett <eblennerhassett@audioscience.com>

Applied now.  Thanks.


Takashi

> ---
>  pci/asihpi/hpidspcd.c |    7 +++++++
>  1 files changed, 7 insertions(+), 0 deletions(-)
> 
> diff --git a/pci/asihpi/hpidspcd.c b/pci/asihpi/hpidspcd.c
> index 8c0f251..f58d5a0 100644
> --- a/pci/asihpi/hpidspcd.c
> +++ b/pci/asihpi/hpidspcd.c
> @@ -103,6 +103,13 @@ short HpiDspCode_Open(
>  		goto error2;
>  	}
>  
> +	if (header.version / 10000 != HPI_VER_DECIMAL / 10000) {
> +		HPI_DEBUG_LOG(ERROR,
> +			"Firmware Major Version mismatch  DSP image %d != Driver %d\n",
> +			header.version, HPI_VER_DECIMAL);
> +		goto error2;
> +	}
> +
>  	if (header.version != HPI_VER_DECIMAL) {
>  		HPI_DEBUG_LOG(WARNING,
>  			"Version mismatch  DSP image %d != Driver %d\n",
> -- 
> 1.7.0.rc0.8.ge3f67d
> 

      reply	other threads:[~2010-02-02 21:42 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-02-02 21:07 [PATCH] Make firmware vs driver major version mismatch an error linux
2010-02-02 21:42 ` Takashi Iwai [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=s5hbpg7b9ht.wl%tiwai@suse.de \
    --to=tiwai@suse.de \
    --cc=alsa-devel@alsa-project.org \
    --cc=eblennerhassett@audioscience.com \
    --cc=linux@audioscience.com \
    /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.