mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-10 05:35:20 -05:00
i.MX31: need an additional ISR lockout instance when closing driver.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31539 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
68ccefed5a
commit
c9dad05554
1 changed files with 3 additions and 1 deletions
|
|
@ -45,7 +45,8 @@ static uint32_t pmic_int_sense_enb[2]; /* Enabled sense reading */
|
||||||
static uint32_t int_pnd_buf[2]; /* Pending ints */
|
static uint32_t int_pnd_buf[2]; /* Pending ints */
|
||||||
static uint32_t int_data_buf[4]; /* ISR data buffer */
|
static uint32_t int_data_buf[4]; /* ISR data buffer */
|
||||||
static struct spi_transfer_desc int_xfers[2]; /* ISR transfer descriptor */
|
static struct spi_transfer_desc int_xfers[2]; /* ISR transfer descriptor */
|
||||||
static bool restore_event = true;
|
static bool restore_event = true; /* Protect SPI callback from unmasking GPIO
|
||||||
|
interrupt (lockout) */
|
||||||
|
|
||||||
static inline bool mc13783_transfer(struct spi_transfer_desc *xfer,
|
static inline bool mc13783_transfer(struct spi_transfer_desc *xfer,
|
||||||
uint32_t *txbuf,
|
uint32_t *txbuf,
|
||||||
|
|
@ -171,6 +172,7 @@ void INIT_ATTR mc13783_init(void)
|
||||||
|
|
||||||
void mc13783_close(void)
|
void mc13783_close(void)
|
||||||
{
|
{
|
||||||
|
restore_event = false;
|
||||||
gpio_disable_event(MC13783_EVENT_ID);
|
gpio_disable_event(MC13783_EVENT_ID);
|
||||||
spi_enable_node(&mc13783_spi, false);
|
spi_enable_node(&mc13783_spi, false);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue