[PATCH V14 5/9] dma: qcom_hidma: implement lower level hardware interface
From: Vinod Koul <hidden>
Date: 2016-03-11 16:28:13
Also in:
linux-arm-msm, linux-devicetree, lkml
From: Vinod Koul <hidden>
Date: 2016-03-11 16:28:13
Also in:
linux-arm-msm, linux-devicetree, lkml
On Fri, Mar 11, 2016 at 11:02:36AM -0500, Sinan Kaya wrote:
quoted
These are rest here are not namespace properly...If I understood it right, you want me to prefix them with as HIDMA_xyz. Correct?
Yes..
quoted
quoted
+ /* copy the TRE into its location in the TRE ring */ + spin_lock_irqsave(&lldev->lock, flags); + tre->tre_index = lldev->tre_write_offset / TRE_SIZE; + lldev->pending_tre_list[tre->tre_index] = tre; + memcpy(lldev->tre_ring + lldev->tre_write_offset, &tre->tre_local[0], + TRE_SIZE);
This one
quoted
quoted
+ lldev->tx_status_list[tre->idx].err_code = 0; + lldev->tx_status_list[tre->idx].err_info = 0; + tre->queued = 1; + lldev->pending_tre_count++;Is this the only one without alignment? I couldn't understand what you mean by above one?
quoting Coding Style: Statements longer than 80 columns will be broken into sensible chunks, unless exceeding 80 columns significantly increases readability and does not hide information. Descendants are always substantially shorter than the parent and are placed substantially to the right.
quoted
quoted
+ lldev->tre_write_offset = (lldev->tre_write_offset + TRE_SIZE) + % lldev->tre_ring_size;These and above one should be right justfied per coding style
-- ~Vinod