Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp1288724imw; Sat, 16 Jul 2022 03:18:12 -0700 (PDT) X-Google-Smtp-Source: AGRyM1tHInpus8H+MIHEMOFwLzc5km8HcMG/1p+1RG8WN6ViLpgOuMQiQ1iZLRAgB6fY6IEvllGR X-Received: by 2002:a17:90b:1094:b0:1ef:ab92:2af2 with SMTP id gj20-20020a17090b109400b001efab922af2mr21181029pjb.227.1657966691798; Sat, 16 Jul 2022 03:18:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657966691; cv=none; d=google.com; s=arc-20160816; b=P05ONqoOU8TQHJ3j6orug8rFVRN/RBpfGG5xmV/6+vf7ws/TN3Rz8J7743Fq5pnDeW rKRzeioHA76MH5zvCOUou804481LJSYFwuLw0HORNfcu2USmCYIT6rpJaYcUo2iOKNN5 b6TzVitpTD9+8XyUBSf4jh2lRvEE5Bkd5ey3q9EMPML8JYcP1tTW6w7mBoX9Vay5fvME 2joUXWbyvfTgqVA1fNOd4qIIGVXsfJg0SUZeKg+QLNg3PQZY/7tpFPbWB3/ylMzFddOO r6BBbfxIok4H6jP/pTFi8qQhUO0tn/fcRe3c9bOOLfwWkM8sEdAL+8rX4TdVKjYFrfGP vakg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:user-agent:references:in-reply-to :subject:cc:to:from:date:content-transfer-encoding:mime-version :dkim-signature; bh=PFmP/Rr8fzwWcTss+FmGkFnGfEeJujXpyOeGsJcQUTA=; b=aDQOiaEwqBodovrf0fsT1F7cH7xP4YQHXrgOge1oQdZpqt1Z+e2WfWDZq34imF4GBU Ypoyhb772yJy4U/2eZ4MaBsiU8XDt+omOqoqDbLU+my+QTpXyrX/s0m8pXuTlX7c2YB+ fdHI0+PRK7GST4Ook4cC9dU6RUCS5MxIwVcNYZrQWKkK7MxD5FFbpQtqu1FtOuOPBhiB F+OJJlJdR2haXAOU+0sNd/dBMdzcwUYsI6DwttMLog9Lbqnkp6G/JmXvBDoT4q0R6Uy1 2ZZB94QY1iM+IOeBJ0QSyPQWpYNGowBTosSIggiPSvi2E67RbtOA0wLjVYxuc7jx4dmD qZkg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@walle.cc header.s=mail2016061301 header.b=s8conBUm; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u8-20020a17090341c800b0016c2ae85bd7si8778550ple.400.2022.07.16.03.17.57; Sat, 16 Jul 2022 03:18:11 -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=@walle.cc header.s=mail2016061301 header.b=s8conBUm; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232662AbiGPJoy (ORCPT + 99 others); Sat, 16 Jul 2022 05:44:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39252 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232525AbiGPJov (ORCPT ); Sat, 16 Jul 2022 05:44:51 -0400 Received: from ssl.serverraum.org (ssl.serverraum.org [IPv6:2a01:4f8:151:8464::1:2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CF9961DA4B; Sat, 16 Jul 2022 02:44:50 -0700 (PDT) Received: from ssl.serverraum.org (web.serverraum.org [172.16.0.2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ssl.serverraum.org (Postfix) with ESMTPSA id 9411622239; Sat, 16 Jul 2022 11:44:48 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=walle.cc; s=mail2016061301; t=1657964688; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=PFmP/Rr8fzwWcTss+FmGkFnGfEeJujXpyOeGsJcQUTA=; b=s8conBUmb9JGXwwVjZrki9huq/w0u3VoszbNJxKt88UipHZLbE53o3m38UfYtUEqqcUjlj Kzdux7F7BY49G1fPWWBtkG/QJC0ADnQF11Na7M6UiZluRGFsCFMxvErZnwr5jSN/uscV2M QDqvc8ORq4lWyHiBi3LgKVTs+nIQbnU= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Date: Sat, 16 Jul 2022 11:44:48 +0200 From: Michael Walle To: =?UTF-8?Q?Michal_Such=C3=A1nek?= Cc: Pratyush Yadav , linux-sunxi@lists.linux.dev, Rob Herring , Krzysztof Kozlowski , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland , Tudor Ambarus , Miquel Raynal , Richard Weinberger , Vignesh Raghavendra , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-mtd@lists.infradead.org Subject: Re: [PATCH 1/2] mtd: spi-nor: When a flash memory is missing do not report an error In-Reply-To: <20220716093850.GL17705@kitsune.suse.cz> References: <701967b0c418db333c66b48d225df60aa9d03ead.1657826188.git.msuchanek@suse.de> <20220714205529.GE17705@kitsune.suse.cz> <33abf7b84860049c4a22605578303ff2@walle.cc> <20220714220744.GF17705@kitsune.suse.cz> <20220715092017.2ftoyzm22i4amrbt@ti.com> <20220716082027.GK17705@kitsune.suse.cz> <20220716093850.GL17705@kitsune.suse.cz> User-Agent: Roundcube Webmail/1.4.13 Message-ID: <50ec7bf33d8eca5eb68a079f7bcc12b7@walle.cc> X-Sender: michael@walle.cc X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS 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 Am 2022-07-16 11:38, schrieb Michal Suchánek: > On Sat, Jul 16, 2022 at 11:30:12AM +0200, Michael Walle wrote: >> Am 2022-07-16 10:20, schrieb Michal Suchánek: >> >> > > So if DT says there isn't a flash on a specific CS when there is, then >> > > DT should be fixed to describe the flash, and then we can probe it. >> > > You >> > > both seem to be saying the same thing here, and I agree. >> > >> > The disagreement is about the situation when there is sometimes a flash >> > chip. >> >> No. The disagreement is what should happen if the DT says there is >> a device but there isn't. Which right now is an error and it should >> stay that way. Your hardware description says there is a flash >> but it cannot be probed, so it is an error. What about a board >> which has an actual error and the flash isn't responding? You >> trade one use case for another. > > And what if you have a SATA controller with a bad cable? > > Or a bad connection to a mmc card? Again. You don't tell the kernel via the DT that there is an MMC card nor that there is a SATA SDD. In contrast to SPI-NOR.. > Then the kernel also does not say there is an error and simply does not > see the device. > > This is normal. Not all devices that can potentially exist do exist. It > is up to the user to decide if it's an error that the device is > missing. > >> Also I've looked at the PHY subsystem and there, if a PHY is described >> in the DT but isn't there, the following error will be printed: >> dev_err(&mdio->dev, "MDIO device at address %d is missing.\n", >> addr); >> >> And that is for a bus which can even be automatically be >> probed/detected. > > If there is no use case for having a card with unpopulated PHY then it > makes sense. > > Here we do have a use case so the comparison is moot. And what use case is that? You are just demoting an error to an info. Apparently you just want to see that error go away, there is no change in functionality. -michael