macio: move unaligned DMA read code into separate pmac_dma_read() function
commit4827ac1e8f8306b24e61b44ea1f2082ea08099bb
authorMark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Fri, 22 May 2015 18:13:44 +0000 (22 14:13 -0400)
committerJohn Snow <jsnow@redhat.com>
Fri, 22 May 2015 19:58:22 +0000 (22 15:58 -0400)
treeb3ace574d31942e5e911cfc5b42d5f6f075a5484
parent5560b85a31e6f15a8841b66620d9497943094ee4
macio: move unaligned DMA read code into separate pmac_dma_read() function

This considerably helps simplify the complexity of the macio read routines and
by switching macio CDROM accesses to use the new code, fixes the issue with
the CDROM device being detected intermittently by Darwin/OS X.

[Maintainer edit: printf format codes adjusted for 32/64bit. --js]

Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ailande.co.uk>
Acked-by: John Snow <jsnow@redhat.com>
Message-id: 1425939893-14404-2-git-send-email-mark.cave-ayland@ilande.co.uk
Signed-off-by: John Snow <jsnow@redhat.com>
hw/ide/macio.c