dpaux.c (876f7a438e4247a948268ad77b67c494f709cc30) | dpaux.c (8913e1aea4b32a866343b14e565c62cec54f3f78) |
---|---|
1// SPDX-License-Identifier: GPL-2.0-only 2/* 3 * Copyright (C) 2013 NVIDIA Corporation 4 */ 5 6#include <linux/clk.h> 7#include <linux/delay.h> 8#include <linux/interrupt.h> --- 4 unchanged lines hidden (view full) --- 13#include <linux/pinctrl/pinctrl.h> 14#include <linux/pinctrl/pinmux.h> 15#include <linux/platform_device.h> 16#include <linux/pm_runtime.h> 17#include <linux/regulator/consumer.h> 18#include <linux/reset.h> 19#include <linux/workqueue.h> 20 | 1// SPDX-License-Identifier: GPL-2.0-only 2/* 3 * Copyright (C) 2013 NVIDIA Corporation 4 */ 5 6#include <linux/clk.h> 7#include <linux/delay.h> 8#include <linux/interrupt.h> --- 4 unchanged lines hidden (view full) --- 13#include <linux/pinctrl/pinctrl.h> 14#include <linux/pinctrl/pinmux.h> 15#include <linux/platform_device.h> 16#include <linux/pm_runtime.h> 17#include <linux/regulator/consumer.h> 18#include <linux/reset.h> 19#include <linux/workqueue.h> 20 |
21#include <drm/dp/drm_dp_helper.h> | 21#include <drm/drm_dp_helper.h> 22#include <drm/drm_dp_aux_bus.h> |
22#include <drm/drm_panel.h> 23 24#include "dp.h" 25#include "dpaux.h" 26#include "drm.h" 27#include "trace.h" 28 29static DEFINE_MUTEX(dpaux_lock); --- 535 unchanged lines hidden (view full) --- 565 DPAUX_INTR_UNPLUG_EVENT | DPAUX_INTR_PLUG_EVENT; 566 tegra_dpaux_writel(dpaux, value, DPAUX_INTR_EN_AUX); 567 tegra_dpaux_writel(dpaux, value, DPAUX_INTR_AUX); 568 569 mutex_lock(&dpaux_lock); 570 list_add_tail(&dpaux->list, &dpaux_list); 571 mutex_unlock(&dpaux_lock); 572 | 23#include <drm/drm_panel.h> 24 25#include "dp.h" 26#include "dpaux.h" 27#include "drm.h" 28#include "trace.h" 29 30static DEFINE_MUTEX(dpaux_lock); --- 535 unchanged lines hidden (view full) --- 566 DPAUX_INTR_UNPLUG_EVENT | DPAUX_INTR_PLUG_EVENT; 567 tegra_dpaux_writel(dpaux, value, DPAUX_INTR_EN_AUX); 568 tegra_dpaux_writel(dpaux, value, DPAUX_INTR_AUX); 569 570 mutex_lock(&dpaux_lock); 571 list_add_tail(&dpaux->list, &dpaux_list); 572 mutex_unlock(&dpaux_lock); 573 |
574 err = devm_of_dp_aux_populate_ep_devices(&dpaux->aux); 575 if (err < 0) { 576 dev_err(dpaux->dev, "failed to populate AUX bus: %d\n", err); 577 return err; 578 } 579 |
|
573 return 0; 574} 575 576static int tegra_dpaux_remove(struct platform_device *pdev) 577{ 578 struct tegra_dpaux *dpaux = platform_get_drvdata(pdev); 579 580 cancel_work_sync(&dpaux->work); --- 241 unchanged lines hidden --- | 580 return 0; 581} 582 583static int tegra_dpaux_remove(struct platform_device *pdev) 584{ 585 struct tegra_dpaux *dpaux = platform_get_drvdata(pdev); 586 587 cancel_work_sync(&dpaux->work); --- 241 unchanged lines hidden --- |