All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/4] staging: brcm80211: misc cleanups
@ 2010-11-14 11:36 Mike Rapoport
  2010-11-14 11:36 ` [PATCH 1/4] staging: brcm80211: remove unused osl_pkt{get,free}_static Mike Rapoport
                   ` (4 more replies)
  0 siblings, 5 replies; 19+ messages in thread
From: Mike Rapoport @ 2010-11-14 11:36 UTC (permalink / raw)
  To: Greg Kroah-Hartman
  Cc: Brett Rudley, Henry Ptasinski, Dowan Kim, linux-wireless, Mike Rapoport

These patches remove some unused declarations in include/linux_osl.h
and unused bindings to SDIO controller devices in brcmfmac driver

Mike Rapoport (4):
  staging: brcm80211: remove unused osl_pkt{get,free}_static
  staging: brcm80211: brcmfmac: remove PCI SDIO controller binding
  staging: brcm80211: brcmfmac: remove PXA SDIO controller binding
  staging: brcm80211: brcmfmac: cleanup bcmsdh_(un)register

 drivers/staging/brcm80211/brcmfmac/bcmsdh_linux.c |  259 +--------------------
 drivers/staging/brcm80211/include/linux_osl.h     |    3 -
 2 files changed, 1 insertions(+), 261 deletions(-)


^ permalink raw reply	[flat|nested] 19+ messages in thread

* [PATCH 1/4] staging: brcm80211: remove unused osl_pkt{get,free}_static
  2010-11-14 11:36 [PATCH 0/4] staging: brcm80211: misc cleanups Mike Rapoport
@ 2010-11-14 11:36 ` Mike Rapoport
  2010-11-14 11:36 ` [PATCH 2/4] staging: brcm80211: brcmfmac: remove PCI SDIO controller binding Mike Rapoport
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 19+ messages in thread
From: Mike Rapoport @ 2010-11-14 11:36 UTC (permalink / raw)
  To: Greg Kroah-Hartman
  Cc: Brett Rudley, Henry Ptasinski, Dowan Kim, linux-wireless, Mike Rapoport

Signed-off-by: Mike Rapoport <mike.rapoport@gmail.com>
---
 drivers/staging/brcm80211/include/linux_osl.h |    3 ---
 1 files changed, 0 insertions(+), 3 deletions(-)

diff --git a/drivers/staging/brcm80211/include/linux_osl.h b/drivers/staging/brcm80211/include/linux_osl.h
index c9c860b..d2d5aa3 100644
--- a/drivers/staging/brcm80211/include/linux_osl.h
+++ b/drivers/staging/brcm80211/include/linux_osl.h
@@ -324,9 +324,6 @@ extern void *osl_pktget(osl_t *osh, uint len);
 extern void osl_pktfree(osl_t *osh, void *skb, bool send);
 
 #ifdef BRCM_FULLMAC
