pch_dma: Use GFP_ATOMIC because called from interrupt context
authorTomoya MORINAGA <tomoya.rohm@gmail.com>
Tue, 12 Feb 2013 02:25:33 +0000 (11:25 +0900)
committerBen Hutchings <ben@decadent.org.uk>
Thu, 30 May 2013 13:35:09 +0000 (14:35 +0100)
commit99f9dba9919c903f04eec1001b5634e3e8bb40cb
treef1e39fd74cf14dbacc6b475d15da566d5dea2911
parent3bda05cf930f4d93cea39f157a069472db1be266
pch_dma: Use GFP_ATOMIC because called from interrupt context

commit 5c1ef59168c485318e40ba485c1eba57d81d0faa upstream.

pdc_desc_get() is called from pd_prep_slave_sg, and the function is
called from interrupt context(e.g. Uart driver "pch_uart.c").
In fact, I saw kernel error message.
So, GFP_ATOMIC must be used not GFP_NOIO.

Signed-off-by: Tomoya MORINAGA <tomoya.rohm@gmail.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
drivers/dma/pch_dma.c