Thread (6 messages) flat view 6 messages, 2 authors, 2013-02-04

Re: [PATCH] powerpc/512x: add function for CS parameter configuration

From: Timur Tabi <hidden>
Date: 2013-02-02 12:31:12

Anatolij Gustschin wrote:
quoted
quoted
+struct mpc512x_lpc {
+       u32     cs_cfg[8];      /* CS config */
+       u32     cs_ctrl;        /* CS Control Register */
+       u32     cs_status;      /* CS Status Register */
+       u32     burst_ctrl;     /* CS Burst Control Register */
+       u32     deadcycle_ctrl; /* CS Deadcycle Control Register */
+       u32     holdcycle_ctrl; /* CS Holdcycle Control Register */
+       u32     alt;            /* Address Latch Timing Register */
+};
These should be __be32.
Why? To add a new bunch of sparse warnings?
Hmm... I thought that making them __be32 will *avoid* sparse warnings.
quoted
You forgot the iounmap() if lpc == NULL.
No, it is intentional, no need to map/unmap again and again for all
subsequent calls.
Sorry, for some reason I thought that lpc was a parameter that you passed in.

-- 
Timur Tabi
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help