From patchwork Sun Nov 8 13:39:55 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartlomiej Zolnierkiewicz X-Patchwork-Id: 58541 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id nA8DeP7m017880 for ; Sun, 8 Nov 2009 13:40:25 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753355AbZKHNkS (ORCPT ); Sun, 8 Nov 2009 08:40:18 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753331AbZKHNkS (ORCPT ); Sun, 8 Nov 2009 08:40:18 -0500 Received: from mail-ew0-f207.google.com ([209.85.219.207]:62471 "EHLO mail-ew0-f207.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752734AbZKHNkR (ORCPT ); Sun, 8 Nov 2009 08:40:17 -0500 Received: by mail-ew0-f207.google.com with SMTP id 3so2371374ewy.37 for ; Sun, 08 Nov 2009 05:40:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:cc:date:message-id :in-reply-to:references:subject; bh=z0USNGyil7HzGcaC6RCYeE2XYwC3pGDWhCNG6is9mPI=; b=nH3ody/Lm1KRiUqChx2XLgro3PcTXKbnotzG9YnRpHrL4QGv0Nm8QP9kFEzct++vZm GDjeyGFvVQnzEFJaZvtp1T28A1zLLVqIvUQgraLcEVYwWBQ7jBJh46q77RrQsuLxY5Kh cPo6Oeadw4ZskgM09p2bp7f5ksBYZA1A8t/Fc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:date:message-id:in-reply-to:references:subject; b=C9BvyiYAeFzJqSBhv44PPb1XvrQv8FPJsQdBuo+FfMlmj3pTXfa7dGIJOVeniYWl+Y GJTAJACyKfIWVfs5/vjKG/7VcfN0NigtESb0G1ky5yEhwXDvWDSmlV1eJpw6ojQbE2qQ QW0pqVOw5uN7GIYsWjKKkJSGQzq6gX0UiLvA0= Received: by 10.216.93.6 with SMTP id k6mr2190379wef.89.1257687622291; Sun, 08 Nov 2009 05:40:22 -0800 (PST) Received: from localhost.localdomain (chello089079027028.chello.pl [89.79.27.28]) by mx.google.com with ESMTPS id x6sm5397244gvf.16.2009.11.08.05.40.21 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sun, 08 Nov 2009 05:40:21 -0800 (PST) From: Bartlomiej Zolnierkiewicz To: linux-wireless@vger.kernel.org Cc: Gertjan van Wingerde , Bartlomiej Zolnierkiewicz , Ivo van Doorn Date: Sun, 08 Nov 2009 14:39:55 +0100 Message-Id: <20091108133955.23584.79455.sendpatchset@localhost.localdomain> In-Reply-To: <20091108133854.23584.86842.sendpatchset@localhost.localdomain> References: <20091108133854.23584.86842.sendpatchset@localhost.localdomain> Subject: [PATCH 9/9] rt2800usb: add eFuse EEPROM support Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org Index: b/drivers/net/wireless/rt2x00/rt2800usb.c =================================================================== --- a/drivers/net/wireless/rt2x00/rt2800usb.c +++ b/drivers/net/wireless/rt2x00/rt2800usb.c @@ -667,7 +667,11 @@ static void rt2800usb_fill_rxdone(struct */ static int rt2800usb_validate_eeprom(struct rt2x00_dev *rt2x00dev) { - rt2x00usb_eeprom_read(rt2x00dev, rt2x00dev->eeprom, EEPROM_SIZE); + if (rt2800_efuse_detect(rt2x00dev)) + rt2800_read_eeprom_efuse(rt2x00dev); + else + rt2x00usb_eeprom_read(rt2x00dev, rt2x00dev->eeprom, + EEPROM_SIZE); return rt2800_validate_eeprom(rt2x00dev); }