/* Perform the initial setup needed for each device that is chip special. In our case we need to lock the sector count to avoid blowing the brains out of the firmware with large LBA48 requests  */
static void it821x_dev_config(struct ata_device *adev)
/* Perform the initial setup needed for each device that is chip special. In our case we need to lock the sector count to avoid blowing the brains out of the firmware with large LBA48 requests  */
static void it821x_dev_config(struct ata_device *adev)
{
	unsigned char model_num[ATA_ID_PROD_LEN + 1];
	ata_id_c_string(adev->id, model_num, ATA_ID_PROD, sizeof(model_num));
	if (adev->max_sectors > 255)
		adev->max_sectors = 255;
	if (strstr(model_num, "Integrated Technology Express")) {
		ata_dev_printk(adev, KERN_INFO, "%sRAID%d volume",
			adev->id[147]?"Bootable ":"",
			adev->id[129]);
		if (adev->id[129] != 1)
			printk("(%dK stripe)", adev->id[146]);
		printk(".\n");
	}
	adev->horkage &= ~ATA_HORKAGE_DIAGNOSTIC;
	adev->horkage |= ATA_HORKAGE_BROKEN_HPA;
}