Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp3679838rdh; Tue, 28 Nov 2023 00:14:22 -0800 (PST) X-Google-Smtp-Source: AGHT+IH81QxYqisIMWtrS47EJYdJee/Er3DZ0Iee/DXHQr4ZAD7Wl9ERNvGKcWG5wfKcVqW2eblJ X-Received: by 2002:a05:6a20:c906:b0:187:a4df:4e57 with SMTP id gx6-20020a056a20c90600b00187a4df4e57mr13001392pzb.20.1701159262351; Tue, 28 Nov 2023 00:14:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701159262; cv=none; d=google.com; s=arc-20160816; b=tMwZclRN6nfgk8PadIj1zuDyzJXkBgKCxM56NZZ8rt2p3Ij1x1Lp8pVTGIK7+MojnH mDKTnJVHU7h6TB9n/Y5mFBnPnul9neAME1kVGQU0hwAFez8sIKLFU4VvbffuQ9C3iBvz ZV0f7pxjY3eNG7PMZXzjpDRGQdiL1zDFGGceMwazy2qQ+uDn3TYcvxSEykmuC3TvZHc6 3OCwptc2eVr9uTcCczuyDnIQ/vRw6vPX3fhsYUosbMZrDWmIYwMMgqBzLXB0C1GhucEK PdSOTbHsch4fekQwIXrboG7zYczaucF3UuqBrXezi7gBLDG1m91hgy5BycGqYoYETW/O O2ng== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=SB88Phe8Cfzd+i16UVy0kM0pj0uuscbZuQ2NaLA0dCI=; fh=9J1T/qcNXOK5tgjVfUgTFtiS61Y6AE3LT5R3bAS/Pbs=; b=dkQa17enYmBvRmjNFDieGOTkV1Vzs3XVaArkzG7ziw9BGcJLCLcPBAkyTQmkIwkaqi Ffe1ODuBlr6h3SvmrDDMfzQo0drZe1MHY5HcBHIv6xrrZMHncPYO8dtoqJjVN94q8cOx 3sJXsT+hFtRBgakcFQ12LYSgOdj+rBaf7ui2CYLuDFZ7OHb17/sQZc5JtHlzsz7sfZOV v2sEKJzO+ar+GlTNGZTS4Ae3vljmbO1aQUh1bzOEyz70qXtrG8+kq0C+aXCXSKCsYpD4 Gwd2ctzAh0Onlh6YuhSiu1G66qepInedK1Sx2jPiQFAEhc9jicSgVmjx7/W1PAeDM/GO xLww== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=S0EewmN0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from morse.vger.email (morse.vger.email. [2620:137:e000::3:1]) by mx.google.com with ESMTPS id o12-20020a170902d4cc00b001cfc0272b48si6274357plg.103.2023.11.28.00.14.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Nov 2023 00:14:22 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) client-ip=2620:137:e000::3:1; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=S0EewmN0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by morse.vger.email (Postfix) with ESMTP id 9B73A80F925C; Tue, 28 Nov 2023 00:14:19 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233910AbjK1IOG (ORCPT + 99 others); Tue, 28 Nov 2023 03:14:06 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41058 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230044AbjK1IOE (ORCPT ); Tue, 28 Nov 2023 03:14:04 -0500 Received: from mail-lf1-x12f.google.com (mail-lf1-x12f.google.com [IPv6:2a00:1450:4864:20::12f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2C6B1B0 for ; Tue, 28 Nov 2023 00:14:11 -0800 (PST) Received: by mail-lf1-x12f.google.com with SMTP id 2adb3069b0e04-507a0907896so6665630e87.2 for ; Tue, 28 Nov 2023 00:14:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1701159249; x=1701764049; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=SB88Phe8Cfzd+i16UVy0kM0pj0uuscbZuQ2NaLA0dCI=; b=S0EewmN0lw9il/QgSJrT8yQUZZg2cpWDqfkVCflTqIM08PeWWW74Vpk4hwdvyWBrVc 4tItozDPMZHnzO0iamnAcIpxRSLt/rVOjBRZE2qzfbLD7aJp27RsWR8HR52JIvSGSITR m+63F8/JS1/7/enqF2PvBEzwKcz2pX5COlQ3RDoxTrdAE57kEGz4Yfr3pO3XmbOk5ZYZ AL+z4lKno4rIzXfZ7UEHC3nwSK+fA7ctiDoSmiBuVD7IciOY1tM5kiS4S07MhXaOlmtI VdwRLFkwFtFyFQiSwsdLStCDToeXfAgju/OqDtoY0O4SIH0gBGqfSQ1mHWkQEkkLXb31 j3VQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701159249; x=1701764049; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=SB88Phe8Cfzd+i16UVy0kM0pj0uuscbZuQ2NaLA0dCI=; b=sV8pgUzEpGIdGZ/zRHH4uZmUjbXA4VSCZ/n61lXM/rEbelQ2FSOgPa34KqyA71qnzw orCUx4AjeRMKap/2I5Hc+ho40pfZ5OS+fj9aDErmrnfeF3ZJbTuJ+mgVavN7lYLUdHwI UKI1DQaMGBpgPwOnSLw1ny+2YsSGAPOhS9hOSF0eQcPo1SSVfzzSkw5OzLHAQWGtL7qe SFvNGzVsKhO7r0YRhEnrmrstIYw4OmDswSQAIyOpuf4z9w8zgFpkvkLxrF9DhatA3yuz MXX2wgVdAnLqMwF05APyTm9YpkErG8kqFVmTCxUE76PAQO+H926YILJgHfk7VX7BrTZl 9FJQ== X-Gm-Message-State: AOJu0YyuThq/DZGaolCYNSLXrSaKs2G/g7jsvk9Lg2aZB9f+rRy2vFq6 enL7F9PR5IiERvq5n5l2tkMYqQ== X-Received: by 2002:ac2:428a:0:b0:50b:aa88:c54e with SMTP id m10-20020ac2428a000000b0050baa88c54emr5531985lfh.16.1701159249425; Tue, 28 Nov 2023 00:14:09 -0800 (PST) Received: from [192.168.2.107] ([79.115.63.75]) by smtp.gmail.com with ESMTPSA id ay12-20020a05600c1e0c00b0040588d85b3asm17299412wmb.15.2023.11.28.00.14.08 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 28 Nov 2023 00:14:09 -0800 (PST) Message-ID: Date: Tue, 28 Nov 2023 08:14:07 +0000 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] mtd: spi-nor: stop printing superfluous debug info To: Miquel Raynal Cc: michael@walle.cc, jaimeliao.tw@gmail.com, jaimeliao@mxic.com.tw, pratyush@kernel.org, richard@nod.at, linux-mtd@lists.infradead.org, linux-kernel@vger.kernel.org References: <20231127165908.1734951-1-tudor.ambarus@linaro.org> <20231127181514.19b99d2e@xps-13> Content-Language: en-US From: Tudor Ambarus In-Reply-To: <20231127181514.19b99d2e@xps-13> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on morse.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (morse.vger.email [0.0.0.0]); Tue, 28 Nov 2023 00:14:19 -0800 (PST) On 11/27/23 17:15, Miquel Raynal wrote: > Hi Tudor, > Hi! > tudor.ambarus@linaro.org wrote on Mon, 27 Nov 2023 16:59:08 +0000: > >> The mtd data can be obtain with the mtd ioctls and the SPI NOR >> flash name can be determined interrogating the sysfs entries. >> Stop polluting the kernel log. > > Actually I like these prints when developing/fixing stuff, it's a clear > indication of what's been discovered that is available even if for some > reason my rootfs is not available (which is common when the rootfs is > on a spi-nor). > > So I would not trash all these lines personally... I believe the What do you find useful about these prints? Maybe you mean that you'd like some indicator that the SPI NOR probed successfully? How abut adding a debug message at the end of mtd_device_register(), or otherwise after mtd_device_register() is called? > dev_info can be lowered if you prefer, but dev_dbg is already meant for > debugging purposes and will anyway be discarded by default. Yes, if we're going to keep these sort of prints I think we should definitely lower them from info to dbg. It will speed the boot time and stop polluting the kernel log. Cheers, ta