-extern void *osl_pktget_static(osl_t *osh, uint len);
-extern void osl_pktfree_static(osl_t *osh, void *skb, bool send);
-
 static inline void *
 osl_pkt_frmnative(osl_pubinfo_t *osh, struct sk_buff *skb)
 {
-- 
1.6.4.4


^ permalink raw reply related	[flat|nested] 19+ messages in thread

* [PATCH 2/4] staging: brcm80211: brcmfmac: remove PCI SDIO controller binding
  2010-11-14 11:36 [PATCH 0/4] staging: brcm80211: misc cleanups Mike Rapoport
  2010-11-14 11:36 ` [PATCH 1/4] staging: brcm80211: remove unused osl_pkt{get,free}_static Mike Rapoport
@ 2010-11-14 11:36 ` Mike Rapoport
  2010-11-16 20:04   ` Greg KH
  2010-11-14 11:36 ` [PATCH 3/4] staging: brcm80211: brcmfmac: remove PXA " Mike Rapoport
                   ` (2 subsequent siblings)
  4 siblings, 1 reply; 19+ messages in thread
From: Mike Rapoport @ 2010-11-14 11:36 UTC (permalink / raw)
  To: Greg Kroah-Hartman
  Cc: Brett Rudley, Henry Ptasinski, Dowan Kim, linux-wireless, Mike Rapoport

Signed-off-by: Mike Rapoport <mike.rapoport@gmail.com>
---
 drivers/staging/brcm80211/brcmfmac/bcmsdh_linux.c |  229 ---------------------
 1 files changed, 0 insertions(+), 229 deletions(-)

diff --git a/drivers/staging/brcm80211/brcmfmac/bcmsdh_linux.c b/drivers/staging/brcm80211/brcmfmac/bcmsdh_linux.c
index 9028cd0..523034b 100644
--- a/drivers/staging/brcm80211/brcmfmac/bcmsdh_linux.c
+++ b/drivers/staging/brcm80211/brcmfmac/bcmsdh_linux.c
@@ -291,224 +291,6 @@ int bcmsdh_remove(struct device *dev)
 
 	return 0;
 }
-
-#else				/* BCMPLATFORM_BUS */
-
-#if !defined(BCMLXSDMMC)
-/* forward declarations for PCI probe and remove functions. */
-static int __devinit bcmsdh_pci_probe(struct pci_dev *pdev,
-				      const struct pci_device_id *ent);
-static void __devexit bcmsdh_pci_remove(struct pci_dev *pdev);
-
-/**
- * pci id table
- */
-static struct pci_device_id bcmsdh_pci_devid[] __devinitdata = {
-{
-	.vendor = PCI_ANY_ID,
-	.device = PCI_ANY_ID,
-	.subvendor = PCI_ANY_ID,
-	.subdevice = PCI_ANY_ID,
-	.class = 0,
-	.class_mask = 0,
-	.driver_data = 0,
-},
-{0,}
-};
-
-MODULE_DEVICE_TABLE(pci, bcmsdh_pci_devid);
-
-/**
- * SDIO Host Controller pci driver info
- */
-static struct pci_driver bcmsdh_pci_driver = {
-	.node = {},
-	.name = "bcmsdh",
-	.id_table = bcmsdh_pci_devid,
-	.probe = bcmsdh_pci_probe,
-	.remove = bcmsdh_pci_remove,
-	.suspend = NULL,
-	.resume = NULL,
-};
-
-extern uint sd_pci_slot;	/* Force detection to a particular PCI */
-				/* slot only . Allows for having multiple */
-				/* WL devices at once in a PC */
-				/* Only one instance of dhd will be */
-				/* usable at a time */
-				/* Upper word is bus number, */
-				/* lower word is slot number */
-				/* Default value of 0xFFFFffff turns this */
-				/* off */
-module_param(sd_pci_slot, uint, 0);
-
-/**
- * Detect supported SDIO Host Controller and attach if found.
- *
- * Determine if the device described by pdev is a supported SDIO Host
- * Controller.  If so, attach to it and attach to the target device.
- */
-static int __devinit
-bcmsdh_pci_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
-{
-	osl_t *osh = NULL;
-	bcmsdh_hc_t *sdhc = NULL;
-	unsigned long regs;
-	bcmsdh_info_t *sdh = NULL;
-	int rc;
-
-	if (sd_pci_slot != 0xFFFFffff) {
-		if (pdev->bus->number != (sd_pci_slot >> 16) ||
-		    PCI_SLOT(pdev->devfn) != (sd_pci_slot & 0xffff)) {
-			SDLX_MSG(("%s: %s: bus %X, slot %X, vend %X, dev %X\n",
-				  __func__,
-				  bcmsdh_chipmatch(pdev->vendor, pdev->device) ?
-				  "Found compatible SDIOHC" :
-				  "Probing unknown device",
-				  pdev->bus->number, PCI_SLOT(pdev->devfn),
-				  pdev->vendor, pdev->device));
-			return -ENODEV;
-		}
-		SDLX_MSG(("%s: %s: bus %X, slot %X, vendor %X, device %X "
-			"(good PCI location)\n", __func__,
-			bcmsdh_chipmatch(pdev->vendor, pdev->device) ?
-			"Using compatible SDIOHC" : "WARNING, forced use "
-			"of unkown device",
-		pdev->bus->number, PCI_SLOT(pdev->devfn), pdev->vendor,
-		pdev->device));
-	}
-
-	if ((pdev->vendor == VENDOR_TI)
-	    && ((pdev->device == PCIXX21_FLASHMEDIA_ID)
-		|| (pdev->device == PCIXX21_FLASHMEDIA0_ID))) {
-		u32 config_reg;
-
-		SDLX_MSG(("%s: Disabling TI FlashMedia Controller.\n",
-			  __func__));
-		osh = osl_attach(pdev, PCI_BUS, false);
-		if (!osh) {
-			SDLX_MSG(("%s: osl_attach failed\n", __func__));
-			goto err;
-		}
-
-		config_reg = OSL_PCI_READ_CONFIG(osh, 0x4c, 4);
-
-		/*
-		 * Set MMC_SD_DIS bit in FlashMedia Controller.
-		 * Disbling the SD/MMC Controller in the FlashMedia Controller
-		 * allows the Standard SD Host Controller to take over control
-		 * of the SD Slot.
-		 */
-		config_reg |= 0x02;
-		OSL_PCI_WRITE_CONFIG(osh, 0x4c, 4, config_reg);
-		osl_detach(osh);
-	}
-	/* match this pci device with what we support */
-	/* we can't solely rely on this to believe it is
-		our SDIO Host Controller! */
-	if (!bcmsdh_chipmatch(pdev->vendor, pdev->device))
-		return -ENODEV;
-
-	/* this is a pci device we might support */
-	SDLX_MSG(("%s: Found possible SDIO Host Controller: "
-		"bus %d slot %d func %d irq %d\n", __func__,
-		pdev->bus->number, PCI_SLOT(pdev->devfn),
-		PCI_FUNC(pdev->devfn), pdev->irq));
-
-	/* use bcmsdh_query_device() to get the vendor ID of the target device
-	 * so it will eventually appear in the Broadcom string on the console
-	 */
-
-	/* allocate SDIO Host Controller state info */
-	osh = osl_attach(pdev, PCI_BUS, false);
-	if (!osh) {
-		SDLX_MSG(("%s: osl_attach failed\n", __func__));
-		goto err;
-	}
-	sdhc = kzalloc(sizeof(bcmsdh_hc_t), GFP_ATOMIC);
-	if (!sdhc) {
-		SDLX_MSG(("%s: out of memory\n", __func__));
-		goto err;
-	}
-	sdhc->osh = osh;
-
-	sdhc->dev = pdev;
-
-	/* map to address where host can access */
-	pci_set_master(pdev);
-	rc = pci_enable_device(pdev);
-	if (rc) {
-		SDLX_MSG(("%s: Cannot enable PCI device\n", __func__));
-		goto err;
-	}
-	sdh = bcmsdh_attach(osh, (void *)(unsigned long)pci_resource_start(pdev, 0),
-			(void **)&regs, pdev->irq);
-	if (!sdh) {
-		SDLX_MSG(("%s: bcmsdh_attach failed\n", __func__));
-		goto err;
-	}
-
-	sdhc->sdh = sdh;
-
-	/* try to attach to the target device */
-	sdhc->ch = drvinfo.attach(VENDOR_BROADCOM, /* pdev->vendor, */
-				bcmsdh_query_device(sdh) & 0xFFFF, 0, 0, 0, 0,
-				(void *)regs, NULL, sdh);
-	if (!sdhc->ch) {
-		SDLX_MSG(("%s: device attach failed\n", __func__));
-		goto err;
-	}
-
-	/* chain SDIO Host Controller info together */
-	sdhc->next = sdhcinfo;
-	sdhcinfo = sdhc;
-
-	return 0;
-
-	/* error handling */
-err:
-	if (sdhc->sdh)
-		bcmsdh_detach(sdhc->osh, sdhc->sdh);
-	if (sdhc)
-		kfree(sdhc);
-	if (osh)
-		osl_detach(osh);
-	return -ENODEV;
-}
-
-/**
- * Detach from target devices and SDIO Host Controller
- */
-static void __devexit bcmsdh_pci_remove(struct pci_dev *pdev)
-{
-	bcmsdh_hc_t *sdhc, *prev;
-	osl_t *osh;
-
-	/* find the SDIO Host Controller state for this
-		 pdev and take it out from the list */
-	for (sdhc = sdhcinfo, prev = NULL; sdhc; sdhc = sdhc->next) {
-		if (sdhc->dev == pdev) {
-			if (prev)
-				prev->next = sdhc->next;
-			else
-				sdhcinfo = NULL;
-			break;
-		}
-		prev = sdhc;
-	}
-	if (!sdhc)
-		return;
-
-	drvinfo.detach(sdhc->ch);
-
-	bcmsdh_detach(sdhc->osh, sdhc->sdh);
-
-	/* release SDIO Host Controller info */
-	osh = sdhc->osh;
-	kfree(sdhc);
-	osl_detach(osh);
-}
-#endif				/* BCMLXSDMMC */
 #endif				/* BCMPLATFORM_BUS */
 
 extern int sdio_function_init(void);
@@ -530,14 +312,6 @@ int bcmsdh_register(bcmsdh_driver_t *driver)
 	return error;
 #endif				/* defined(BCMPLATFORM_BUS) */
 
-#if !defined(BCMPLATFORM_BUS) && !defined(BCMLXSDMMC)
-	error = pci_register_driver(&bcmsdh_pci_driver);
-	if (!error)
-		return 0;
-
-	SDLX_MSG(("%s: pci_register_driver failed 0x%x\n", __func__, error));
-#endif				/* BCMPLATFORM_BUS */
-
 	return error;
 }
 
@@ -551,9 +325,6 @@ void bcmsdh_unregister(void)
 #if defined(BCMLXSDMMC)
 	sdio_function_cleanup();
 #endif				/* BCMLXSDMMC */
-#if !defined(BCMPLATFORM_BUS) && !defined(BCMLXSDMMC)
-	pci_unregister_driver(&bcmsdh_pci_driver);
-#endif				/* BCMPLATFORM_BUS */
 }
 
 #if defined(OOB_INTR_ONLY)
-- 
1.6.4.4


^ permalink raw reply related	[flat|nested] 19+ messages in thread

* [PATCH 3/4] staging: brcm80211: brcmfmac: remove PXA SDIO controller binding
  2010-11-14 11:36 [PATCH 0/4] staging: brcm80211: misc cleanups Mike Rapoport
  2010-11-14 11:36 ` [PATCH 1/4] staging: brcm80211: remove unused osl_pkt{get,free}_static Mike Rapoport
  2010-11-14 11:36 ` [PATCH 2/4] staging: brcm80211: brcmfmac: remove PCI SDIO controller binding Mike Rapoport
@ 2010-11-14 11:36 ` Mike Rapoport
  2010-11-14 11:36 ` [PATCH 4/4] staging: brcm80211: brcmfmac: cleanup bcmsdh_(un)register Mike Rapoport
  2010-11-19 19:27 ` [PATCH 0/4] staging: brcm80211: misc cleanups Brett Rudley
  4 siblings, 0 replies; 19+ messages in thread
From: Mike Rapoport @ 2010-11-14 11:36 UTC (permalink / raw)
  To: Greg Kroah-Hartman
  Cc: Brett Rudley, Henry Ptasinski, Dowan Kim, linux-wireless, Mike Rapoport

Signed-off-by: Mike Rapoport <mike.rapoport@gmail.com>
---
 drivers/staging/brcm80211/brcmfmac/bcmsdh_linux.c |   17 -----------------
 1 files changed, 0 insertions(+), 17 deletions(-)

diff --git a/drivers/staging/brcm80211/brcmfmac/bcmsdh_linux.c b/drivers/staging/brcm80211/brcmfmac/bcmsdh_linux.c
index 523034b..388cbd3 100644
--- a/drivers/staging/brcm80211/brcmfmac/bcmsdh_linux.c
+++ b/drivers/staging/brcm80211/brcmfmac/bcmsdh_linux.c
@@ -139,17 +139,6 @@ static int __devexit bcmsdh_remove(struct device *dev);
 #endif				/* BCMLXSDMMC */
 
 #ifndef BCMLXSDMMC
-static struct device_driver bcmsdh_driver = {
-	.name = "pxa2xx-mci",
-	.bus = &platform_bus_type,
-	.probe = bcmsdh_probe,
-	.remove = bcmsdh_remove,
-	.suspend = NULL,
-	.resume = NULL,
-};
-#endif				/* BCMLXSDMMC */
-
-#ifndef BCMLXSDMMC
 static
 #endif				/* BCMLXSDMMC */
 int bcmsdh_probe(struct device *dev)
@@ -305,9 +294,6 @@ int bcmsdh_register(bcmsdh_driver_t *driver)
 #if defined(BCMLXSDMMC)
 	SDLX_MSG(("Linux Kernel SDIO/MMC Driver\n"));
 	error = sdio_function_init();
-#else
-	SDLX_MSG(("Intel PXA270 SDIO Driver\n"));
-	error = driver_register(&bcmsdh_driver);
 #endif				/* defined(BCMLXSDMMC) */
 	return error;
 #endif				/* defined(BCMPLATFORM_BUS) */
@@ -319,9 +305,6 @@ extern void sdio_function_cleanup(void);
 
 void bcmsdh_unregister(void)
 {
-#if defined(BCMPLATFORM_BUS) && !defined(BCMLXSDMMC)
-		driver_unregister(&bcmsdh_driver);
-#endif
 #if defined(BCMLXSDMMC)
 	sdio_function_cleanup();
 #endif				/* BCMLXSDMMC */
-- 
1.6.4.4


^ permalink raw reply related	[flat|nested] 19+ messages in thread

* [PATCH 4/4] staging: brcm80211: brcmfmac: cleanup bcmsdh_(un)register
  2010-11-14 11:36 [PATCH 0/4] staging: brcm80211: misc cleanups Mike Rapoport
                   ` (2 preceding siblings ...)
  2010-11-14 11:36 ` [PATCH 3/4] staging: brcm80211: brcmfmac: remove PXA " Mike Rapoport
@ 2010-11-14 11:36 ` Mike Rapoport
  2010-11-16 20:04   ` Greg KH
  2010-11-19 19:27 ` [PATCH 0/4] staging: brcm80211: misc cleanups Brett Rudley
  4 siblings, 1 reply; 19+ messages in thread
From: Mike Rapoport @ 2010-11-14 11:36 UTC (permalink / raw)
  To: Greg Kroah-Hartman
  Cc: Brett Rudley, Henry Ptasinski, Dowan Kim, linux-wireless, Mike Rapoport

Signed-off-by: Mike Rapoport <mike.rapoport@gmail.com>
---
 drivers/staging/brcm80211/brcmfmac/bcmsdh_linux.c |   13 +------------
 1 files changed, 1 insertions(+), 12 deletions(-)

diff --git a/drivers/staging/brcm80211/brcmfmac/bcmsdh_linux.c b/drivers/staging/brcm80211/brcmfmac/bcmsdh_linux.c
index 388cbd3..bd50565 100644
--- a/drivers/staging/brcm80211/brcmfmac/bcmsdh_linux.c
+++ b/drivers/staging/brcm80211/brcmfmac/bcmsdh_linux.c
@@ -286,28 +286,17 @@ extern int sdio_function_init(void);
 
 int bcmsdh_register(bcmsdh_driver_t *driver)
 {
-	int error = 0;
-
 	drvinfo = *driver;
 
-#if defined(BCMPLATFORM_BUS)
-#if defined(BCMLXSDMMC)
 	SDLX_MSG(("Linux Kernel SDIO/MMC Driver\n"));
-	error = sdio_function_init();
-#endif				/* defined(BCMLXSDMMC) */
-	return error;
-#endif				/* defined(BCMPLATFORM_BUS) */
-
-	return error;
+	return sdio_function_init();
 }
 
 extern void sdio_function_cleanup(void);
 
 void bcmsdh_unregister(void)
 {
-#if defined(BCMLXSDMMC)
 	sdio_function_cleanup();
-#endif				/* BCMLXSDMMC */
 }
 
 #if defined(OOB_INTR_ONLY)
-- 
1.6.4.4


^ permalink raw reply related	[flat|nested] 19+ messages in thread

* Re: [PATCH 2/4] staging: brcm80211: brcmfmac: remove PCI SDIO controller binding
  2010-11-14 11:36 ` [PATCH 2/4] staging: brcm80211: brcmfmac: remove PCI SDIO controller binding Mike Rapoport
@ 2010-11-16 20:04   ` Greg KH
  2010-11-17  7:58     ` Mike Rapoport
  0 siblings, 1 reply; 19+ messages in thread
From: Greg KH @ 2010-11-16 20:04 UTC (permalink / raw)
  To: Mike Rapoport
  Cc: Greg Kroah-Hartman, Brett Rudley, Henry Ptasinski, Dowan Kim,
	linux-wireless

On Sun, Nov 14, 2010 at 01:36:22PM +0200, Mike Rapoport wrote:
> Signed-off-by: Mike Rapoport <mike.rapoport@gmail.com>
> ---
>  drivers/staging/brcm80211/brcmfmac/bcmsdh_linux.c |  229 ---------------------

This patch doesn't apply, care to redo it and resend it?

thanks,

greg k-h

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: [PATCH 4/4] staging: brcm80211: brcmfmac: cleanup bcmsdh_(un)register
  2010-11-14 11:36 ` [PATCH 4/4] staging: brcm80211: brcmfmac: cleanup bcmsdh_(un)register Mike Rapoport
@ 2010-11-16 20:04   ` Greg KH
  2010-11-17  8:00     ` Mike Rapoport
  0 siblings, 1 reply; 19+ messages in thread
From: Greg KH @ 2010-11-16 20:04 UTC (permalink / raw)
  To: Mike Rapoport
  Cc: Greg Kroah-Hartman, Brett Rudley, Henry Ptasinski, Dowan Kim,
	linux-wireless

On Sun, Nov 14, 2010 at 01:36:24PM +0200, Mike Rapoport wrote:
> Signed-off-by: Mike Rapoport <mike.rapoport@gmail.com>
> ---
>  drivers/staging/brcm80211/brcmfmac/bcmsdh_linux.c |   13 +------------

This patch doesn't apply, care to resend it?

thanks,

greg k-h

^ permalink raw reply	[flat|nested] 19+ messages in thread

* [PATCH 2/4] staging: brcm80211: brcmfmac: remove PCI SDIO controller binding
  2010-11-16 20:04   ` Greg KH
@ 2010-11-17  7:58     ` Mike Rapoport
  2010-11-17 21:10       ` Greg KH
  0 siblings, 1 reply; 19+ messages in thread
From: Mike Rapoport @ 2010-11-17  7:58 UTC (permalink / raw)
  To: Greg Kroah-Hartman
  Cc: Brett Rudley, Henry Ptasinski, Dowan Kim, linux-wireless, Mike Rapoport

Signed-off-by: Mike Rapoport <mike.rapoport@gmail.com>
---
 drivers/staging/brcm80211/brcmfmac/bcmsdh_linux.c |  229 ---------------------
 1 files changed, 0 insertions(+), 229 deletions(-)

diff --git a/drivers/staging/brcm80211/brcmfmac/bcmsdh_linux.c b/drivers/staging/brcm80211/brcmfmac/bcmsdh_linux.c
index b021d97..fd327e1 100644
--- a/drivers/staging/brcm80211/brcmfmac/bcmsdh_linux.c
+++ b/drivers/staging/brcm80211/brcmfmac/bcmsdh_linux.c
@@ -279,224 +279,6 @@ int bcmsdh_remove(struct device *dev)
 
 	return 0;
 }
-
-#else				/* BCMPLATFORM_BUS */
-
-#if !defined(BCMLXSDMMC)
-/* forward declarations for PCI probe and remove functions. */
-static int __devinit bcmsdh_pci_probe(struct pci_dev *pdev,
-				      const struct pci_device_id *ent);
-static void __devexit bcmsdh_pci_remove(struct pci_dev *pdev);
-
-/**
- * pci id table
- */
-static struct pci_device_id bcmsdh_pci_devid[] __devinitdata = {
-{
-	.vendor = PCI_ANY_ID,
-	.device = PCI_ANY_ID,
-	.subvendor = PCI_ANY_ID,
-	.subdevice = PCI_ANY_ID,
-	.class = 0,
-	.class_mask = 0,
-	.driver_data = 0,
-},
-{0,}
-};
-
-MODULE_DEVICE_TABLE(pci, bcmsdh_pci_devid);
-
-/**
- * SDIO Host Controller pci driver info
- */
-static struct pci_driver bcmsdh_pci_driver = {
-	.node = {},
-	.name = "bcmsdh",
-	.id_table = bcmsdh_pci_devid,
-	.probe = bcmsdh_pci_probe,
-	.remove = bcmsdh_pci_remove,
-	.suspend = NULL,
-	.resume = NULL,
-};
-
-extern uint sd_pci_slot;	/* Force detection to a particular PCI */
-				/* slot only . Allows for having multiple */
-				/* WL devices at once in a PC */
-				/* Only one instance of dhd will be */
-				/* usable at a time */
-				/* Upper word is bus number, */
-				/* lower word is slot number */
-				/* Default value of 0xFFFFffff turns this */
-				/* off */
-module_param(sd_pci_slot, uint, 0);
-
-/**
- * Detect supported SDIO Host Controller and attach if found.
- *
- * Determine if the device described by pdev is a supported SDIO Host
- * Controller.  If so, attach to it and attach to the target device.
- */
-static int __devinit
-bcmsdh_pci_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
-{
-	osl_t *osh = NULL;
-	bcmsdh_hc_t *sdhc = NULL;
-	unsigned long regs;
-	bcmsdh_info_t *sdh = NULL;
-	int rc;
-
-	if (sd_pci_slot != 0xFFFFffff) {
-		if (pdev->bus->number != (sd_pci_slot >> 16) ||
-		    PCI_SLOT(pdev->devfn) != (sd_pci_slot & 0xffff)) {
-			SDLX_MSG(("%s: %s: bus %X, slot %X, vend %X, dev %X\n",
-				  __func__,
-				  bcmsdh_chipmatch(pdev->vendor, pdev->device) ?
-				  "Found compatible SDIOHC" :
-				  "Probing unknown device",
-				  pdev->bus->number, PCI_SLOT(pdev->devfn),
-				  pdev->vendor, pdev->device));
-			return -ENODEV;
-		}
-		SDLX_MSG(("%s: %s: bus %X, slot %X, vendor %X, device %X "
-			"(good PCI location)\n", __func__,
-			bcmsdh_chipmatch(pdev->vendor, pdev->device) ?
-			"Using compatible SDIOHC" : "WARNING, forced use "
-			"of unkown device",
-		pdev->bus->number, PCI_SLOT(pdev->devfn), pdev->vendor,
-		pdev->device));
-	}
-
-	if ((pdev->vendor == VENDOR_TI)
-	    && ((pdev->device == PCIXX21_FLASHMEDIA_ID)
-		|| (pdev->device == PCIXX21_FLASHMEDIA0_ID))) {
-		u32 config_reg;
-
-		SDLX_MSG(("%s: Disabling TI FlashMedia Controller.\n",
-			  __func__));
-		osh = osl_attach(pdev, PCI_BUS);
-		if (!osh) {
-			SDLX_MSG(("%s: osl_attach failed\n", __func__));
-			goto err;
-		}
-
-		config_reg = OSL_PCI_READ_CONFIG(osh, 0x4c, 4);
-
-		/*
-		 * Set MMC_SD_DIS bit in FlashMedia Controller.
-		 * Disbling the SD/MMC Controller in the FlashMedia Controller
-		 * allows the Standard SD Host Controller to take over control
-		 * of the SD Slot.
-		 */
-		config_reg |= 0x02;
-		OSL_PCI_WRITE_CONFIG(osh, 0x4c, 4, config_reg);
-		osl_detach(osh);
-	}
-	/* match this pci device with what we support */
-	/* we can't solely rely on this to believe it is
-		our SDIO Host Controller! */
-	if (!bcmsdh_chipmatch(pdev->vendor, pdev->device))
-		return -ENODEV;
-
-	/* this is a pci device we might support */
-	SDLX_MSG(("%s: Found possible SDIO Host Controller: "
-		"bus %d slot %d func %d irq %d\n", __func__,
-		pdev->bus->number, PCI_SLOT(pdev->devfn),
-		PCI_FUNC(pdev->devfn), pdev->irq));
-
-	/* use bcmsdh_query_device() to get the vendor ID of the target device
-	 * so it will eventually appear in the Broadcom string on the console
-	 */
-
-	/* allocate SDIO Host Controller state info */
-	osh = osl_attach(pdev, PCI_BUS);
-	if (!osh) {
-		SDLX_MSG(("%s: osl_attach failed\n", __func__));
-		goto err;
-	}
-	sdhc = kzalloc(sizeof(bcmsdh_hc_t), GFP_ATOMIC);
-	if (!sdhc) {
-		SDLX_MSG(("%s: out of memory\n", __func__));
-		goto err;
-	}
-	sdhc->osh = osh;
-
-	sdhc->dev = pdev;
-
-	/* map to address where host can access */
-	pci_set_master(pdev);
-	rc = pci_enable_device(pdev);
-	if (rc) {
-		SDLX_MSG(("%s: Cannot enable PCI device\n", __func__));
-		goto err;
-	}
-	sdh = bcmsdh_attach(osh, (void *)(unsigned long)pci_resource_start(pdev, 0),
-			(void **)&regs, pdev->irq);
-	if (!sdh) {
-		SDLX_MSG(("%s: bcmsdh_attach failed\n", __func__));
-		goto err;
-	}
-
-	sdhc->sdh = sdh;
-
-	/* try to attach to the target device */
-	sdhc->ch = drvinfo.attach(VENDOR_BROADCOM, /* pdev->vendor, */
-				bcmsdh_query_device(sdh) & 0xFFFF, 0, 0, 0, 0,
-				(void *)regs, NULL, sdh);
-	if (!sdhc->ch) {
-		SDLX_MSG(("%s: device attach failed\n", __func__));
-		goto err;
-	}
-
-	/* chain SDIO Host Controller info together */
-	sdhc->next = sdhcinfo;
-	sdhcinfo = sdhc;
-
-	return 0;
-
-	/* error handling */
-err:
-	if (sdhc->sdh)
-		bcmsdh_detach(sdhc->osh, sdhc->sdh);
-	if (sdhc)
-		kfree(sdhc);
-	if (osh)
-		osl_detach(osh);
-	return -ENODEV;
-}
-
-/**
- * Detach from target devices and SDIO Host Controller
- */
-static void __devexit bcmsdh_pci_remove(struct pci_dev *pdev)
-{
-	bcmsdh_hc_t *sdhc, *prev;
-	osl_t *osh;
-
-	/* find the SDIO Host Controller state for this
-		 pdev and take it out from the list */
-	for (sdhc = sdhcinfo, prev = NULL; sdhc; sdhc = sdhc->next) {
-		if (sdhc->dev == pdev) {
-			if (prev)
-				prev->next = sdhc->next;
-			else
-				sdhcinfo = NULL;
-			break;
-		}
-		prev = sdhc;
-	}
-	if (!sdhc)
-		return;
-
-	drvinfo.detach(sdhc->ch);
-
-	bcmsdh_detach(sdhc->osh, sdhc->sdh);
-
-	/* release SDIO Host Controller info */
-	osh = sdhc->osh;
-	kfree(sdhc);
-	osl_detach(osh);
-}
-#endif				/* BCMLXSDMMC */
 #endif				/* BCMPLATFORM_BUS */
 
 extern int sdio_function_init(void);
@@ -515,14 +297,6 @@ int bcmsdh_register(bcmsdh_driver_t *driver)
 	return error;
 #endif				/* defined(BCMPLATFORM_BUS) */
 
-#if !defined(BCMPLATFORM_BUS) && !defined(BCMLXSDMMC)
-	error = pci_register_driver(&bcmsdh_pci_driver);
-	if (!error)
-		return 0;
-
-	SDLX_MSG(("%s: pci_register_driver failed 0x%x\n", __func__, error));
-#endif				/* BCMPLATFORM_BUS */
-
 	return error;
 }
 
