On 21/11/2014 17:54, Hector Palacios wrote:
> The write operation may fail when trying to write to a locked area. In
> this case the ERROR bit is set in the CTRL register. Check for that
> condition and return an error.
>
> Signed-off-by: Hector Palacios
> ---
> drivers/misc/mxs_ocotp.c | 7
On Sat, Nov 22, 2014 at 5:29 PM, Fabio Estevam wrote:
> On Fri, Nov 21, 2014 at 4:04 PM, Hector Palacios
> wrote:
>
>>> What about doing this instead?
>>>
>>>/* Check for errors */
>>>ret = readl(&ocotp_regs->hw_ocotp_ctrl) & OCOTP_CTRL_ERROR);
>>>if (ret) {
>>>
On Fri, Nov 21, 2014 at 2:54 PM, Hector Palacios
wrote:
> The write operation may fail when trying to write to a locked area. In
> this case the ERROR bit is set in the CTRL register. Check for that
> condition and return an error.
>
> Signed-off-by: Hector Palacios
Reviewed-by: Fabio Estevam
_
On Fri, Nov 21, 2014 at 4:04 PM, Hector Palacios
wrote:
>> What about doing this instead?
>>
>>/* Check for errors */
>>ret = readl(&ocotp_regs->hw_ocotp_ctrl) & OCOTP_CTRL_ERROR);
>>if (ret) {
>>printfs("Failed writing the fuses: %d\n", ret);
>>
Hi Fabio,
On 11/21/2014 06:10 PM, Fabio Estevam wrote:
> Hi Hector,
>
> On Fri, Nov 21, 2014 at 2:54 PM, Hector Palacios
> wrote:
>> The write operation may fail when trying to write to a locked area. In
>> this case the ERROR bit is set in the CTRL register. Check for that
>> condition and retu
Hi Hector,
On Fri, Nov 21, 2014 at 2:54 PM, Hector Palacios
wrote:
> The write operation may fail when trying to write to a locked area. In
> this case the ERROR bit is set in the CTRL register. Check for that
> condition and return an error.
>
> Signed-off-by: Hector Palacios
> ---
> drivers/m
The write operation may fail when trying to write to a locked area. In
this case the ERROR bit is set in the CTRL register. Check for that
condition and return an error.
Signed-off-by: Hector Palacios
---
drivers/misc/mxs_ocotp.c | 7 +++
1 file changed, 7 insertions(+)
diff --git a/drivers
7 matches
Mail list logo