From patchwork Sat Apr 3 11:49:53 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Luis Correia X-Patchwork-Id: 90527 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.3/8.14.3) with ESMTP id o33BpL18003971 for ; Sat, 3 Apr 2010 11:51:22 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753416Ab0DCLvJ (ORCPT ); Sat, 3 Apr 2010 07:51:09 -0400 Received: from mail-ww0-f46.google.com ([74.125.82.46]:37646 "EHLO mail-ww0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753392Ab0DCLvI convert rfc822-to-8bit (ORCPT ); Sat, 3 Apr 2010 07:51:08 -0400 Received: by wwb17 with SMTP id 17so1758062wwb.19 for ; Sat, 03 Apr 2010 04:51:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :from:date:received:message-id:subject:to:cc:content-type :content-transfer-encoding; bh=QvPCs2c8V/kOTk92XPhmpn4M3Qx7qMtHIfKs7xMON24=; b=XwJrFUhFR44CPNaFS9E9yjLCxJlIrHwpNqUh5oLramLhOgjzU+Chux+YBOQRMgyfmL escGmIieaAJGkXFGQkoq9TDzTvWrr6YjJ5qHria1mtveGH7o4XyWI2eVY94Nnrige6hs rI3Ki9xgprw0XbWCQexzra3w77NHIolVB/1xs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; b=jpObp2BY5GHu6kZci0BOsi7TDbf8es5SvWEKOhVJ7XF4IjbMqzZKy2km2EcEGigvcB 7slUiTZSrXqAWk71wafFQT6SyP++tFZCrXVMzjyHkObPeviziAiDKNHKVajO27LEQ7x6 EO0KUv6ewlS4G+E8bWvwTBXZAhiLAZvlGiOY0= MIME-Version: 1.0 Received: by 10.216.7.21 with HTTP; Sat, 3 Apr 2010 04:49:53 -0700 (PDT) In-Reply-To: References: From: Luis Correia Date: Sat, 3 Apr 2010 12:49:53 +0100 Received: by 10.216.87.83 with SMTP id x61mr2012894wee.7.1270295464943; Sat, 03 Apr 2010 04:51:04 -0700 (PDT) Message-ID: Subject: [PATCH V4] rt2x00: remove MCU requests for SoC platforms To: linux-wireless Cc: Ivo Van Doorn , Gertjan van Wingerde , rt2x00 Users List , "John W. Linville" Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter.kernel.org [140.211.167.41]); Sat, 03 Apr 2010 11:51:22 +0000 (UTC) diff --git a/drivers/net/wireless/rt2x00/rt2800pci.c b/drivers/net/wireless/rt2x00/rt2800pci.c index ce7e88e..1df2d44 100644 --- a/drivers/net/wireless/rt2x00/rt2800pci.c +++ b/drivers/net/wireless/rt2x00/rt2800pci.c @@ -60,6 +60,12 @@ static void rt2800pci_mcu_status(struct rt2x00_dev *rt2x00dev, const u8 token)        unsigned int i;        u32 reg; +       /* +        * SOC devices don't support MCU requests. +        */ +       if (rt2x00_is_soc(rt2x00dev)) +               return; +        for (i = 0; i < 200; i++) {                rt2800_register_read(rt2x00dev, H2M_MAILBOX_CID, ®);