@@ -533,9 +307,6 @@ void bcmsdh_unregister(void)
 #if defined(BCMLXSDMMC)
 	sdio_function_cleanup();
 #endif				/* BCMLXSDMMC */
-#if !defined(BCMPLATFORM_BUS) && !defined(BCMLXSDMMC)
-	pci_unregister_driver(&bcmsdh_pci_driver);
-#endif				/* BCMPLATFORM_BUS */
 }
 
 #if defined(OOB_INTR_ONLY)
-- 
1.6.4.4


^ permalink raw reply related	[flat|nested] 19+ messages in thread

* [PATCH 4/4] staging: brcm80211: brcmfmac: cleanup bcmsdh_(un)register
  2010-11-16 20:04   ` Greg KH
@ 2010-11-17  8:00     ` Mike Rapoport
  2010-11-17 21:11       ` Greg KH
  0 siblings, 1 reply; 19+ messages in thread
From: Mike Rapoport @ 2010-11-17  8:00 UTC (permalink / raw)
  To: Greg Kroah-Hartman
  Cc: Brett Rudley, Henry Ptasinski, Dowan Kim, linux-wireless, Mike Rapoport

Signed-off-by: Mike Rapoport <mike.rapoport@gmail.com>
---
 drivers/staging/brcm80211/brcmfmac/bcmsdh_linux.c |   13 +------------
 1 files changed, 1 insertions(+), 12 deletions(-)

diff --git a/drivers/staging/brcm80211/brcmfmac/bcmsdh_linux.c b/drivers/staging/brcm80211/brcmfmac/bcmsdh_linux.c
index fd327e1..e3fb7ed 100644
--- a/drivers/staging/brcm80211/brcmfmac/bcmsdh_linux.c
+++ b/drivers/staging/brcm80211/brcmfmac/bcmsdh_linux.c
@@ -285,28 +285,17 @@ extern int sdio_function_init(void);
 
 int bcmsdh_register(bcmsdh_driver_t *driver)
 {
-	int error = 0;
-
 	drvinfo = *driver;
 
-#if defined(BCMPLATFORM_BUS)
-#if defined(BCMLXSDMMC)
 	SDLX_MSG(("Linux Kernel SDIO/MMC Driver\n"));
-	error = sdio_function_init();
-#endif				/* defined(BCMLXSDMMC) */
-	return error;
-#endif				/* defined(BCMPLATFORM_BUS) */
-
-	return error;
+	return sdio_function_init();
 }
 
 extern void sdio_function_cleanup(void);
 
 void bcmsdh_unregister(void)
 {
-#if defined(BCMLXSDMMC)
 	sdio_function_cleanup();
-#endif				/* BCMLXSDMMC */
 }
 
 #if defined(OOB_INTR_ONLY)
-- 
1.6.4.4


^ permalink raw reply related	[flat|nested] 19+ messages in thread

* Re: [PATCH 2/4] staging: brcm80211: brcmfmac: remove PCI SDIO controller binding
  2010-11-17  7:58     ` Mike Rapoport
