RE: [PATCH v1 1/2] efuse: IMG Pistachio eFuse Controller

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




Hi James,

[...]

>>> +    if (offset >= efuse_dev->size)
>>> +            return 0;
>>> +
>>> +    data = readl(efuse_dev->base + round_down(offset, 4));
>> +    data >>= (offset % 4) * 8;
>>> +
>>> +    return data; /* Only return the last byte */

>>  The last byte? You mean the least significant byte?

> Yes, it returns the least significant byte.

Since the return type is u8 the function returns last byte in the resultant data after the right shift operation.
If the user space asks for nth byte (offset = n, where  n = 0 to 15) we will return nth byte from the eFuse shadow RAM.

There are total 128 Bits (16 bytes) of Shadow RAM reserved for eFuse status.

[...]

Regards,
R.Arul Raj

--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Device Tree Compilter]     [Device Tree Spec]     [Linux Driver Backports]     [Video for Linux]     [Linux USB Devel]     [Linux PCI Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Yosemite Backpacking]
  Powered by Linux