Re: [patch 4/5] Add MMC password protection (lock/unlock) support V2

From: Arnd Bergmann
Date: Wed Dec 28 2005 - 16:22:33 EST


On Wednesday 28 December 2005 18:40, Anderson Lizardo wrote:
>
> Implement MMC password reset and forced erase support. It uses the sysfs
> mechanism to send commands to the MMC subsystem. Usage:
>
> Forced erase:
>
> echo erase > /sys/bus/mmc/devices/mmc0\:0001/lockable
>
> Remove password:
>
> echo remove > /sys/bus/mmc/devices/mmc0\:0001/lockable

The MMC password support seems to be a subset of the operations
possible on modern ATA drives. IMHO, any interface you introduce
should be usable for both types of devices.

The only interface I could find for ATA is through HDIO_DRIVE_CMD.
This is currently used by hdparm, but it does not look like it
fits the MMC problem well.

Has anyone already done an ioctl or sysfs implementation of ATA
password user interfaces, or is perhaps the one proposed here
sufficient for ATA drives as well?

Arnd <><
-
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/