Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934293AbdLSKDo (ORCPT ); Tue, 19 Dec 2017 05:03:44 -0500 Received: from rnd-relay.smtp.broadcom.com ([192.19.229.170]:41277 "EHLO rnd-relay.smtp.broadcom.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933571AbdLSKDk (ORCPT ); Tue, 19 Dec 2017 05:03:40 -0500 From: Arend van Spriel To: Greg Kroah-Hartman Cc: linux-kernel@vger.kernel.org, Arend van Spriel Subject: [PATCH 0/2] sysfs: allow user-space request for devcoredump Date: Tue, 19 Dec 2017 11:03:20 +0100 Message-Id: <1513677802-3031-1-git-send-email-arend.vanspriel@broadcom.com> X-Mailer: git-send-email 1.9.1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1029 Lines: 24 From: Arend van Spriel Since commit 833c95456a70 ("device coredump: add new device coredump class") device drivers have a unified way to provide binary data obtained from a failing_device to user-space. However, there may be use-cases in which the driver has no reason to obtain the data, but user-space wants to initiate it. This adds a coredump device attribute in sysfs when the driver bound to the device supports the newly added coredump driver callback. These patches apply to the driver-core-next branch of the driver-core repository. Arend van Spriel (2): sysfs: add attribute specification for /sysfs/devices/.../coredump drivers: base: add coredump driver ops Documentation/ABI/testing/sysfs-devices-coredump | 10 ++++++ drivers/base/dd.c | 40 +++++++++++++++++++----- include/linux/device.h | 2 +- 3 files changed, 44 insertions(+), 8 deletions(-) create mode 100644 Documentation/ABI/testing/sysfs-devices-coredump -- 1.9.1