[PATCH v5 0/2] mmc: support crash logging to MMC block devices

From: Bhaskara Budiredla
Date: Wed Jan 20 2021 - 08:03:25 EST


This patch introduces to mmcpstore.

v5:
- Implement non-panic read/write support through pstore callbacks

v4:
- Fix claiming host if host was already held or
if the device claiming host is not runtime active

v3:
- Justify new host ops requirement through commit msg
- Remove 'default n' in Kconfig

v2:
- Fix modpost issue with ARCH=sh
- Fix usage of ifdefs in common functions
- Add justification of new APIs to mmc_host_ops
- Compile mmcpstore as part of mmc blk

v1: https://lore.kernel.org/linux-mmc/20201112062422.32212-1-bbudiredla@xxxxxxxxxxx/T/#t
v2: https://lore.kernel.org/linux-mmc/6762a763-5284-04dc-e636-486c74dedd34@xxxxxxxxxxxx/T/#u
v3: https://lore.kernel.org/linux-mmc/20201207115753.21728-1-bbudiredla@xxxxxxxxxxx/T/#t
v4: https://lore.kernel.org/linux-mmc/20201223144033.32571-1-bbudiredla@xxxxxxxxxxx/T/#md9fce2de5b6aaa66e8ff7cb04d138a548426a8e3

Bhaskara Budiredla (2):
mmc: Support kmsg dumper based on pstore/blk
mmc: cavium: Add MMC polling method to support kmsg panic/oops write

drivers/mmc/core/Kconfig | 14 +-
drivers/mmc/core/Makefile | 1 +
drivers/mmc/core/block.c | 19 +++
drivers/mmc/core/block.h | 9 ++
drivers/mmc/core/core.c | 44 ++++++
drivers/mmc/core/mmcpstore.c | 227 +++++++++++++++++++++++++++++
drivers/mmc/host/cavium-thunderx.c | 10 ++
drivers/mmc/host/cavium.c | 67 +++++++++
drivers/mmc/host/cavium.h | 3 +
include/linux/mmc/core.h | 5 +
include/linux/mmc/host.h | 12 ++
11 files changed, 410 insertions(+), 1 deletion(-)
create mode 100644 drivers/mmc/core/mmcpstore.c

--
2.17.1