From patchwork Thu Feb 2 21:33:19 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?UmFmYcWCIE1pxYJlY2tp?= X-Patchwork-Id: 9553261 X-Patchwork-Delegate: kvalo@adurom.com Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id F160F60405 for ; Thu, 2 Feb 2017 21:33:53 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E5E4828499 for ; Thu, 2 Feb 2017 21:33:53 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id DAD71284BC; Thu, 2 Feb 2017 21:33:53 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.5 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7B88C28499 for ; Thu, 2 Feb 2017 21:33:53 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751917AbdBBVdv (ORCPT ); Thu, 2 Feb 2017 16:33:51 -0500 Received: from mail-lf0-f66.google.com ([209.85.215.66]:33343 "EHLO mail-lf0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751500AbdBBVdr (ORCPT ); Thu, 2 Feb 2017 16:33:47 -0500 Received: by mail-lf0-f66.google.com with SMTP id x1so50363lff.0 for ; Thu, 02 Feb 2017 13:33:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=pWz9o4DOnkhdj7vvlEqWRBkChLr+4+3Xw6LIvRsEcjM=; b=IIzFVUgwCg5JznWatZnyxUSF5ZLYRjP1l6Iqo2rB2IZrhw/RkAJQ4FJ3Dr92wlMWca JqlkjFQARbI6O3tO2lgJfuFsgC9TbLVrvmh7DRcaqQavkrI1Gr0LtAEDGqwomRUY6l2b P43ZlwUqf/upGkKZu68LWE+u8GdihDyKNmNt4j5KvwranfviTZzwY+nLT7jwuoqvdlC1 WHP5+b2/VF8rACZ9FTOjNro6RheguqdbpWWAUhKmxJVo/2vH1f4FIZlEvT3xikXPlbtV pY2OGoHf26AOJ3r4vH/4dWxg5swdNQT39lLygLEesMuMY8xr/+OrdGTGTl1hdsQO+xmA XHsA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=pWz9o4DOnkhdj7vvlEqWRBkChLr+4+3Xw6LIvRsEcjM=; b=LVhmSbwRLoAucjVZudMNZu1CgBjXRBbQucWGrzVjM50dGR1Bt3lhmN1JKqfBkng73Z sTqHolGlOegJ5F2mf1idkbv2R2wJjsLrepeYq0ctND1ZiRIlBirvg4RSvwnLR8vSKlbI qh7n2ESKWO2Y2hgDp+0ogngxBstdWjNKbvXAvYO2stUPKeOp7qaRxkCm+7cSgcGxFM0q h7ihsG1V98vg2zb7ZOU0A+i5M2RVkSLYpGzughPjoNl+1382KkTFUrS181nA9tL8LP/e w9n0KmJd+gnqN/fWntiHKRJR9OAVFiAUARgIP3SDdynCL+3qccq4+RWNe8/qEPa8x//P PLpA== X-Gm-Message-State: AIkVDXKLQmlJPijpEX3rm3s1k6rMR+bh/+mpkn5wUWDIeYGcJO4XAc6Qv1AqwxX3LQY5tA== X-Received: by 10.25.169.82 with SMTP id s79mr3166353lfe.76.1486071225317; Thu, 02 Feb 2017 13:33:45 -0800 (PST) Received: from linux-samsung.lan (ip-194-187-74-233.konfederacka.maverick.com.pl. [194.187.74.233]) by smtp.gmail.com with ESMTPSA id 1sm2590003ljv.40.2017.02.02.13.33.44 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 02 Feb 2017 13:33:44 -0800 (PST) From: =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= To: Kalle Valo Cc: Arend van Spriel , Franky Lin , Hante Meuleman , Pieter-Paul Giesberts , Franky Lin , linux-wireless@vger.kernel.org, brcm80211-dev-list.pdl@broadcom.com, =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= Subject: [PATCH V3 7/9] brcmfmac: sdio: store private pointer to struct brcmf_pub Date: Thu, 2 Feb 2017 22:33:19 +0100 Message-Id: <20170202213321.11591-7-zajec5@gmail.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20170202213321.11591-1-zajec5@gmail.com> References: <20170202213321.11591-1-zajec5@gmail.com> MIME-Version: 1.0 Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Rafał Miłecki Having access to this struct is useful for using generic stuff and e.g. improving logging messages. Signed-off-by: Rafał Miłecki --- V2: Add this (new) patch --- drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c index c5744b45ec8f..81a1e24852e0 100644 --- a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c +++ b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c @@ -434,6 +434,7 @@ struct brcmf_sdio_count { struct brcmf_sdio { struct brcmf_sdio_dev *sdiodev; /* sdio device handler */ struct brcmf_chip *ci; /* Chip info struct */ + struct brcmf_pub *pub; /* Bus generic struct */ u32 hostintmask; /* Copy of Host Interrupt Mask */ atomic_t intstatus; /* Intstatus bits (events) pending */ @@ -4155,6 +4156,7 @@ struct brcmf_sdio *brcmf_sdio_probe(struct brcmf_sdio_dev *sdiodev) brcmf_err("brcmf_attach failed\n"); goto fail; } + bus->pub = sdiodev->bus_if->drvr; /* allocate scatter-gather table. sg support * will be disabled upon allocation failure.