Kconfig doesn't have any knowledge of specific v7 cores, so it is possible
to select errata workarounds that may cause inadvertent behaviour when
executed on a core other than those targetted by the fix.
This patch improves the variant and revision checking in proc-v7.S so
that the primary part number is also considered when applying errata
workarounds.
Acked-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
We perform the microseconds to loops calculation using a number of
multiplies and shift rights. Each shift right rounds down the
resulting value, which can result in delays shorter than requested.
Ensure that we always round up.
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
current is a macro for the current process. Use _current instead of current_now
as all the other cached fields are named the same as the register they
correspond to. Also, add in a comment about the special relationship between
_serial_number and serial_number.
The power supply system does not actually expect allocated strings that it will
manage. We were allocating the strings, expecting the power supply class driver
to clean them up, and as a result had a massive leak. Fix this by storing the
string in the cache and returning a reference to that string.
This effectively overhauls the sbs_battery_field. It is renamed
sbs_battery_register which is more accurate. There is now string handling logic
for the string reading case. The int/uint types are handled the same, so there
is a single read type for those two value types.
* cleanup (useless definitions)
* fix IOMUX for reset pin definition (make it a straight boring GPIO)
* add IRQ pin IOMUX (can't believe I missed that)
* add DISP_EN lines from schematics (active low), and knock VGA on the head (might save a few uA)
Use list_for_each_entry_safe to make the code easier to follow, re-order the
checks for removal, and break once the remove flag is set in the list traversal.