summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin
diff options
context:
space:
mode:
authorBrian Norris <computersforpeace@gmail.com>2016-01-29 11:25:32 -0800
committerBrian Norris <computersforpeace@gmail.com>2016-03-07 18:01:54 -0800
commitf8860802da84aa2bbc9f316e549a349fb40cda63 (patch)
treed2d263ccf2e6bf5b12ce704692f6c12b0b55b68d /tools/perf/scripts/python/bin
parent4c0dba447ef4a97dfbae6e876312e952667eddc4 (diff)
downloadkernel-f8860802da84aa2bbc9f316e549a349fb40cda63.tar.gz
mtd: spi-nor: make lock/unlock bounds checks more obvious and robust
There are a few different corner cases to the current logic that seem undesirable: * mtd_lock() with offs==0 trips a bounds issue on ofs - mtd->erasesize < 0 * mtd_unlock() on the middle of a flash that is already unlocked will return -EINVAL * probably other corner cases So, let's stop doing "smart" checks like "check the block below us", let's just do the following: (a) pass only non-negative offsets/lengths to stm_is_locked_sr() (b) add a similar stm_is_unlocked_sr() function, so we can check if the *entire* range is unlocked (and not just whether some part of it is unlocked) Then armed with (b), we can make lock() and unlock() much more symmetric: (c) short-circuit the procedure if there is no work to be done, and (d) check the entire range above/below This also aligns well with the structure needed for proper TB (Top/Bottom) support. Signed-off-by: Brian Norris <computersforpeace@gmail.com> Tested-by: Ezequiel Garcia <ezequiel@vanguardiasur.com.ar>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions
-6.12.y&id=6f4870753f29edf7dc39444246f9e39987b8b158'>ARM: dts: exynos: Fix IOMMU support for GScaler devices on Exynos5250Marek Szyprowski 2018-02-13ARM: dts: exynos: Remove "cooling-{min|max}-level" for CPU nodesViresh Kumar 2018-01-03ARM: dts: exynos: Add SPDX license identifiersKrzysztof Kozlowski 2017-12-18ARM: dts: exynos: Use lower case hex addresses in node unit addressesKrzysztof Kozlowski 2017-12-14ARM: dts: exynos: Add nodes for True Random Number GeneratorŁukasz Stelmach 2017-12-11ARM: dts: exynos: Add DT nodes for PRNG in Exynos5 SoCsŁukasz Stelmach 2017-12-10ARM: dts: exynos: Add G3D power domain to Exynos5250Marek Szyprowski 2017-12-10ARM: dts: exynos: Add audio power domain to Exynos5250Marek Szyprowski 2017-12-10ARM: dts: exynos: Fix power domain node names for Exynos5250Marek Szyprowski 2017-12-04ARM: dts: exynos: Move G2D node to exynos5.dtsiTobias Jakobi 2017-11-27ARM: dts: exynos: Remove duplicate definitions of SSS nodes for Exynos5Łukasz Stelmach 2017-10-20Merge tag 'samsung-dt-4.15' of git://git.kernel.org/pub/scm/linux/kernel/git/...Arnd Bergmann 2017-10-20arm: dts: fix unit-address leading 0sRob Herring 2017-09-19ARM: dts: exynos: Add status property to Exynos 5250 HDMI and Mixer nodesMarek Szyprowski 2017-09-19ARM: dts: exynos: Move HDMI PHY node from boards to exynos5250.dtsiMarek Szyprowski 2017-09-19ARM: dts: exynos: Use specific compatibles for proper Gscaler limits on Exyno...Hoegeun Kwon 2017-06-07ARM: dts: exynos: Use human-friendly symbols for GIC interrupt propertiesKrzysztof Kozlowski 2017-06-02ARM: dts: exynos: Add HDMI CEC device to Exynos5 SoC familyMarek Szyprowski 2017-01-31ARM: dts: exynos: Add labels to all existing power domainsMarek Szyprowski 2016-12-29ARM: dts: exynos: Enable DMA support for UART modules on Exynos5 SoCsMarek Szyprowski 2016-11-03ARM: dts: exynos: Use human-friendly symbols for interrupt properties in exynos5Krzysztof Kozlowski 2016-11-03ARM: dts: exynos: Fix invalid GIC interrupt flags in exynos5250Krzysztof Kozlowski 2016-05-31ARM: dts: exynos: Move Exynos5250 and Exynos5420 nodes under socKrzysztof Kozlowski 2016-05-31ARM: dts: exynos: Move common nodes to exynos5.dtsiKrzysztof Kozlowski