Thread (7 messages) 7 messages, 3 authors, 2015-03-17

[Patch v4 2/2] dmaengine: Add ADM driver

From: Andy Gross <hidden>
Date: 2015-03-17 05:04:19
Also in: linux-arm-msm, linux-devicetree, lkml

On Mon, Mar 16, 2015 at 08:15:26AM -0000, sricharan at codeaurora.org wrote:
Hi,

<snip>
quoted
quoted
quoted
+static int adm_get_blksize(unsigned int burst)
+{
+	int ret;
+
+	switch (burst) {
+	case 16:
+		ret = 0;
+		break;
+	case 32:
+		ret = 1;
+		break;
+	case 64:
+		ret = 2;
+		break;
+	case 128:
+		ret = 3;
+		break;
+	case 192:
+		ret = 4;
+		break;
+	case 256:
+		ret = 5;
+		break;
ffs(burst>>4) ?
that should work nicely.  thanks.
  Will not work for 192, 256 ?
you are right.  I'll have to separate those out into 2 more cases.  Good catch!

-- 
Qualcomm Innovation Center, Inc.
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum,
a Linux Foundation Collaborative Project
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help