Skip to content

Commit

Permalink
pata_bk3710: clear status bits of BMISP on chipset initialization
Browse files Browse the repository at this point in the history
Clear IORDYINT, INTRSTAT and DMAERROR bits of BMISP register
(value '1' needs to be written to the bit to clear it).

Suggested-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Acked-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Acked-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
Signed-off-by: Sekhar Nori <nsekhar@ti.com>
  • Loading branch information
Bartlomiej Zolnierkiewicz authored and Sekhar Nori committed Mar 30, 2017
1 parent c217ff2 commit 396ff64
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/ata/pata_bk3710.c
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ static void pata_bk3710_chipinit(void __iomem *base)
* (ATA_BMISP_INTRSTAT , CLEAR) |
* (ATA_BMISP_DMAERROR , CLEAR)
*/
iowrite16(0, base + BK3710_BMISP);
iowrite16(0xE, base + BK3710_BMISP);

pata_bk3710_setpiomode(base, NULL, 0, 600, 0);
pata_bk3710_setpiomode(base, NULL, 1, 600, 0);
Expand Down

0 comments on commit 396ff64

Please sign in to comment.