mirror of
https://github.com/torvalds/linux.git
synced 2024-11-22 04:38:03 +00:00
ata: pata_hpt37x: Rename hpt_dma_blacklisted()
Rename the function hpt_dma_blacklisted() to the more neutral hpt_dma_broken(). Signed-off-by: Damien Le Moal <dlemoal@kernel.org> Reviewed-by: Niklas Cassel <cassel@kernel.org> Reviewed-by: Igor Pylypiv <ipylypiv@google.com>
This commit is contained in:
parent
16000756f3
commit
73eb824914
@ -218,7 +218,7 @@ static u32 hpt37x_find_mode(struct ata_port *ap, int speed)
|
|||||||
return 0xffffffffU; /* silence compiler warning */
|
return 0xffffffffU; /* silence compiler warning */
|
||||||
}
|
}
|
||||||
|
|
||||||
static int hpt_dma_blacklisted(const struct ata_device *dev, char *modestr,
|
static int hpt_dma_broken(const struct ata_device *dev, char *modestr,
|
||||||
const char * const list[])
|
const char * const list[])
|
||||||
{
|
{
|
||||||
unsigned char model_num[ATA_ID_PROD_LEN + 1];
|
unsigned char model_num[ATA_ID_PROD_LEN + 1];
|
||||||
@ -281,9 +281,9 @@ static const char * const bad_ata100_5[] = {
|
|||||||
static unsigned int hpt370_filter(struct ata_device *adev, unsigned int mask)
|
static unsigned int hpt370_filter(struct ata_device *adev, unsigned int mask)
|
||||||
{
|
{
|
||||||
if (adev->class == ATA_DEV_ATA) {
|
if (adev->class == ATA_DEV_ATA) {
|
||||||
if (hpt_dma_blacklisted(adev, "UDMA", bad_ata33))
|
if (hpt_dma_broken(adev, "UDMA", bad_ata33))
|
||||||
mask &= ~ATA_MASK_UDMA;
|
mask &= ~ATA_MASK_UDMA;
|
||||||
if (hpt_dma_blacklisted(adev, "UDMA100", bad_ata100_5))
|
if (hpt_dma_broken(adev, "UDMA100", bad_ata100_5))
|
||||||
mask &= ~(0xE0 << ATA_SHIFT_UDMA);
|
mask &= ~(0xE0 << ATA_SHIFT_UDMA);
|
||||||
}
|
}
|
||||||
return mask;
|
return mask;
|
||||||
@ -300,7 +300,7 @@ static unsigned int hpt370_filter(struct ata_device *adev, unsigned int mask)
|
|||||||
static unsigned int hpt370a_filter(struct ata_device *adev, unsigned int mask)
|
static unsigned int hpt370a_filter(struct ata_device *adev, unsigned int mask)
|
||||||
{
|
{
|
||||||
if (adev->class == ATA_DEV_ATA) {
|
if (adev->class == ATA_DEV_ATA) {
|
||||||
if (hpt_dma_blacklisted(adev, "UDMA100", bad_ata100_5))
|
if (hpt_dma_broken(adev, "UDMA100", bad_ata100_5))
|
||||||
mask &= ~(0xE0 << ATA_SHIFT_UDMA);
|
mask &= ~(0xE0 << ATA_SHIFT_UDMA);
|
||||||
}
|
}
|
||||||
return mask;
|
return mask;
|
||||||
|
Loading…
Reference in New Issue
Block a user