Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp6513400rwr; Mon, 24 Apr 2023 22:41:08 -0700 (PDT) X-Google-Smtp-Source: AKy350bM8hwh84z8kA70x4nKkoQwD3kPEHxh98e7q9aSzfEkuV5eGzu1QikSg44sFE0fJ9SJnQPj X-Received: by 2002:a05:6a21:999c:b0:f2:88c:d55d with SMTP id ve28-20020a056a21999c00b000f2088cd55dmr20685834pzb.46.1682401268131; Mon, 24 Apr 2023 22:41:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682401268; cv=none; d=google.com; s=arc-20160816; b=C6Vahc3QZAbr18RSvElNTehBEhtouo0uvwPipjIfCKL1C1v/zCuk+Pf6oEUexooOb3 mmckmvsAU8l92+xIL1V0yj6vQxcXUXE00ONugkn9IL1KDy5+VtVIqgz46D5XKUg2zW0E 4cXHnmGDWn6OUSUz4cD308hkNxBHUMPy60oM5M4QRvMgBZUStprRAT0wfEZFqZSnPmLc HeiGrKVys4/CNeiGIcWw/5MaOuhSJ+zSdo11tsEqpJO+URm4rfztefTGFVuEtEpTTBzZ 7NYAxHO5vJ2+JlwhYEItgtoF3lGfoKNC7gt6Ky23IfSK7Q+jQR6eSYnxsow486P3s4kS /B4w== 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-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=3/Ks6bcKs35DJ9R8DdQXQyi19TDKaAI1keJAEwzBhbo=; b=Q6I9sG0TVl1w6Y/MOaCmmxDX4addUhNKua90rR9ZYXxgFY90nC/UMG7Bd2c4fnWa1Z 8a41Gf+uPJq9ayNDrc6pLpgYgQkr9LFBXDmV/GNiHoUTb2EUHlGHDwq6NHe4cz5HwirO lBXl9mJYnfnpjzs4zdh8MWKErx8vj71DkVTRHedFNCRvDgOdeGU3d4LjUTqumgFYEgUC nQmouA1YEcaiOrv2b2PFSBsR0zIczzuXUv5nmwOUrWp2gijTuSEiIMraZvo0PL/SO2Ld 78THMUFC7Z/GNCeTUq64pmbt9Apud7l6UEuJkuGYLAkopXCO0E6D69KC02nWSBjFViKA uKvQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=JK6WNJWh; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-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 g64-20020a636b43000000b00513128cd495si12477298pgc.730.2023.04.24.22.40.53; Mon, 24 Apr 2023 22:41:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-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=JK6WNJWh; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-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 S233264AbjDYFbT (ORCPT + 99 others); Tue, 25 Apr 2023 01:31:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51182 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229637AbjDYFbS (ORCPT ); Tue, 25 Apr 2023 01:31:18 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B678F5FF3; Mon, 24 Apr 2023 22:31:17 -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 dfw.source.kernel.org (Postfix) with ESMTPS id 51E2862B63; Tue, 25 Apr 2023 05:31:17 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0D4F6C433EF; Tue, 25 Apr 2023 05:31:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1682400676; bh=kIRAPdXYCFJzfTvzQkwUjDYU35AND/M28n31JpTFWek=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=JK6WNJWhAh5harM4ffD+b3FewvAo2EQqDTv4VQeeDlSSnwk4eBNZDYB744RH3+lBM CHVKSVUC7JnrLMgMB9dvSmfehoU9w48j8Opio9nl33Jq6ukhU5lIFDnRpCl9U8Or92 gV/36/JhkzpByzdZpkinvboYc2XFcmgKAydC9EwA= Date: Tue, 25 Apr 2023 07:31:13 +0200 From: Greg Kroah-Hartman To: Peter Enderborg Cc: Mark Brown , Yingsha Xu , Serge Semin , linux-spi@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] spi: remove return value check of debugfs_create_dir() Message-ID: References: <20230423061155.2540-1-ysxu@hust.edu.cn> <368e31ae-31b5-839f-72e3-20a27239cb0b@sony.com> <2023042421-landowner-magnitude-a38c@gregkh> <3164e897-a423-3948-d50a-f2bdd4ad05e9@sony.com> <2023042431-crook-stable-5749@gregkh> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Spam-Status: No, score=-7.3 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,URIBL_BLOCKED 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-kernel@vger.kernel.org On Mon, Apr 24, 2023 at 03:54:13PM +0200, Peter Enderborg wrote: > On 4/24/23 15:22, Greg Kroah-Hartman wrote: > > On Mon, Apr 24, 2023 at 03:17:09PM +0200, Peter Enderborg wrote: > >> On 4/24/23 14:53, Greg Kroah-Hartman wrote: > >>>>> We can do things with the debug information without filesystem enabled. > >>> What exactly do you mean by this? > >>> > >>> > >> We can read out data from kernel with a ramdumper and analyse with crash. > >> > >> See https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/7/html/kernel_administration_guide/kernel_crash_dump_guide > >> > >> If it is useful or not I can not say, but the dws->regset. is lost and can not be read with a post mortem debugger. > > What is "dws"? What is "regset"? > > That is from the patch. It is used as an example. > > > > What is the root problem here? > > That it is a mater of taste.? It should not be a mater of taste. > > ????? if (!dws->debugfs) > ??????????????? return -ENOMEM; Right here, you abort the normal operation of the driver if something went wrong with debugfs, which is not a good idea. That's the goal here, nothing else. thanks, greg k-h