 +#define dev_dbg dev_info
 +#endif
 +
-+#define MAXIM_NUM_RETRIES	1 /* number of read/write retries */
++#define MAXIM_NUM_RETRIES	3 /* number of read/write retries */
 +#define MAX9271_ID		0x9
 +#define MAX9286_ID		0x40
 +#define BROADCAST		0x6f

index 0000000..c0c659f
--- /dev/null
+++ b/drivers/media/i2c/soc_camera/max9286_max9271.c
@@ -0,0 +1,519 @@
+/*
+ * MAXIM max9286-max9271 GMSL driver
+ *

+	int ret;
+
+	ret = reg16_write(client, (u16)reg->reg, (u8)reg->val);
+	if ((u8)reg->reg == 0xFFFD)
+		usleep_range(100, 150); /* wait 100 us */
+	if ((u8)reg->reg == 0xFFFE)
+		usleep_range(100, 150); /* wait 100 us */
+	return ret;
