Commit 2787cb8ae5c68a6945eb82ccf96b5f2c4f238323
1 parent
0a6e49e9bc
Exists in
master
and in
39 other branches
ide: add IDE_HFLAG_DTC2278 host flag
Add IDE_HFLAG_DTC2278 host flag and use it instead of ide_dtc2278 chipset type in ide_init_port(). There should be no functional changes caused by this patch. Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Showing 3 changed files with 5 additions and 2 deletions Side-by-side Diff
drivers/ide/dtc2278.c
drivers/ide/ide-probe.c
... | ... | @@ -1061,7 +1061,7 @@ |
1061 | 1061 | hwif->tp_ops = d->tp_ops; |
1062 | 1062 | |
1063 | 1063 | /* ->set_pio_mode for DTC2278 is currently limited to port 0 */ |
1064 | - if (hwif->chipset != ide_dtc2278 || hwif->channel == 0) | |
1064 | + if ((hwif->host_flags & IDE_HFLAG_DTC2278) == 0 || hwif->channel == 0) | |
1065 | 1065 | hwif->port_ops = d->port_ops; |
1066 | 1066 | |
1067 | 1067 | hwif->swdma_mask = d->swdma_mask; |
include/linux/ide.h
... | ... | @@ -1325,6 +1325,8 @@ |
1325 | 1325 | IDE_HFLAG_ERROR_STOPS_FIFO = (1 << 19), |
1326 | 1326 | /* serialize ports */ |
1327 | 1327 | IDE_HFLAG_SERIALIZE = (1 << 20), |
1328 | + /* host is DTC2278 */ | |
1329 | + IDE_HFLAG_DTC2278 = (1 << 21), | |
1328 | 1330 | /* host is TRM290 */ |
1329 | 1331 | IDE_HFLAG_TRM290 = (1 << 23), |
1330 | 1332 | /* use 32-bit I/O ops */ |