Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=7f013bc9d05825b19433bc0deb1f5f4d2103726e
Commit:     7f013bc9d05825b19433bc0deb1f5f4d2103726e
Parent:     399afa4fc9238fbae42116cf25a54671c0e8f56e
Author:     Chuck Meade <[EMAIL PROTECTED]>
AuthorDate: Tue Mar 27 10:46:10 2007 -0400
Committer:  Kumar Gala <[EMAIL PROTECTED]>
CommitDate: Thu Mar 29 14:33:42 2007 -0500

    [POWERPC] qe: Fix QUICC Engine SDMA setup errors
    
    Correct the alignment of the internal buffer used by the QUICC Engine
    SDMA controller to 4Kbytes.  Correct the shift direction in the logic
    that sets up the SDMR register for the QUICC Engine SDMA controller.
    
    Signed-off-by: Chuck Meade <[EMAIL PROTECTED]>
    Signed-off-by: Kumar Gala <[EMAIL PROTECTED]>
---
 arch/powerpc/sysdev/qe_lib/qe.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/arch/powerpc/sysdev/qe_lib/qe.c b/arch/powerpc/sysdev/qe_lib/qe.c
index e3d71e0..43f6cc9 100644
--- a/arch/powerpc/sysdev/qe_lib/qe.c
+++ b/arch/powerpc/sysdev/qe_lib/qe.c
@@ -251,13 +251,13 @@ static int qe_sdma_init(void)
 
        /* allocate 2 internal temporary buffers (512 bytes size each) for
         * the SDMA */
-       sdma_buf_offset = qe_muram_alloc(512 * 2, 64);
+       sdma_buf_offset = qe_muram_alloc(512 * 2, 4096);
        if (IS_MURAM_ERR(sdma_buf_offset))
                return -ENOMEM;
 
        out_be32(&sdma->sdebcr, sdma_buf_offset & QE_SDEBCR_BA_MASK);
-       out_be32(&sdma->sdmr, (QE_SDMR_GLB_1_MSK | (0x1 >>
-                                       QE_SDMR_CEN_SHIFT)));
+       out_be32(&sdma->sdmr, (QE_SDMR_GLB_1_MSK |
+                                       (0x1 << QE_SDMR_CEN_SHIFT)));
 
        return 0;
 }
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to