return;
of_property_read_u32(np, "ip_ver", &pdata->ip_ver);
+ of_property_read_u32(np, "debug_mode", &pdata->debug_mode);
#ifdef CONFIG_MFC_USE_BUS_DEVFREQ
of_property_read_u32(np, "num_qos_steps", &pdata->num_qos_steps);
of_property_read_u32(np, "max_qos_steps", &pdata->max_qos_steps);
struct dentry *sfr_dump;
struct dentry *mmcache_dump;
struct dentry *mmcache_disable;
- struct dentry *debug_mode;
};
/**
struct s5p_mfc_platdata {
int ip_ver;
+ int debug_mode;
#ifdef CONFIG_MFC_USE_BUS_DEVFREQ
int num_qos_steps;
int max_qos_steps;
extern unsigned int sfr_dump;
extern unsigned int mmcache_dump;
extern unsigned int mmcache_disable;
-extern unsigned int debug_mode;
#define mfc_debug(level, fmt, args...) \
do { \
unsigned int sfr_dump;
unsigned int mmcache_dump;
unsigned int mmcache_disable;
-/* It will be disable after driver is stabilized */
-unsigned int debug_mode = 1;
static int mfc_info_show(struct seq_file *s, void *unused)
{
0644, debugfs->root, &mmcache_dump);
debugfs->mmcache_disable = debugfs_create_u32("mmcache_disable",
0644, debugfs->root, &mmcache_disable);
- debugfs->debug_mode = debugfs_create_u32("debug_mode",
- 0644, debugfs->root, &debug_mode);
}
static void mfc_dump_info_and_stop_hw_debug(struct s5p_mfc_dev *dev)
{
- if (!debug_mode)
+ if (!dev->pdata->debug_mode)
return;
MFC_TRACE_DEV("** mfc will stop!!!\n");