[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1329149739.2697.0.camel@bwh-desktop>
Date: Mon, 13 Feb 2012 16:15:39 +0000
From: Ben Hutchings <bhutchings@...arflare.com>
To: Shmulik Ladkani <shmulik.ladkani@...il.com>
CC: <linux-net-drivers@...arflare.com>,
<linux-mtd@...ts.infradead.org>, <netdev@...r.kernel.org>,
Artem Bityutskiy <dedekind1@...il.com>,
David Miller <davem@...emloft.net>
Subject: Re: [PATCH] sfc: mtd: Use MTD_FAIL_ADDR_UNKNOWN instead of
0xffffffff
On Sun, 2012-02-12 at 11:13 +0200, Shmulik Ladkani wrote:
> From: Shmulik Ladkani <shmulik.ladkani@...il.com>
>
> As of bb0eb217, MTD_FAIL_ADDR_UNKNOWN should be used to indicate mtd
> erase failure not specific to any particular block.
>
> Use MTD_FAIL_ADDR_UNKNOWN instead of 0xffffffff when setting
> 'erase->fail_addr' in 'efx_mtd_erase()'.
>
> Signed-off-by: Shmulik Ladkani <shmulik.ladkani@...il.com>
Acked-by: Ben Hutchings <bhutchings@...arflare.com>
> ---
> diff --git a/drivers/net/ethernet/sfc/mtd.c b/drivers/net/ethernet/sfc/mtd.c
> index 6622eca..c44a03e 100644
> --- a/drivers/net/ethernet/sfc/mtd.c
> +++ b/drivers/net/ethernet/sfc/mtd.c
> @@ -193,7 +193,7 @@ static int efx_mtd_erase(struct mtd_info *mtd, struct erase_info *erase)
> erase->state = MTD_ERASE_DONE;
> } else {
> erase->state = MTD_ERASE_FAILED;
> - erase->fail_addr = 0xffffffff;
> + erase->fail_addr = MTD_FAIL_ADDR_UNKNOWN;
> }
> mtd_erase_callback(erase);
> return rc;
--
Ben Hutchings, Staff Engineer, Solarflare
Not speaking for my employer; that's the marketing department's job.
They asked us to note that Solarflare product names are trademarked.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists