From patchwork Thu Feb 13 17:06:26 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?b?UmFmYcWCIE1pxYJlY2tp?= X-Patchwork-Id: 3646341 Return-Path: X-Original-To: patchwork-linux-wireless@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 96BFDBF13A for ; Thu, 13 Feb 2014 17:06:43 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id C3A4B20179 for ; Thu, 13 Feb 2014 17:06:42 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id D642D20154 for ; Thu, 13 Feb 2014 17:06:41 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751638AbaBMRGj (ORCPT ); Thu, 13 Feb 2014 12:06:39 -0500 Received: from mail-ea0-f180.google.com ([209.85.215.180]:45922 "EHLO mail-ea0-f180.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751288AbaBMRGi (ORCPT ); Thu, 13 Feb 2014 12:06:38 -0500 Received: by mail-ea0-f180.google.com with SMTP id o10so5196538eaj.25 for ; Thu, 13 Feb 2014 09:06:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:mime-version:content-type :content-transfer-encoding; bh=tLhjMMPauK2wc+KUQJez8PYXSHIbLucbDXQlGje1/Z4=; b=EBz14Vd5Yi3pXaeNdt7oL7/MGSBLe04lz0siCDEitCNCPSSiyWi+0XXRJVRiBj71CS BC36+MV+nPAeemQAe7kR0jD3j13wPH7FDYyusqJAMlqM6GjwLbW9DKqRGaEKgizmBL+W +Fh14jBBOviyHo3ujv7yV43zf2UJtOUYngLiRvKJBxaKJ87an8PvCRB5Bs+4ZGMfTLeg 7Wllg11fuv75AwcErb97Lm0LHOZcaKkT0Aajn7ugdM6JoTUXs+U59Ey+QHGHP+v7ZhUQ FE3UoFXgFtKmIyi/SsTk3S5SOJIPFk0u4sSnKW4z+9PP2AenVFI+/+R9QD67TBpDuWdQ G+pA== X-Received: by 10.15.43.141 with SMTP id x13mr3056708eev.35.1392311197596; Thu, 13 Feb 2014 09:06:37 -0800 (PST) Received: from linux-x91w.lan (ip-194-187-74-233.konfederacka.maverick.com.pl. [194.187.74.233]) by mx.google.com with ESMTPSA id o45sm9042461eeb.18.2014.02.13.09.06.36 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 13 Feb 2014 09:06:36 -0800 (PST) From: =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= To: linux-wireless@vger.kernel.org, "John W. Linville" Cc: Hauke Mehrtens , =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= Subject: [3.14 FIX][PATCH] bcma: gpio: register all 32 GPIOs Date: Thu, 13 Feb 2014 18:06:26 +0100 Message-Id: <1392311186-7805-1-git-send-email-zajec5@gmail.com> X-Mailer: git-send-email 1.8.4.5 MIME-Version: 1.0 Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Spam-Status: No, score=-7.4 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Broadcom boards have 32 GPIOs (not 16) and these higher ones are actually used on some devices (for buttons, reset of WiFi devices). Signed-off-by: Rafa? Mi?ecki --- Similar patch may be needed for ssb, however I didn't meet any ssb SoC with GPIOs 16-31 connected to anything. This is so trivial I hope it can go as a fix for 3.14. It allows support for some devices that use these higher GPIOs. --- drivers/bcma/driver_gpio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/bcma/driver_gpio.c b/drivers/bcma/driver_gpio.c index 25f9887..2f0ceac 100644 --- a/drivers/bcma/driver_gpio.c +++ b/drivers/bcma/driver_gpio.c @@ -218,7 +218,7 @@ int bcma_gpio_init(struct bcma_drv_cc *cc) #if IS_BUILTIN(CONFIG_BCMA_HOST_SOC) chip->to_irq = bcma_gpio_to_irq; #endif - chip->ngpio = 16; + chip->ngpio = 32; /* There is just one SoC in one device and its GPIO addresses should be * deterministic to address them more easily. The other buses could get * a random base number. */