sdio model detection

Dan Williams dcbw at redhat.com
Thu Jan 10 10:48:08 EST 2008


On Thu, 2008-01-10 at 11:52 +0100, Marc Pignat wrote:
> Hi Pierre!
> 
> Just testing 2.6.24-rc7-git, with if_sdio... my card (88w8385) isn't detected.

What are the card's device and vendor IDs?  Should be able to get these
from sysfs at least, or by enabling debugging in the mmc_core and sdhci
modules.  The current SDIO driver uses:

#define SDIO_VENDOR_ID_MARVELL			0x02df
#define SDIO_DEVICE_ID_MARVELL_LIBERTAS		0x9103

Might be that your card needs to be added to the device table in
if_sdio.c?

Dan

> I just added the following patch to see what's is going on.
> the output is:
> ...
> func->num=1
> func->card->info[0]=Marvell Semiconductor
> func->card->info[1]=IBIS Wireless SDIO Card
> func->card->info[2]=Version 1.0
> func->card->info[3]=
> func->card->info[4]=
> func->card->info[5]=
> ...
> 
> As we discussed that in september, in the thread "Libertas SDIO issues - some succes"
> from september, the string you're searching for is in the function0 (at least
> for the 88w8385).
> 
> Regards
> 
> Marc
> 
> --- drivers/net/wireless/libertas/if_sdio.c
> +++ drivers/net/wireless/libertas/if_sdio.c
> @@ -864,7 +864,9 @@
>  
>  	lbs_deb_enter(LBS_DEB_SDIO);
>  
> +	printk(KERN_INFO "func->num=%d\n",func->num);
>  	for (i = 0;i < func->card->num_info;i++) {
> +		printk(KERN_INFO "func->card->info[%d]=%s\n",i , func->card->info[i]);
>  		if (sscanf(func->card->info[i],
>  				"802.11 SDIO ID: %x", &model) == 1)
>  			break;
> 
> _______________________________________________
> libertas-dev mailing list
> libertas-dev at lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/libertas-dev




More information about the libertas-dev mailing list