Messages in this thread | | | Subject | Re: bnx2 dirver's firmware images | From | "Michael Chan" <> | Date | Thu, 20 Sep 2007 19:12:33 -0700 |
| |
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/
| |