X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/0707b34831fd7814955857c32db500e94c07b07c..43cf9049e3f18a2e3632a7951a357f420a64d392:/target/linux/brcm63xx/files/drivers/spi/bcm63xx_spi.c diff --git a/target/linux/brcm63xx/files/drivers/spi/bcm63xx_spi.c b/target/linux/brcm63xx/files/drivers/spi/bcm63xx_spi.c index bd75b8c7a..a20de302d 100644 --- a/target/linux/brcm63xx/files/drivers/spi/bcm63xx_spi.c +++ b/target/linux/brcm63xx/files/drivers/spi/bcm63xx_spi.c @@ -237,7 +237,7 @@ static irqreturn_t bcm63xx_spi_interrupt(int irq, void *dev_id) /* Read interupts and clear them immediately */ intr = bcm_spi_readb(bs->regs, SPI_INT_STATUS); - bcm_spi_writeb(SPI_INTR_CLEAR_ALL, bs->regs, SPI_INT_STATUS); + bcm_spi_writeb(SPI_INTR_CLEAR_ALL, bs->regs, SPI_INT_MASK); /* A tansfer completed */ if (intr & SPI_INTR_CMD_DONE) { @@ -347,7 +347,6 @@ static int __init bcm63xx_spi_probe(struct platform_device *pdev) /* Initialize hardware */ clk_enable(bs->clk); - bcm_spi_writew(SPI_CMD_HARD_RESET, bs->regs, SPI_CMD); bcm_spi_writeb(SPI_INTR_CLEAR_ALL, bs->regs, SPI_INT_MASK); dev_info(&pdev->dev, " at 0x%08x (irq %d, FIFOs size %d) v%s\n",