@ 2010-11-17 21:10       ` Greg KH
  2010-11-17 22:00         ` Mike Rapoport
  0 siblings, 1 reply; 19+ messages in thread
From: Greg KH @ 2010-11-17 21:10 UTC (permalink / raw)
  To: Mike Rapoport
  Cc: Greg Kroah-Hartman, Brett Rudley, Henry Ptasinski, Dowan Kim,
	linux-wireless

On Wed, Nov 17, 2010 at 09:58:46AM +0200, Mike Rapoport wrote:
> Signed-off-by: Mike Rapoport <mike.rapoport@gmail.com>
> ---
>  drivers/staging/brcm80211/brcmfmac/bcmsdh_linux.c |  229 ---------------------
>  1 files changed, 0 insertions(+), 229 deletions(-)

Wait, is this really ok code to be removing from the driver?

Brett and Henry, any objections to this?

Mike, why do you think this is ok to remove?  Is it because no one is
ever calling this even for both types of config for this driver?

thanks,

greg k-h

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: [PATCH 4/4] staging: brcm80211: brcmfmac: cleanup bcmsdh_(un)register
  2010-11-17  8:00     ` Mike Rapoport
@ 2010-11-17 21:11       ` Greg KH
  2010-11-17 22:02         ` Mike Rapoport
  0 siblings, 1 reply; 19+ messages in thread
From: Greg KH @ 2010-11-17 21:11 UTC (permalink / raw)
  To: Mike Rapoport
  Cc: Greg Kroah-Hartman, Brett Rudley, Henry Ptasinski, Dowan Kim,
	linux-wireless

On Wed, Nov 17, 2010 at 10:00:00AM +0200, Mike Rapoport wrote:
> Signed-off-by: Mike Rapoport <mike.rapoport@gmail.com>
> ---
>  drivers/staging/brcm80211/brcmfmac/bcmsdh_linux.c |   13 +------------
>  1 files changed, 1 insertions(+), 12 deletions(-)
> 
> diff --git a/drivers/staging/brcm80211/brcmfmac/bcmsdh_linux.c b/drivers/staging/brcm80211/brcmfmac/bcmsdh_linux.c
> index fd327e1..e3fb7ed 100644
> --- a/drivers/staging/brcm80211/brcmfmac/bcmsdh_linux.c
> +++ b/drivers/staging/brcm80211/brcmfmac/bcmsdh_linux.c
> @@ -285,28 +285,17 @@ extern int sdio_function_init(void);
>  
>  int bcmsdh_register(bcmsdh_driver_t *driver)
>  {
> -	int error = 0;
> -
>  	drvinfo = *driver;
>  
> -#if defined(BCMPLATFORM_BUS)
> -#if defined(BCMLXSDMMC)
>  	SDLX_MSG(("Linux Kernel SDIO/MMC Driver\n"));
> -	error = sdio_function_init();

Same question here, are you sure we can remove this code?

just want to make sure.

thanks,

greg k-h

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: [PATCH 2/4] staging: brcm80211: brcmfmac: remove PCI SDIO controller binding
  2010-11-17 21:10       ` Greg KH
