dma-debug: do work only after initialized
authorKonsta Holtta <kholtta@nvidia.com>
Thu, 13 Jun 2013 07:40:38 +0000 (10:40 +0300)
committerDan Willemsen <dwillemsen@nvidia.com>
Sat, 14 Sep 2013 20:27:51 +0000 (13:27 -0700)
commitc34a7ae7fc0f1aaa0546b656cc9f58387ab82216
treed8229e8ca39b4743df37ae79599fab0117a5185f
parentdab189791f75f1766c73114f57354a92ae890518
dma-debug: do work only after initialized

DMA actions can happen before the dma-debug api has been initialized,
and because it's not initialized, there is no memory for the entries and
the system disables itself before even having added the debugfs nodes
that could be used for enabling it again. Use another flag for testing
if the debugging utility has been initialized.

Bug 1303110
Bug 1173494

Change-Id: I27c972ede0a1b64caee62c6552f3ea15e21030c3
Signed-off-by: Konsta Holtta <kholtta@nvidia.com>
Reviewed-on: http://git-master/r/245338
Reviewed-by: Hiroshi Doyu <hdoyu@nvidia.com>
Tested-by: Hiroshi Doyu <hdoyu@nvidia.com>
lib/dma-debug.c