Received: by 2002:a05:6358:e9c4:b0:b2:91dc:71ab with SMTP id hc4csp6186049rwb; Tue, 9 Aug 2022 10:30:16 -0700 (PDT) X-Google-Smtp-Source: AA6agR64UvJuGFjgSlTZ/8rrw9ww60zz2uTfwq3TOTxAk1x2D2febBJxYM7KoKbRGmn4WkQCyqHW X-Received: by 2002:a17:906:5a73:b0:730:9e88:1cde with SMTP id my51-20020a1709065a7300b007309e881cdemr17762051ejc.741.1660066204822; Tue, 09 Aug 2022 10:30:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660066204; cv=none; d=google.com; s=arc-20160816; b=UIxJpIrUCuOOtawx6YfdqhmUBPf4Yr/n6Iy4SP+Xnb0zud/MzhgsZ05AiVYfDS35Zy 0qNkyAoNIlSVJqC16MlPGsceI6svQeaERRLR3WpZ5LyE6x4Xwfiy2C7GV+mk00vvr/0i HQpetIzj/lJ+Kq1fsVLShi2+qvqi4UAya5Y1kwVdXHcXGH98glnXD2FQlV25HLj2dXK4 gzo7F1MpH2nNHQdEOBRahJ6wA1xKddkrMK4Bs8lKrpok0HLS2hL3XJ396tq30V9D0fi6 Y//vK9REpDiGIKr9SbgU1jrig7lDUfnuNX6eGY9043AZPeSwc5QsuD+n4O1nEAfM/xG4 J0FQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=GRHPxxqMbWy/O0dwutf7x8GSgeBYz/XAIH7f84V1GlY=; b=g7cN8Y+YPumHTeO1dxRR2eQeuVY8kEVbwBwOsVdjfBbBDR26etWlxGrQc0ZiY+EILt psM+srp2jC9aWYDBT+WAI/gJpbXEOJZaTHv3Yt+IcP72KWOd5i7AC2c6bthRwGLMZjLH V0pnQ9CXJxVAvSP0fSkw63JuIO31YuQj9WebKxH7YlzsiV4sK8SNAZOsvJOTotLBmzzZ i4nMIFSa7/+PfKqKzeJezfl22BmLNX9vzPRAAq2xxV1EHzcmC3m15boIcK4o2sfbf9Jn PnM6l83VI/o5N17E7TPtJtc5iibZx5YYp1Pqy0tGie+qRaqAZPDTcrV/A7E+cy1+kI+W 8Wvg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="md2/BPId"; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id v19-20020a056402349300b0043d82809f0asi10661667edc.332.2022.08.09.10.29.09; Tue, 09 Aug 2022 10:30:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="md2/BPId"; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240145AbiHIR1h (ORCPT + 99 others); Tue, 9 Aug 2022 13:27:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35808 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244949AbiHIR1c (ORCPT ); Tue, 9 Aug 2022 13:27:32 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 79DED1FCC7; Tue, 9 Aug 2022 10:27:30 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 9FC33B8168C; Tue, 9 Aug 2022 17:27:29 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id B88DBC433D6; Tue, 9 Aug 2022 17:27:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1660066048; bh=jAu9dpyXy8eLfzB3y+ekTXCh1hUDnv0KWYvUbtEC6Xs=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=md2/BPIdoRVJYCrTG6QLMvK65R5wQujiw446y5UGapdlH1c5Xh6mKqQ3J8LXCHph2 n9IRax1IFt2RrTBh32sqlIMPEFNWsZT/IhalOswFkNYjIn64BiZwi3q2hJBxmtEsPm MzHcJYrRnl2fPVtc/5dDPIMGE9qzq+wjbxJwJEFE= Date: Tue, 9 Aug 2022 19:27:25 +0200 From: Greg Kroah-Hartman To: Manish Mandlik Cc: Arend van Spriel , marcel@holtmann.org, luiz.dentz@gmail.com, chromeos-bluetooth-upstreaming@chromium.org, linux-bluetooth@vger.kernel.org, Abhishek Pandit-Subedi , Dan Williams , Jason Gunthorpe , Johannes Berg , "Rafael J. Wysocki" , Thomas Gleixner , Won Chung , linux-kernel@vger.kernel.org Subject: Re: [PATCH v4 2/5] devcoredump: Add per device sysfs entry to enable/disable coredump Message-ID: References: <20220809083112.v4.1.I5622b2a92dca4d2703a0f747e24f3ef19303e6df@changeid> <20220809083112.v4.2.Ief1110784c6c1c3ac0ee5677c2d28d785af8686d@changeid> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220809083112.v4.2.Ief1110784c6c1c3ac0ee5677c2d28d785af8686d@changeid> X-Spam-Status: No, score=-7.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org On Tue, Aug 09, 2022 at 08:35:24AM -0700, Manish Mandlik wrote: > The /sys/class/devcoredump/disabled provides only one-way disable > functionality. Also, disabling devcoredump using it disables the > devcoredump functionality for everyone who is using it. > > Provide a way to selectively enable/disable devcoredump for the device > which is bound to a driver that implements the '.coredump()' callback. > > This adds the 'coredump_disabled' driver attribute. When the driver > implements the '.coredump()' callback, 'coredump_disabled' file is added > along with the 'coredump' file in the sysfs folder of the device upon > driver binding. The file is removed when the driver is unbound. > > Drivers can use this attribute to enable/disable devcoredump and the > userspace can write 0 or 1 to /sys/devices/.../coredump_disabled sysfs > entry to control enabling/disabling of devcoredump for that device. > > Signed-off-by: Manish Mandlik > Reviewed-by: Abhishek Pandit-Subedi > --- > > Changes in v4: > - New patch in the series > > drivers/base/dd.c | 43 +++++++++++++++++++++++++++++++++++--- > drivers/base/devcoredump.c | 2 +- > include/linux/device.h | 4 ++++ > 3 files changed, 45 insertions(+), 4 deletions(-) You can't add a new sysfs file without also a Documentation/ABI update at the same time :( thanks, greg k-h