On Fri, Oct 22, 2010 at 3:59 PM, Ionut Nicu <[email protected]> wrote:
> The current code was always returning a non-zero status value
> to userspace applications when this ioctl was called.
>
> The error code was ENODATA, which isn't actually an error,
> it's always returned by dcd_enumerate_object() when it hits the
> end of list.
>
> Reorganized the code so that it works like "dynreg.out -ln" from
> the userspace-dspbridge package expects it to work.
>
> Signed-off-by: Ionut Nicu <[email protected]>

I also found this issue, but I have simpler fix. I think my fix should
be applied first, and then your reorganization.

>From 16759e41adc11ad1f34b757dcf19fe55c84bcfc2 Mon Sep 17 00:00:00 2001
From: Felipe Contreras <[email protected]>
Date: Sun, 19 Sep 2010 14:52:42 +0300
Subject: [PATCH] staging: tidspbridge: fix mgr_enum_node_info

It's always erroring out.

Signed-off-by: Felipe Contreras <[email protected]>
---
 drivers/staging/tidspbridge/rmgr/mgr.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/drivers/staging/tidspbridge/rmgr/mgr.c
b/drivers/staging/tidspbridge/rmgr/mgr.c
index 57a39b9..4ba9517 100644
--- a/drivers/staging/tidspbridge/rmgr/mgr.c
+++ b/drivers/staging/tidspbridge/rmgr/mgr.c
@@ -148,6 +148,11 @@ int mgr_enum_node_info(u32 node_id, struct
dsp_ndbprops *pndb_props,

                }
        }
+
+       /* the last status is not 0, but neither an error */
+       if (status > 0)
+               status = 0;
+
        if (!status) {
                if (node_id > (node_index - 1)) {
                        status = -EINVAL;

-- 
Felipe Contreras
--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to