re: Revisiting gem(4) resets

matthew green <[email protected]>
Newsgroups gmane.os.netbsd.ports.sparc64
Message-ID <[email protected]>
LGTM.

> @@ -2258,6 +2265,7 @@
>  	uint32_t rx_fifo_wr_ptr;
>  	uint32_t rx_fifo_rd_ptr;
>  	uint32_t state;
> +	int needreset;

move this to inside the else {} block, where it's used?

> @@ -2282,25 +2290,33 @@
>  		    "receiver stuck in overflow, resetting\n");
>  		gem_init(ifp);
>  	} else {
> +		needreset = 1;

ie, add "int " here.


.mrg.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.