Thread (12 messages) 12 messages, 4 authors, 2020-09-09

Re: [PATCH v7 3/3] phy: intel: Add Keem Bay eMMC PHY support

From: Vinod Koul <vkoul@kernel.org>
Date: 2020-08-31 09:19:43
Also in: lkml

On 21-08-20, 19:37, Wan Ahmad Zainie wrote:
+/* From ACS_eMMC51_16nFFC_RO1100_Userguide_v1p0.pdf p17 */
+#define FREQSEL_200M_170M	0x0
+#define FREQSEL_170M_140M	0x1
+#define FREQSEL_140M_110M	0x2
+#define FREQSEL_110M_80M	0x3
+#define FREQSEL_80M_50M		0x4
+
+#define maskval(mask, val)	(((val) << (ffs(mask) - 1)) & mask)
Kernel has a macro do this for you, please use FIELD_PREP instead of

your own macro
-- 
~Vinod
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help