2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-28 07:04:00 +08:00

staging: most: hdm-dim2: remove macro ENABLE_HDM_TEST

This patch removes the macro ENABLE_HDM_TEST, which was needed while
doing DIM2-HAL simulations. But these are not conducted anymore.

Signed-off-by: Andrey Shvetsov <andrey.shvetsov@k2l.de>
Signed-off-by: Christian Gromm <christian.gromm@microchip.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Andrey Shvetsov 2016-09-15 16:19:04 +02:00 committed by Greg Kroah-Hartman
parent 55f142ca5f
commit 424a679997

View File

@ -55,17 +55,6 @@ static u8 fcnt = 4; /* (1 << fcnt) frames per subbuffer */
module_param(fcnt, byte, 0);
MODULE_PARM_DESC(fcnt, "Num of frames per sub-buffer for sync channels as a power of 2");
/*
* #############################################################################
*
* The define below activates an utility function used by HAL-simu
* for calling DIM interrupt handler.
* It is used only for TEST PURPOSE and shall be commented before release.
*
* #############################################################################
*/
/* #define ENABLE_HDM_TEST */
static DEFINE_SPINLOCK(dim_lock);
static void dim2_tasklet_fn(unsigned long data);
@ -129,10 +118,6 @@ struct dim2_hdm {
(((p)[1] == 0x18) && ((p)[2] == 0x05) && ((p)[3] == 0x0C) && \
((p)[13] == 0x3C) && ((p)[14] == 0x00) && ((p)[15] == 0x0A))
#if defined(ENABLE_HDM_TEST)
static struct dim2_hdm *test_dev;
#endif
bool dim2_sysfs_get_state_cb(void)
{
bool state;
@ -467,27 +452,11 @@ static irqreturn_t dim2_ahb_isr(int irq, void *_dev)
dim_service_irq(get_active_channels(dev, buffer));
spin_unlock_irqrestore(&dim_lock, flags);
#if !defined(ENABLE_HDM_TEST)
dim2_tasklet.data = (unsigned long)dev;
tasklet_schedule(&dim2_tasklet);
#else
dim2_tasklet_fn((unsigned long)dev);
#endif
return IRQ_HANDLED;
}
#if defined(ENABLE_HDM_TEST)
/*
* Utility function used by HAL-simu for calling DIM interrupt handler.
* It is used only for TEST PURPOSE.
*/
void raise_dim_interrupt(void)
{
(void)dim2_ahb_isr(0, test_dev);
}
#endif
/**
* complete_all_mbos - complete MBO's in a list
* @head: list head
@ -757,9 +726,6 @@ static int dim2_probe(struct platform_device *pdev)
dev->atx_idx = -1;
platform_set_drvdata(pdev, dev);
#if defined(ENABLE_HDM_TEST)
test_dev = dev;
#else
res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
dev->io_base = devm_ioremap_resource(&pdev->dev, res);
if (IS_ERR(dev->io_base))
@ -779,7 +745,6 @@ static int dim2_probe(struct platform_device *pdev)
dev->irq_ahb0, ret);
return ret;
}
#endif
init_waitqueue_head(&dev->netinfo_waitq);
dev->deliver_netinfo = 0;
dev->netinfo_task = kthread_run(&deliver_netinfo_thread, (void *)dev,