@ 2010-11-17 22:00         ` Mike Rapoport
  2010-11-17 22:11           ` Greg KH
  0 siblings, 1 reply; 19+ messages in thread
From: Mike Rapoport @ 2010-11-17 22:00 UTC (permalink / raw)
  To: Greg KH
  Cc: Greg Kroah-Hartman, Brett Rudley, Henry Ptasinski, Dowan Kim,
	linux-wireless

On Wed, Nov 17, 2010 at 11:10 PM, Greg KH <greg@kroah.com> wrote:
> On Wed, Nov 17, 2010 at 09:58:46AM +0200, Mike Rapoport wrote:
>> Signed-off-by: Mike Rapoport <mike.rapoport@gmail.com>
>> ---
>>  drivers/staging/brcm80211/brcmfmac/bcmsdh_linux.c |  229 ---------------------
>>  1 files changed, 0 insertions(+), 229 deletions(-)
>
> Wait, is this really ok code to be removing from the driver?
>
> Brett and Henry, any objections to this?
>
> Mike, why do you think this is ok to remove?  Is it because no one is
> ever calling this even for both types of config for this driver?

There's a lot of code in the brcmfmac part of the driver that tries to
re-implement SDIO stack. In particular, the code removed by this patch
registers a pci_driver for SDIO controller and then the brcmfmac
driver accesses the WiFi device attached to that SDIO controller by
means of custom re-implementation of SDHC.

