ide: call udma_filter() before resorting to the UltraDMA mask
PATCH 1/1 ide: call udma_filter() before resorting to the UltraDMA mask
Give the udma_filter() method call taking precedence over using the mode masks.
Signed-off-by Sergei Shtylyov <[email protected]>
---
Posting this change separately as have been asked. Should apply to the current Linus' tree...
drivers/ide/ide-dma.c | 7 +++--- 1 files changed, 4 insertions(+), 3 deletions(-)
drivers/ide/ide-dma.c +4 -3
@@ -664,10 +664,11 @@ static unsigned int ide_get_mode_mask(idif ((id->field_valid &4 ) ==0 )break ; - mask = id->dma_ultra & hwif->ultra_mask; -if (hwif->udma_filter) - mask &= hwif->udma_filter (drive); + mask = hwif->udma_filter (drive); +else + mask = hwif->ultra_mask; + mask &= id->dma_ultra;if ((mask &0x78 ) && (eighty_ninty_three (drive) ==0 )) mask &=0x07 ;
Quoted 1 line · I wrote:
Give the
udma_filter()method call taking precedence over using the mode masks.
I definitely need to be "talking" less (and doing more :-).
Quoted 1 line
Signed-off-by Sergei Shtylyov <[email protected]>
Quoted 3 lines · Sergei Shtylyov
Give the
udma_filter()method call taking precedence over using the mode masks.Signed-off-by Sergei Shtylyov <[email protected]>
applied with s/taking//
Quoted 3 lines
---
Posting this change separately as have been asked. Should apply to the current Linus' tree...
thanks