lkml.org 
[lkml]   [2007]   [Sep]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: bnx2 dirver's firmware images
From
Date
On Thu, 2007-09-20 at 15:49 +0100, Denys Vlasenko wrote:
>
>
> Please test these two patches.
> I updated them according to your comments.
>
>

I've only tested patch #1. It worked after some minor modifications
below.

>
>
>
>
>
> plain text
> document
> attachment
> (linux-2.6.23-
> rc6.bnx2-1.patch)
>
>
> @@ -2767,89 +2769,44 @@ bnx2_set_rx_mode(struct net_device *dev)
> spin_unlock_bh(&bp->phy_lock);
> }
>
> -#define FW_BUF_SIZE 0x8000
> -
> +/* To be moved to generic lib/ */
> static int
> -bnx2_gunzip_init(struct bnx2 *bp)
> +bnx2_gunzip(void *gunzip_buf, unsigned sz, u8 *zbuf, int len, void **outbuf)

outbuf is no longer needed.

> + rc = zlib_inflateInit2(strm, -MAX_WBITS);
> + if (rc == Z_OK) {
> + rc = zlib_inflate(strm, Z_FINISH);
> + if (rc == Z_OK)

rc will always be Z_STREAM_END in this case since we provide a big
enough gunzip_buf for the whole blob.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2007-09-21 03:39    [W:0.255 / U:0.688 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site