lkml.org 
[lkml]   [2006]   [Jan]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [patch 4/5] Add MMC password protection (lock/unlock) support V3
Pierre Ossman wrote:
> 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.

In this case, the lockable attribute will show "unlockable", which is the expected
behavior. The lockable attribute will always be present, the card being lockable or not.

Regards,

Anderson Briglia
INdT - Manaus


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2006-01-11 14:34    [W:0.055 / U:1.660 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site