Re: [patch 4/5] Add MMC password protection (lock/unlock) support V3
- From: Pierre Ossman <drzeus-list@xxxxxxxxx>
- Date: Tue, 10 Jan 2006 07:46:40 +0100
Anderson Briglia wrote:
>@@ -238,6 +295,11 @@ int mmc_register_card(struct mmc_card *c
> if (ret)
> device_del(&card->dev);
> }
>+#ifdef CONFIG_MMC_PASSWORDS
>+ ret = device_create_file(&card->dev, &mmc_dev_attr_lockable);
>+ if (ret)
>+ device_del(&card->dev);
>+#endif
> }
> return ret;
> }
>
>
It might be wise to also check the command classes here. I don't believe
SDIO supports locking.
Rgds
Pierre
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
- Follow-Ups:
- Re: [patch 4/5] Add MMC password protection (lock/unlock) support V3
- From: Anderson Briglia
- Re: [patch 4/5] Add MMC password protection (lock/unlock) support V3
- References:
- [patch 4/5] Add MMC password protection (lock/unlock) support V3
- From: Anderson Briglia
- [patch 4/5] Add MMC password protection (lock/unlock) support V3
- Prev by Date: Re: [PATCH 12/24] pcspkr: register with driver core as a platfrom device
- Next by Date: Re: [2.6.15] running tcpdump on 3c905b causes freeze (reproducable)
- Previous by thread: [patch 4/5] Add MMC password protection (lock/unlock) support V3
- Next by thread: Re: [patch 4/5] Add MMC password protection (lock/unlock) support V3
- Index(es):
Relevant Pages
|
|