summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorMikko Perttunen <mperttunen@nvidia.com>2016-12-09 08:06:19 -0500
committermobile promotions <svcmobile_promotions@nvidia.com>2018-06-23 13:22:52 -0400
commit35ddd45989e46a68a529de51a195b8af04449f05 (patch)
treed1a79cdd22ecee9898f99766d63b2182f20b5290 /include
parent5b957722714e6664209814c4f7bdec370244c97b (diff)
platform: tegra: Import tegra_fiq_debugger from linux-4.4
Moving tegra_fiq_debugger driver to nvidia repo. This is a migration patch from Kernel 4.9. As the original one commit d2c919e9d698 ("platform: tegra: Import from linux-4.4") included many other files and drivers while this one only aims at the tegra_fiq_debugger, so renewing the commit log. And, since the patch (https://git-master.nvidia.com/r/1554655), commit b99e994f9bd6 ("platform: tegra: move tegra_fiq_debugger from mach-tegra"), added its header file, this patch squashes that one too. It also fixes warnings reported by checkpatch script: WARNING: Missing a blank line after declarations #95: FILE: drivers/platform/tegra/tegra_fiq_debugger.c:68: + struct tegra_fiq_debugger *t; + t = container_of(dev_get_platdata(&pdev->dev), typeof(*t), pdata); WARNING: Missing a blank line after declarations #111: FILE: drivers/platform/tegra/tegra_fiq_debugger.c:84: + struct tegra_fiq_debugger *t; + t = container_of(dev_get_platdata(&pdev->dev), typeof(*t), pdata); WARNING: Missing a blank line after declarations #129: FILE: drivers/platform/tegra/tegra_fiq_debugger.c:102: + struct tegra_fiq_debugger *t; + t = container_of(dev_get_platdata(&pdev->dev), typeof(*t), pdata); WARNING: Missing a blank line after declarations #140: FILE: drivers/platform/tegra/tegra_fiq_debugger.c:113: + struct tegra_fiq_debugger *t; + t = container_of(dev_get_platdata(&pdev->dev), typeof(*t), pdata); WARNING: Possible unnecessary 'out of memory' message #166: FILE: drivers/platform/tegra/tegra_fiq_debugger.c:139: + if (!t) { + pr_err("Failed to allocate for fiq debugger\n"); WARNING: Possible unnecessary 'out of memory' message #184: FILE: drivers/platform/tegra/tegra_fiq_debugger.c:157: + if (!res) { + pr_err("Failed to alloc fiq debugger resources\n"); WARNING: Possible unnecessary 'out of memory' message #190: FILE: drivers/platform/tegra/tegra_fiq_debugger.c:163: + if (!pdev) { + pr_err("Failed to alloc fiq debugger platform device\n"); Bug 200416212 Change-Id: Iaea87259bcda9c5a2e1a01b03d905debe52aa016 Signed-off-by: Nicolin Chen <nicolinc@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1750507 GVS: Gerrit_Virtual_Submit Reviewed-by: Varun Wadekar <vwadekar@nvidia.com> Reviewed-by: Sachin Nikam <snikam@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'include')
-rw-r--r--include/linux/tegra_fiq_debugger.h36
1 files changed, 36 insertions, 0 deletions
diff --git a/include/linux/tegra_fiq_debugger.h b/include/linux/tegra_fiq_debugger.h
new file mode 100644
index 000000000..67ca9bdaa
--- /dev/null
+++ b/include/linux/tegra_fiq_debugger.h
@@ -0,0 +1,36 @@
1/*
2 * linux/arch/arm/mach-tegra/include/mach/tegra_fiq_debugger.h
3 *
4 * Copyright (C) 2010 Google, Inc.
5 *
6 * This software is licensed under the terms of the GNU General Public
7 * License version 2, as published by the Free Software Foundation, and
8 * may be copied, distributed, and modified under those terms.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 */
16
17#ifndef __MACH_TEGRA_FIQ_DEBUGGER_H
18#define __MACH_TEGRA_FIQ_DEBUGGER_H
19
20#ifdef CONFIG_TEGRA_FIQ_DEBUGGER
21void tegra_serial_debug_init(unsigned int base, int fiq,
22 struct clk *clk, int signal_irq, int wakeup_irq);
23void tegra_serial_debug_init_irq_mode(unsigned int base, int irq,
24 struct clk *clk, int signal_irq, int wakeup_irq);
25#else
26static inline void tegra_serial_debug_init(unsigned int base, int fiq,
27 struct clk *clk, int signal_irq, int wakeup_irq)
28{
29}
30static inline void tegra_serial_debug_init_irq_mode(unsigned int base, int irq,
31 struct clk *clk, int signal_irq, int wakeup_irq)
32{
33}
34#endif
35
36#endif