> thanks,
>
> greg k-h
>



-- 
    Sincerely Yours,
        Mike.

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: [PATCH 4/4] staging: brcm80211: brcmfmac: cleanup bcmsdh_(un)register
  2010-11-17 21:11       ` Greg KH
@ 2010-11-17 22:02         ` Mike Rapoport
  2010-11-17 22:11           ` Greg KH
  0 siblings, 1 reply; 19+ messages in thread
From: Mike Rapoport @ 2010-11-17 22:02 UTC (permalink / raw)
  To: Greg KH
  Cc: Greg Kroah-Hartman, Brett Rudley, Henry Ptasinski, Dowan Kim,
	linux-wireless

On Wed, Nov 17, 2010 at 11:11 PM, Greg KH <greg@kroah.com> wrote:
> On Wed, Nov 17, 2010 at 10:00:00AM +0200, Mike Rapoport wrote:
>> Signed-off-by: Mike Rapoport <mike.rapoport@gmail.com>
>> ---
>>  drivers/staging/brcm80211/brcmfmac/bcmsdh_linux.c |   13 +------------
>>  1 files changed, 1 insertions(+), 12 deletions(-)
>>
>> diff --git a/drivers/staging/brcm80211/brcmfmac/bcmsdh_linux.c b/drivers/staging/brcm80211/brcmfmac/bcmsdh_linux.c
>> index fd327e1..e3fb7ed 100644
>> --- a/drivers/staging/brcm80211/brcmfmac/bcmsdh_linux.c
>> +++ b/drivers/staging/brcm80211/brcmfmac/bcmsdh_linux.c
>> @@ -285,28 +285,17 @@ extern int sdio_function_init(void);
>>
>>  int bcmsdh_register(bcmsdh_driver_t *driver)
>>  {
>> -     int error = 0;
>> -
>>       drvinfo = *driver;
>>
>> -#if defined(BCMPLATFORM_BUS)
>> -#if defined(BCMLXSDMMC)
>>       SDLX_MSG(("Linux Kernel SDIO/MMC Driver\n"));
>> -     error = sdio_function_init();
>
> Same question here, are you sure we can remove this code?

I'm not removing sdio_function_init here. I've only replaced
        error = sdio_function_init();
        return error;
with
        return sdio_function_init();

> just want to make sure.
>
> thanks,
>
> greg k-h
>



-- 
    Sincerely Yours,
        Mike.

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: [PATCH 2/4] staging: brcm80211: brcmfmac: remove PCI SDIO controller binding
  2010-11-17 22:00         ` Mike Rapoport
@ 2010-11-17 22:11           ` Greg KH
  2010-11-17 22:32             ` Brett Rudley
  2010-11-18  7:39             ` Mike Rapoport
  0 siblings, 2 replies; 19+ messages in thread
From: Greg KH @ 2010-11-17 22:11 UTC (permalink / raw)
  To: Mike Rapoport
  Cc: Greg KH, Brett Rudley, Henry Ptasinski, Dowan Kim, linux-wireless

On Thu, Nov 18, 2010 at 12:00:16AM +0200, Mike Rapoport wrote:
> On Wed, Nov 17, 2010 at 11:10 PM, Greg KH <greg@kroah.com> wrote:
> > On Wed, Nov 17, 2010 at 09:58:46AM +0200, Mike Rapoport wrote:
> >> Signed-off-by: Mike Rapoport <mike.rapoport@gmail.com>
> >> ---
> >>  drivers/staging/brcm80211/brcmfmac/bcmsdh_linux.c |  229 ---------------------
> >>  1 files changed, 0 insertions(+), 229 deletions(-)
> >
> > Wait, is this really ok code to be removing from the driver?
> >
> > Brett and Henry, any objections to this?
> >
> > Mike, why do you think this is ok to remove?  Is it because no one is
> > ever calling this even for both types of config for this driver?
> 
> There's a lot of code in the brcmfmac part of the driver that tries to
> re-implement SDIO stack. In particular, the code removed by this patch
> registers a pci_driver for SDIO controller and then the brcmfmac
> driver accesses the WiFi device attached to that SDIO controller by
> means of custom re-implementation of SDHC.

Ok, so even with this patch, it will still work properly in the SDIO
mode?

Have you been able to test this?

Brett, Henry, I would like to get your ack on this before applying it.

thanks,

greg k-h

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: [PATCH 4/4] staging: brcm80211: brcmfmac: cleanup bcmsdh_(un)register
  2010-11-17 22:02         ` Mike Rapoport
