> +#include <linux/auxiliary_bus.h>Ok, Will remove in next version of patch
> +#include <linux/bio.h>
> +#include <linux/device.h>
> +#include <linux/iopoll.h>
> +#include <linux/kthread.h>
Is this needed? I don't see any threads. Also bio.h. Please double
check
your includes.
> + if (priv != NULL)Ok, I think this can be removed
> + rb = priv->reg_base;
> + else
> + return -ENODEV;
Unneeded check, priv cannot be NULL, right?
> +We have implemented short read which returns count of successful bytes
> + data = readl(rb +
> MMAP_OTP_OFFSET(OTP_PASS_FAIL_OFFSET));
> + if (ret < 0 || data & OTP_FAIL_BIT)
> + break;
No error handling?
read and therefore userspace will recognise the situation when the
requested count is not obtained.