Received: by 2002:a05:7412:a9a2:b0:e2:908c:2ebd with SMTP id o34csp503287rdh; Thu, 26 Oct 2023 08:03:01 -0700 (PDT) X-Google-Smtp-Source: AGHT+IETmuB/H4sqMbuPP9EQgHZukPAHAAngvTTopu2p4cnoRwWra5uvDqKqtiJDPlD38fAIFwa0 X-Received: by 2002:a1f:2c15:0:b0:49e:2145:1651 with SMTP id s21-20020a1f2c15000000b0049e21451651mr53330vks.6.1698332581298; Thu, 26 Oct 2023 08:03:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698332581; cv=none; d=google.com; s=arc-20160816; b=ov2LNU1bWAJKldTPBQ073juajN4bmPpWU2M/TqfLVPSkPny2J6FmhHxwgqwrVPLhfF QKoZzL9rWtM9jKm6VYKxqssHtCXZWV85jPiadtx9SEmooUX409bjMOYyfYmf/Sa8d87Q nKnub46XdyT6Gvnt/ert85EQgVr4YbsHSx9qHjuyMtJ8f48Lg/ybW7DmG0EER0Sixa6x 4v6f+Ra7XGUWeeV7MXvLRJugCIjX74lPGaBiWA0z/2ds047eDf+MIKPDSLa85UzZzgUk eXxA78+x2SKRGeAil7rVN4SZS8PhoL7ofzuR13aDf2iH7V6JX0B8BmRvfqDbP2YaPUn2 aYsQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:references:in-reply-to:user-agent:subject:cc:to:from :date:dkim-signature; bh=GIq7VKze7/YNlHMTHO1501ppnVinYDbNtzevWz67otA=; fh=fGpSRpW/fUdsJjbc6MYdd2M1Bf/PyQzTOgx/EbWORaI=; b=N5EOnTsXCzVdIg/1MV4f7OaexPavDped/f2ry3BjFqXlLbakEHg/1YvOKH8ptsLxcD bDQvDK3pLxuV3ypheXLBwH/TVHfymrva834eug+ejPClQstbr5uXdi6w5uvo2RzixiFi fozjVRpuxLVGLJ63Di86XC2OFURBSYIblk+wezWpMRA9S/Cw7XHNvR3qzjG/292wQIYo CBADfoJVhCSVdRxpItzeAl/1ylFw2OW5l3vRP21q92W2/VeoQyj7gnkLroVqIwmzcfcI iJ1axsmf+5RTzBafzK97G1tB0xItprqBbELRIAYWvt3+bp6womY7skGJYllCxI+ZTbVU SRdA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@walle.cc header.s=mail2022082101 header.b=mwnfwqBd; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=walle.cc Return-Path: Received: from fry.vger.email (fry.vger.email. [2620:137:e000::3:8]) by mx.google.com with ESMTPS id g67-20020a1f9d46000000b0049abe146fd8si412066vke.37.2023.10.26.08.02.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Oct 2023 08:03:01 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) client-ip=2620:137:e000::3:8; Authentication-Results: mx.google.com; dkim=pass header.i=@walle.cc header.s=mail2022082101 header.b=mwnfwqBd; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=walle.cc Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id 4B7F98380658; Thu, 26 Oct 2023 08:02:44 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345305AbjJZPCe (ORCPT + 99 others); Thu, 26 Oct 2023 11:02:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57976 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231423AbjJZPCd (ORCPT ); Thu, 26 Oct 2023 11:02:33 -0400 Received: from mail.3ffe.de (0001.3ffe.de [IPv6:2a01:4f8:c0c:9d57::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 318FA187 for ; Thu, 26 Oct 2023 08:02:31 -0700 (PDT) Received: from [127.0.0.1] (unknown [154.135.84.71]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mail.3ffe.de (Postfix) with ESMTPSA id B3A986FB; Thu, 26 Oct 2023 17:02:24 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=walle.cc; s=mail2022082101; t=1698332546; 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=GIq7VKze7/YNlHMTHO1501ppnVinYDbNtzevWz67otA=; b=mwnfwqBdp+eT/hf0Iro83+z7Ih6IJQ+4AipPLZq9fCEfdSLFl3IcdCH3GKmN08MRc7tEyH D6k1GbUg197kRFHWWFZxbKngq9yCqQ1g+TageTzc2LUHrMN+UUdNZRVoXsKuB8uCf5MWul T1prrv7QW1+Bzibu+6xgYJigWV9Sgt3RXVAcNHvb33J8pYFv7i7LtIwaB5zuOPGeNIREIn Th1HNvaQ0ZIPChyUBWyveZmgGjvN+vYzi8wfbw0WuUkFSX3WqrdBa7kRHOUM03DNDQkpWR iTbvF3Qhr0WcVpzij52oioK3rtNnAPh55T/VLTCkpNBEIsmASMXrVySB98oNww== Date: Thu, 26 Oct 2023 18:02:20 +0300 From: Michael Walle To: Pratyush Yadav , AceLan Kao CC: Tudor Ambarus , Miquel Raynal , Richard Weinberger , Vignesh Raghavendra , Mika Westerberg , linux-mtd@lists.infradead.org, linux-kernel@vger.kernel.org Subject: =?US-ASCII?Q?Re=3A_=5BPATCH_v4=5D_mtd=3A_spi-nor=3A_Improve_?= =?US-ASCII?Q?reporting_for_software_reset_failures?= User-Agent: K-9 Mail for Android In-Reply-To: References: <20231026012017.518610-1-acelan.kao@canonical.com> Message-ID: <8D87B330-8FA1-46BE-949E-5A8DFB8AACF3@walle.cc> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.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 (fry.vger.email [0.0.0.0]); Thu, 26 Oct 2023 08:02:44 -0700 (PDT) Am 26=2E Oktober 2023 16:39:54 OESZ schrieb Pratyush Yadav : >On Thu, Oct 26 2023, AceLan Kao wrote: > >> From: "Chia-Lin Kao (AceLan)" >> >> When the software reset command isn't supported, we now report it >> as an informational message(dev_info) instead of a warning(dev_warn)=2E >> This adjustment helps avoid unnecessary alarm and confusion regarding >> software reset capabilities=2E > >I still think the soft reset command deserves a warn, and not an info=2E >Because it _is_ a bad thing if you need to soft reset and are unable to >do so=2E Your bootloader (or linux if you rmmod and modprobe again) might >not be able to detect the flash mode and operate it properly=2E=20 agreed=2E=2E but=2E=2E=20 >I think we should just not unconditionally run this and instead only >call it when the flash reset is not connected -- that is only call this >under a check for SNOR_F_BROKEN_RESET, like we do for 4-byte addressing >mode=2E =2E=2E keep in mind that this is a restriction of the flash controller=2E = the Intel one seems to be the only affected one (for now) and it's doing a = reset (according to mika) on its own=2E=20 snor_broken_reset is a property of the flash=2E=20 >I don't have a strong opposition to this patch but I do think it is >fixing the problem in the wrong place=2E if the flash controller doesn't let you issue a soft reset (or does so on = its own), what's the fix? -michael=20