Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp1264106imw; Sat, 16 Jul 2022 02:42:49 -0700 (PDT) X-Google-Smtp-Source: AGRyM1s5eL79ku0OUwNwP56Y5QO7dK/wqPXRxVqxklEFO7cNK4m/gZvp6ZbRy1WCdvpvFsOlon6e X-Received: by 2002:a17:906:84f0:b0:72b:72b6:c7b2 with SMTP id zp16-20020a17090684f000b0072b72b6c7b2mr17484686ejb.642.1657964569272; Sat, 16 Jul 2022 02:42:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657964569; cv=none; d=google.com; s=arc-20160816; b=a+KcYEMUC0R4rD5jsvqrRAl8S3uBVHA3A2gq+gDXyg7Gmd+TX38Es9PBxO1gL6Y0WG WI1J4V/fmfKz6SuPqjXrK4XYtaF2WJJfTMut9c+dfDCftaZAAlYg7M0ftU8aoyaIxmPc zbXQYN3aN6OAF1ul2OISLANBMQlPJWeQbEOARzPWIowSFmiXlnRDStKjhI8BIujwjy6R E2+H7s08vQVqOA9zKycU7q+GUyv/gM1BqxhZta62wcCctbc978wIcLfV8879izkbPh+v fLiuh51G5IDO430AuRScObZXpuihsQRwGm/71qIU2NLeqvbfXeaMw0NAcmV3TrkN0N5g 2zkg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:dkim-signature; bh=rjjB2Tj1v7P2/Hzk3+SDyFTeccso1IKFKW5WqPOEy9o=; b=gBDjGiOFD0NY/W9Y88DVYF8LKvJt7H/aaCjZRqe+eo4/FCujEbolwr7rRizQ2faTn7 1lT3mkPJMAXzaav/7Ob8DOEk18dTDjwTspeokDRG/iYubP0P0HOqZFgKvBZJzYTOfaqz bOuA6+QnMaqL8wAI78BZgLE3Lowwrm5HP7WFJLil3guTk9SlsvTFVbuFgLNtyh0IuGdD MKOeO+yT4qATNYbXQQTGmCXJDC9ux5eI+E3lsuuyepsqTBN7WAigTb9Wu72MMp/JJO2m r0YIkAu9sBoY3iKW3N2RVDmtqGvopaM/bmlSm81g9bzANxBAxQVCHcxqUH/XUGytYDgA uh0g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=FYLcjTom; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519; 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=suse.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id sd26-20020a170906ce3a00b007262adb2086si7176581ejb.256.2022.07.16.02.42.24; Sat, 16 Jul 2022 02:42:49 -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=@suse.de header.s=susede2_rsa header.b=FYLcjTom; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519; 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=suse.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232459AbiGPJjQ (ORCPT + 99 others); Sat, 16 Jul 2022 05:39:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34754 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232955AbiGPJjF (ORCPT ); Sat, 16 Jul 2022 05:39:05 -0400 Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.220.28]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3A70E19026; Sat, 16 Jul 2022 02:38:54 -0700 (PDT) Received: from relay2.suse.de (relay2.suse.de [149.44.160.134]) by smtp-out1.suse.de (Postfix) with ESMTP id 15F583467D; Sat, 16 Jul 2022 09:38:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1657964333; h=from:from:reply-to: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=rjjB2Tj1v7P2/Hzk3+SDyFTeccso1IKFKW5WqPOEy9o=; b=FYLcjTomd9RwzKd0WH1grD27nlv90mrvwHhBqMpTwZ84b+ud/KCg/G66kuAwXewZT9WNZU KUoXV78aY9h0pGD3tU6wC1NUWMnnTut96DlEP8y9eH50+DJF9g9B7MqJejwpseg6NN+3AP aztwoEHqp/val4a46OzLLJze3puCCvw= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1657964333; h=from:from:reply-to: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=rjjB2Tj1v7P2/Hzk3+SDyFTeccso1IKFKW5WqPOEy9o=; b=4zswoA0zLnplqlg+Z+74ZePirnVjDWStv2fDsZyruYBHwedU1AwvfDaucAqi2kwIgvOWD+ zq/RYOljlEdPZGDQ== Received: from kitsune.suse.cz (kitsune.suse.cz [10.100.12.127]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by relay2.suse.de (Postfix) with ESMTPS id 592212C141; Sat, 16 Jul 2022 09:38:51 +0000 (UTC) Date: Sat, 16 Jul 2022 11:38:50 +0200 From: Michal =?iso-8859-1?Q?Such=E1nek?= To: Michael Walle 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 Message-ID: <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> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) 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 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? 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. Thanks Michal