Skip to contentSkip to conversation

omap_device prints

DISCUSSION Russell King - ARM Linux 3 participants 3 messages Jul 21, 2011

lore
Share & tools
lore
#0 lore raw

I spotted this while booting the OMAP4430 SDP:

omap_device: omap4-keypad.-1: new worst case activate latency 0: 61035

and found that it came from here:

        pr_debug("omap_device: %s: activating\n", od->pdev.name);

                pr_debug("omap_device: %s: pm_lat %d: activate: elapsed time "
                         "%llu nsec\n", od->pdev.name, od->pm_lat_level,
                         act_lat);

                                pr_warning("omap_device: %s.%d: new worst case "
                                           "activate latency %d: %llu\n",
                                           od->pdev.name, od->pdev.id,
                                           od->pm_lat_level, act_lat);
                                pr_warning("omap_device: %s.%d: activate "
                                           "latency %d higher than exptected. "
                                           "(%llu > %d)\n",
                                           od->pdev.name, od->pdev.id,
                                           od->pm_lat_level, act_lat,
                                           odpl->activate_lat);

Is there something wrong with dev_name(&od->pdev.dev) so that we have consistent naming of devices, rather than poking about inside the platform_device accessing the name initializers directly ?

#1 lore raw
Quoted 23 lines · Russell King - ARM Linux

I spotted this while booting the OMAP4430 SDP:

omap_device: omap4-keypad.-1: new worst case activate latency 0: 61035

and found that it came from here:

        pr_debug("omap_device: %s: activating\n", od->pdev.name);

                pr_debug("omap_device: %s: pm_lat %d: activate: elapsed time "
                         "%llu nsec\n", od->pdev.name, od->pm_lat_level,
                         act_lat);

                                pr_warning("omap_device: %s.%d: new worst case "
                                           "activate latency %d: %llu\n",
                                           od->pdev.name, od->pdev.id,
                                           od->pm_lat_level, act_lat);
                                pr_warning("omap_device: %s.%d: activate "
                                           "latency %d higher than exptected. "
                                           "(%llu > %d)\n",
                                           od->pdev.name, od->pdev.id,
                                           od->pm_lat_level, act_lat,
                                           odpl->activate_lat);
Quoted 3 lines

Is there something wrong with dev_name(&od->pdev.dev) so that we have consistent naming of devices, rather than poking about inside the platform_device accessing the name initializers directly ?

or dev_*() macros, instead ?

dev_dbg(&od->pdev.dev, "activating\n");

Signature · 1 line
balbi
#2 lore raw
In reply to Russell King - ARM Linux
Quoted 4 lines · Russell King - ARM Linux

I spotted this while booting the OMAP4430 SDP:

omap_device: omap4-keypad.-1: new worst case activate latency 0: 61035

[...]

Quoted 3 lines

Is there something wrong with dev_name(&od->pdev.dev) so that we have consistent naming of devices, rather than poking about inside the platform_device accessing the name initializers directly ?

I've been meaning to convert most of these from pr_debug() to dev_dbg().

There are a few that have to remain pr_debug() because they are used before the platform_device (and struct device) are initialized, but most of them can be converted.

Patch coming shortly.

Kevin