aboutsummaryrefslogtreecommitdiff
path: root/scripts/gdb/linux/symbols.py
diff options
context:
space:
mode:
authorBoris Brezillon <[email protected]>2018-01-22 10:38:01 +0100
committerBoris Brezillon <[email protected]>2018-02-12 11:46:38 +0100
commite6e620f0e15e3bc4b3bc3078c9f3285830f2fd3c (patch)
treeb63ce60f107da8fff9435e8795d085e2eddb3111 /scripts/gdb/linux/symbols.py
parent7928b2cbe55b2a410a0f5c1f154610059c57b1b2 (diff)
mtd: Make sure the device supports erase operations in mtd_erase()
Some devices do not implement ->_erase() or have an invalid ->erasesize value. In this case, mtd_erase() should return -ENOTSUPP. Note that the test is not done on the MTD_NO_ERASE flag because this flag means 'erasing a block before writing to it is unnecessary', not 'the erase operation is not supported'. Actually, some drivers are setting the MTD_NO_ERASE flag but still implementing the ->_erase() hook and setting a valid ->erasesize value. Signed-off-by: Boris Brezillon <[email protected]> Reviewed-by: Miquel Raynal <[email protected]> Signed-off-by: Boris Brezillon <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/symbols.py')
0 files changed, 0 insertions, 0 deletions