@ 2010-11-17 22:11           ` Greg KH
  0 siblings, 0 replies; 19+ messages in thread
From: Greg KH @ 2010-11-17 22:11 UTC (permalink / raw)
  To: Mike Rapoport
  Cc: Greg KH, Brett Rudley, Henry Ptasinski, Dowan Kim, linux-wireless

On Thu, Nov 18, 2010 at 12:02:15AM +0200, Mike Rapoport wrote:
> On Wed, Nov 17, 2010 at 11:11 PM, Greg KH <greg@kroah.com> wrote:
> > On Wed, Nov 17, 2010 at 10:00:00AM +0200, Mike Rapoport wrote:
> >> Signed-off-by: Mike Rapoport <mike.rapoport@gmail.com>
> >> ---
> >>  drivers/staging/brcm80211/brcmfmac/bcmsdh_linux.c |   13 +------------
> >>  1 files changed, 1 insertions(+), 12 deletions(-)
> >>
> >> diff --git a/drivers/staging/brcm80211/brcmfmac/bcmsdh_linux.c b/drivers/staging/brcm80211/brcmfmac/bcmsdh_linux.c
> >> index fd327e1..e3fb7ed 100644
> >> --- a/drivers/staging/brcm80211/brcmfmac/bcmsdh_linux.c
> >> +++ b/drivers/staging/brcm80211/brcmfmac/bcmsdh_linux.c
> >> @@ -285,28 +285,17 @@ extern int sdio_function_init(void);
> >>
> >>  int bcmsdh_register(bcmsdh_driver_t *driver)
> >>  {
> >> -     int error = 0;
> >> -
> >>       drvinfo = *driver;
> >>
> >> -#if defined(BCMPLATFORM_BUS)
> >> -#if defined(BCMLXSDMMC)
> >>       SDLX_MSG(("Linux Kernel SDIO/MMC Driver\n"));
> >> -     error = sdio_function_init();
> >
> > Same question here, are you sure we can remove this code?
> 
> I'm not removing sdio_function_init here. I've only replaced
>         error = sdio_function_init();
>         return error;
> with
>         return sdio_function_init();

Doh, you are right, sorry about that, I missread the patch.

thanks

greg k-h

^ permalink raw reply	[flat|nested] 19+ messages in thread

* RE: [PATCH 2/4] staging: brcm80211: brcmfmac: remove PCI SDIO controller binding
  2010-11-17 22:11           ` Greg KH
@ 2010-11-17 22:32             ` Brett Rudley
  2010-11-18  7:39               ` Mike Rapoport
  2010-11-18  7:39             ` Mike Rapoport
  1 sibling, 1 reply; 19+ messages in thread
From: Brett Rudley @ 2010-11-17 22:32 UTC (permalink / raw)
  To: Greg KH, Mike Rapoport
  Cc: Greg KH, Henry Ptasinski, Dowan Kim, linux-wireless

I'm not familiar with the fullmac code so I am getting someone from fullmac team to answer...hang on just a little.

In the meantime Mike, does the driver still work with all your patches?

Thanks
Brett

> -----Original Message-----
> From: Greg KH [mailto:gregkh@suse.de]
> Sent: Wednesday, November 17, 2010 2:11 PM
> To: Mike Rapoport
> Cc: Greg KH; Brett Rudley; Henry Ptasinski; Dowan Kim; linux-
> wireless@vger.kernel.org
> Subject: Re: [PATCH 2/4] staging: brcm80211: brcmfmac: remove PCI SDIO
> controller binding
> 
> On Thu, Nov 18, 2010 at 12:00:16AM +0200, Mike Rapoport wrote:
> > On Wed, Nov 17, 2010 at 11:10 PM, Greg KH <greg@kroah.com> wrote:
> > > On Wed, Nov 17, 2010 at 09:58:46AM +0200, Mike Rapoport wrote:
> > >> Signed-off-by: Mike Rapoport <mike.rapoport@gmail.com>
> > >> ---
> > >>  drivers/staging/brcm80211/brcmfmac/bcmsdh_linux.c |  229 ----------
> -----------
> > >>  1 files changed, 0 insertions(+), 229 deletions(-)
> > >
> > > Wait, is this really ok code to be removing from the driver?
> > >
> > > Brett and Henry, any objections to this?
> > >
> > > Mike, why do you think this is ok to remove?  Is it because no one is
> > > ever calling this even for both types of config for this driver?
> >
> > There's a lot of code in the brcmfmac part of the driver that tries to
> > re-implement SDIO stack. In particular, the code removed by this patch
> > registers a pci_driver for SDIO controller and then the brcmfmac
> > driver accesses the WiFi device attached to that SDIO controller by
> > means of custom re-implementation of SDHC.
> 
> Ok, so even with this patch, it will still work properly in the SDIO
> mode?
> 
> Have you been able to test this?
> 
> Brett, Henry, I would like to get your ack on this before applying it.
> 
> thanks,
> 
> greg k-h



^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: [PATCH 2/4] staging: brcm80211: brcmfmac: remove PCI SDIO controller binding
  2010-11-17 22:11           ` Greg KH
  2010-11-17 22:32             ` Brett Rudley
@ 2010-11-18  7:39             ` Mike Rapoport
  1 sibling, 0 replies; 19+ messages in thread
From: Mike Rapoport @ 2010-11-18  7:39 UTC (permalink / raw)
  To: Greg KH; +Cc: Greg KH, Brett Rudley, Henry Ptasinski, Dowan Kim, linux-wireless

On Thu, Nov 18, 2010 at 12:11 AM, Greg KH <gregkh@suse.de> wrote:
> On Thu, Nov 18, 2010 at 12:00:16AM +0200, Mike Rapoport wrote:
>> On Wed, Nov 17, 2010 at 11:10 PM, Greg KH <greg@kroah.com> wrote:
>> > On Wed, Nov 17, 2010 at 09:58:46AM +0200, Mike Rapoport wrote:
>> >> Signed-off-by: Mike Rapoport <mike.rapoport@gmail.com>
>> >> ---
>> >>  drivers/staging/brcm80211/brcmfmac/bcmsdh_linux.c |  229 ---------------------
>> >>  1 files changed, 0 insertions(+), 229 deletions(-)
>> >
>> > Wait, is this really ok code to be removing from the driver?
>> >
>> > Brett and Henry, any objections to this?
>> >
>> > Mike, why do you think this is ok to remove?  Is it because no one is
>> > ever calling this even for both types of config for this driver?
>>
>> There's a lot of code in the brcmfmac part of the driver that tries to
>> re-implement SDIO stack. In particular, the code removed by this patch
>> registers a pci_driver for SDIO controller and then the brcmfmac
>> driver accesses the WiFi device attached to that SDIO controller by
>> means of custom re-implementation of SDHC.
>
> Ok, so even with this patch, it will still work properly in the SDIO
> mode?

The driver binds to the device and it is able to download firmware and
initialize the network interface.

> Have you been able to test this?

I was never able to have the radio working properly with this driver,
both before and after my patches. However, the patches do not affect
the driver initialization and firmware download.

> Brett, Henry, I would like to get your ack on this before applying it.
>
> thanks,
>
> greg k-h
>



-- 
    Sincerely Yours,
        Mike.

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: [PATCH 2/4] staging: brcm80211: brcmfmac: remove PCI SDIO controller binding
  2010-11-17 22:32             ` Brett Rudley
@ 2010-11-18  7:39               ` Mike Rapoport
  0 siblings, 0 replies; 19+ messages in thread
From: Mike Rapoport @ 2010-11-18  7:39 UTC (permalink / raw)
  To: Brett Rudley; +Cc: Greg KH, Greg KH, Henry Ptasinski, Dowan Kim, linux-wireless

On Thu, Nov 18, 2010 at 12:32 AM, Brett Rudley <brudley@broadcom.com> wrote:
> I'm not familiar with the fullmac code so I am getting someone from fullmac team to answer...hang on just a little.
>
> In the meantime Mike, does the driver still work with all your patches?

