lkml.org 
[lkml]   [2016]   [Sep]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[Patch 34/35] media: ti-vpe: csc: Add debug support for multi-instance
    Date
    Since there might be more then one instance it is better to
    show the base address when dumping registers to help
    with debugging.

    Signed-off-by: Benoit Parrot <bparrot@ti.com>
    ---
    drivers/media/platform/ti-vpe/csc.c | 2 ++
    1 file changed, 2 insertions(+)

    diff --git a/drivers/media/platform/ti-vpe/csc.c b/drivers/media/platform/ti-vpe/csc.c
    index 9fc6f70adeeb..44b8465cf101 100644
    --- a/drivers/media/platform/ti-vpe/csc.c
    +++ b/drivers/media/platform/ti-vpe/csc.c
    @@ -97,6 +97,8 @@ void csc_dump_regs(struct csc_data *csc)
    #define DUMPREG(r) dev_dbg(dev, "%-35s %08x\n", #r, \
    ioread32(csc->base + CSC_##r))

    + dev_dbg(dev, "CSC Registers @ %pa:\n", &csc->res->start);
    +
    DUMPREG(CSC00);
    DUMPREG(CSC01);
    DUMPREG(CSC02);
    --
    2.9.0
    \
     
     \ /
      Last update: 2016-09-28 23:25    [W:5.151 / U:0.680 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site