Merge "dmaengine: gpi: Log the assigned GPII per SE during probe"
This commit is contained in:
commit
ce04bace0b
@ -1,6 +1,6 @@
|
||||
// SPDX-License-Identifier: GPL-2.0-only
|
||||
/*
|
||||
* Copyright (c) 2017-2020, The Linux Foundation. All rights reserved.
|
||||
* Copyright (c) 2017-2021, The Linux Foundation. All rights reserved.
|
||||
*/
|
||||
|
||||
#include <linux/atomic.h>
|
||||
@ -1228,8 +1228,11 @@ static void gpi_process_ch_ctrl_irq(struct gpii *gpii)
|
||||
* Stop in process is a transition state and we will wait for
|
||||
* stop interrupt before notifying.
|
||||
*/
|
||||
if (gpii_chan->ch_state != CH_STATE_STOP_IN_PROC)
|
||||
if (gpii_chan->ch_state != CH_STATE_STOP_IN_PROC) {
|
||||
GPII_ERR(gpii, GPI_DBG_COMMON,
|
||||
"Chan Not in Proper state:%d\n", gpii_chan->ch_state);
|
||||
complete_all(&gpii->cmd_completion);
|
||||
}
|
||||
|
||||
/* notifying clients if in error state */
|
||||
if (gpii_chan->ch_state == CH_STATE_ERROR)
|
||||
@ -2874,9 +2877,9 @@ static struct dma_chan *gpi_of_dma_xlate(struct of_phandle_args *args,
|
||||
gpii_chan->priority = args->args[4] & GPI_EV_PRIORITY_BMSK;
|
||||
|
||||
GPI_LOG(gpi_dev,
|
||||
"client req. gpii:%u chid:%u #_tre:%u priority:%u protocol:%u\n",
|
||||
"client req gpii:%u chid:%u #_tre:%u prio:%u proto:%u SE:%d\n",
|
||||
gpii, chid, gpii_chan->req_tres, gpii_chan->priority,
|
||||
gpii_chan->protocol);
|
||||
gpii_chan->protocol, gpii_chan->seid);
|
||||
|
||||
return dma_get_slave_channel(&gpii_chan->vc.chan);
|
||||
}
|
||||
@ -2941,7 +2944,6 @@ static int gpi_probe(struct platform_device *pdev)
|
||||
{
|
||||
struct gpi_dev *gpi_dev;
|
||||
int ret, i;
|
||||
const char *mode = NULL;
|
||||
u32 gpi_ee_offset;
|
||||
|
||||
gpi_dev = devm_kzalloc(&pdev->dev, sizeof(*gpi_dev), GFP_KERNEL);
|
||||
@ -3002,9 +3004,6 @@ static int gpi_probe(struct platform_device *pdev)
|
||||
return ret;
|
||||
}
|
||||
|
||||
ret = of_property_read_string(gpi_dev->dev->of_node,
|
||||
"qcom,iommu-dma", &mode);
|
||||
|
||||
ret = dma_set_mask(gpi_dev->dev, DMA_BIT_MASK(64));
|
||||
if (ret) {
|
||||
GPI_ERR(gpi_dev,
|
||||
|
Loading…
Reference in New Issue
Block a user