I was never able to connect to an access point with the hardware I
have and the brcmfmac driver. However, there's no change in the driver
behavior with all my patches.

cm-t35:~# modprobe brcmfmac firmware_path=4329/BCM43x9-FW.bin
nvram_path=4329/nvram.txt
[   93.952331] brcmfmac: module is from the staging directory, the
quality is unknown, you have been warned.
[   94.033081] F1 signature read @0x18000000=0x9934329
[   94.039520] _sb_scan: scan bus 0x18000000 assume 1 cores
[   94.049743] _sb_scan: scan bus 0x18010000 assume 4 cores
[   94.057952] _sb_scan: found 4 cores on bus 0x18010000
[   94.063049] _sb_scan: found 5 cores on bus 0x18000000
[   94.075927] Buscore id/type/rev 6/0x829/1
[   94.082244] No SDIO Drive strength init done for chip 4329 rev 3 pmurev 6
[   94.096252] DHD: dongle ram size is set to 294912(orig 294912)
[   94.653472] dhdsdio_write_vars: Download/Upload/Compare of NVRAM ok.
[   94.752532] Firmware version = wl0: Jun 29 2009 17:26:41 version 4.218.97.0
[   94.993255] eth1: Broadcom Dongle Host Driver
[   94.998474]
[   94.998474] Dongle Host Driver, version 4.218.248.5
[   94.998504] Compiled in  on Nov 18 2010 at 08:52:38


> Thanks
> Brett
>
>> -----Original Message-----
>> From: Greg KH [mailto:gregkh@suse.de]
>> Sent: Wednesday, November 17, 2010 2:11 PM
>> To: Mike Rapoport
>> Cc: Greg KH; Brett Rudley; Henry Ptasinski; Dowan Kim; linux-
>> wireless@vger.kernel.org
>> Subject: Re: [PATCH 2/4] staging: brcm80211: brcmfmac: remove PCI SDIO
>> controller binding
>>
>> On Thu, Nov 18, 2010 at 12:00:16AM +0200, Mike Rapoport wrote:
>> > On Wed, Nov 17, 2010 at 11:10 PM, Greg KH <greg@kroah.com> wrote:
>> > > On Wed, Nov 17, 2010 at 09:58:46AM +0200, Mike Rapoport wrote:
>> > >> Signed-off-by: Mike Rapoport <mike.rapoport@gmail.com>
>> > >> ---
>> > >>  drivers/staging/brcm80211/brcmfmac/bcmsdh_linux.c |  229 ----------
>> -----------
>> > >>  1 files changed, 0 insertions(+), 229 deletions(-)
>> > >
>> > > Wait, is this really ok code to be removing from the driver?
>> > >
>> > > Brett and Henry, any objections to this?
>> > >
>> > > Mike, why do you think this is ok to remove?  Is it because no one is
>> > > ever calling this even for both types of config for this driver?
>> >
>> > There's a lot of code in the brcmfmac part of the driver that tries to
>> > re-implement SDIO stack. In particular, the code removed by this patch
>> > registers a pci_driver for SDIO controller and then the brcmfmac
>> > driver accesses the WiFi device attached to that SDIO controller by
>> > means of custom re-implementation of SDHC.
>>
>> Ok, so even with this patch, it will still work properly in the SDIO
>> mode?
>>
>> Have you been able to test this?
>>
>> Brett, Henry, I would like to get your ack on this before applying it.
>>
>> thanks,
>>
>> greg k-h
>
>
>



-- 
    Sincerely Yours,
        Mike.

^ permalink raw reply	[flat|nested] 19+ messages in thread

* RE: [PATCH 0/4] staging: brcm80211: misc cleanups
  2010-11-14 11:36 [PATCH 0/4] staging: brcm80211: misc cleanups Mike Rapoport
                   ` (3 preceding siblings ...)
  2010-11-14 11:36 ` [PATCH 4/4] staging: brcm80211: brcmfmac: cleanup bcmsdh_(un)register Mike Rapoport
@ 2010-11-19 19:27 ` Brett Rudley
  4 siblings, 0 replies; 19+ messages in thread
From: Brett Rudley @ 2010-11-19 19:27 UTC (permalink / raw)
  To: Mike Rapoport, Greg Kroah-Hartman
  Cc: Henry Ptasinski, Dowan Kim, linux-wireless


There was a little confusion within our fullmac team but they say these are OK.

Thanks greg for asking.

Signed-off-by: Brett Rudley<brudley@broadcom.com>


> -----Original Message-----
> From: linux-wireless-owner@vger.kernel.org [mailto:linux-wireless-
> owner@vger.kernel.org] On Behalf Of Mike Rapoport
> Sent: Sunday, November 14, 2010 3:36 AM
> To: Greg Kroah-Hartman
> Cc: Brett Rudley; Henry Ptasinski; Dowan Kim; linux-
> wireless@vger.kernel.org; Mike Rapoport
> Subject: [PATCH 0/4] staging: brcm80211: misc cleanups
> 
> These patches remove some unused declarations in include/linux_osl.h
> and unused bindings to SDIO controller devices in brcmfmac driver
> 
> Mike Rapoport (4):
>   staging: brcm80211: remove unused osl_pkt{get,free}_static
>   staging: brcm80211: brcmfmac: remove PCI SDIO controller binding
>   staging: brcm80211: brcmfmac: remove PXA SDIO controller binding
>   staging: brcm80211: brcmfmac: cleanup bcmsdh_(un)register
> 
>  drivers/staging/brcm80211/brcmfmac/bcmsdh_linux.c |  259 +--------------
> ------
>  drivers/staging/brcm80211/include/linux_osl.h     |    3 -
>  2 files changed, 1 insertions(+), 261 deletions(-)
> 
> --
> To unsubscribe from this list: send the line "unsubscribe linux-wireless"
> in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html



^ permalink raw reply	[flat|nested] 19+ messages in thread

end of thread, other threads:[~2010-11-19 19:27 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-11-14 11:36 [PATCH 0/4] staging: brcm80211: misc cleanups Mike Rapoport
2010-11-14 11:36 ` [PATCH 1/4] staging: brcm80211: remove unused osl_pkt{get,free}_static Mike Rapoport
2010-11-14 11:36 ` [PATCH 2/4] staging: brcm80211: brcmfmac: remove PCI SDIO controller binding Mike Rapoport
2010-11-16 20:04   ` Greg KH
2010-11-17  7:58     ` Mike Rapoport
2010-11-17 21:10       ` Greg KH
2010-11-17 22:00         ` Mike Rapoport
2010-11-17 22:11           ` Greg KH
2010-11-17 22:32             ` Brett Rudley
2010-11-18  7:39               ` Mike Rapoport
2010-11-18  7:39             ` Mike Rapoport
2010-11-14 11:36 ` [PATCH 3/4] staging: brcm80211: brcmfmac: remove PXA " Mike Rapoport
2010-11-14 11:36 ` [PATCH 4/4] staging: brcm80211: brcmfmac: cleanup bcmsdh_(un)register Mike Rapoport
2010-11-16 20:04   ` Greg KH
2010-11-17  8:00     ` Mike Rapoport
2010-11-17 21:11       ` Greg KH
2010-11-17 22:02         ` Mike Rapoport
2010-11-17 22:11           ` Greg KH
2010-11-19 19:27 ` [PATCH 0/4] staging: brcm80211: misc cleanups Brett Rudley

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.