/* RETURNS: Zero on success, AC_ERR_* mask on failure  */
unsigned int ata_do_simple_cmd(struct ata_device *dev, u8 cmd)
/* RETURNS: Zero on success, AC_ERR_* mask on failure  */
unsigned int ata_do_simple_cmd(struct ata_device *dev, u8 cmd)
{
	struct ata_taskfile tf;
	ata_tf_init(dev, &tf);
	tf.command = cmd;
	tf.flags |= ATA_TFLAG_DEVICE;
	tf.protocol = ATA_PROT_NODATA;
	return ata_exec_internal(dev, &tf, NULL, DMA_NONE, NULL, 0, 0);
}