Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp2449988ybl; Thu, 9 Jan 2020 13:01:01 -0800 (PST) X-Google-Smtp-Source: APXvYqyvTRc3r4h36Ap+cyGdWN9exYX+hCnG9TRmWr6A0XGYIG3D+0VZCVYJbapHBFGg54JhH2pD X-Received: by 2002:a9d:7c8a:: with SMTP id q10mr9311451otn.124.1578603661539; Thu, 09 Jan 2020 13:01:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578603661; cv=none; d=google.com; s=arc-20160816; b=JNO2srPc3PDcdJ24S34Jipm0Bgh9+TV8gZO1OPU6AYaEXNA9qrz2MmFb+6IULoUo+a YpLdpAm55q0I+vIfOL1Zlp5cMhiv9N4yI9Bj0yrCM+GHnuEhumpZkwUHSS0p1IFNlxxa zcxjk7Dp1YC/0SW72SdLUKa/uDeFANHP6+F7DJF5rxqF4h55B9FDkX5x9xLAAjoNr8Q+ MPpP3rWJkUYvpeHfVA21IdZcLuW80Ohed0Uy5oAjLKlvaGtgYkBnP94ekkbp5RsGdloP gyeFBplEsYMdazFkQ6Mausp+ezKemLRUS39pRu/UcjHgBJC6fOQ3gAAGznvxgiclBfeh EOnQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :organization:references:in-reply-to:message-id:subject:cc:to:from :date; bh=rW7tYeE0Ep/yuAr594kBUmRvO7OGn9Ac7Iv0MoKVOYs=; b=mZqlLLwNhIpM4UVXtyiqeHqFzGOyjfsRV5EEtwQwL3swsSWi1WxGlaPT0g1nZ2I0Kd zLx5/uMGjKZejg810o5qIqCmEfElE3wHAJ7qHvZ11unct8YhTmuLpjqurkyqj4UUTfTR TFJUeeL884GH5toH9+oBkglzl5jrBmbBGwFDT9D7e4IKNREdj2cX+IdMO3uYXsj23dc5 9ZA26RdPIAcn2q7E720siqwL0n4RL6R/QzZGgKquSIKgD0VSxg/ReuLTZQhh1PukwOyD EGSeQ9gIk0H2+5Z5z8IDGDOogQvCPqSDWwdH2CqXQ2olmtPaJIyShPb6zqSjLLztXGo1 KW2A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 19si4288107oiq.128.2020.01.09.13.00.49; Thu, 09 Jan 2020 13:01:01 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731716AbgAIR2L convert rfc822-to-8bit (ORCPT + 99 others); Thu, 9 Jan 2020 12:28:11 -0500 Received: from relay6-d.mail.gandi.net ([217.70.183.198]:46909 "EHLO relay6-d.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728444AbgAIR2L (ORCPT ); Thu, 9 Jan 2020 12:28:11 -0500 X-Originating-IP: 91.224.148.103 Received: from xps13 (unknown [91.224.148.103]) (Authenticated sender: miquel.raynal@bootlin.com) by relay6-d.mail.gandi.net (Postfix) with ESMTPSA id 974F5C0014; Thu, 9 Jan 2020 17:28:08 +0000 (UTC) Date: Thu, 9 Jan 2020 18:28:07 +0100 From: Miquel Raynal To: Kamal Dasu Cc: Richard Weinberger , Kamal Dasu , linux-mtd , bcm-kernel-feedback-list , linux-kernel , David Woodhouse , Brian Norris , Marek Vasut , Vignesh Raghavendra Subject: Re: [PATCH] mtd: set mtd partition panic write flag Message-ID: <20200109182807.04c8866a@xps13> In-Reply-To: References: <20191021193343.41320-1-kdasu.kdev@gmail.com> <20191105200344.1e8c3eab@xps13> <1718371158.75883.1572995022606.JavaMail.zimbra@nod.at> <20200109160352.6080e1e5@xps13> Organization: Bootlin X-Mailer: Claws Mail 3.17.4 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Kamal, Kamal Dasu wrote on Thu, 9 Jan 2020 10:25:59 -0500: > Miquel, > > Yes the issue is still open. I was trying to understand the suggestion > and did not get a reply on the question I had > > Richard wrote : > "So the right fix would be setting the parent's oops_panic_write in > mtd_panic_write(). > Then we don't have to touch mtdpart.c" > > How do I get access to the parts parent in the core ?. Maybe I am > missing something. I think the solution is to set the oops_panic_write of the root parent, instead of updating the flag of the mtd device itself (which is maybe a partition). Would this help? https://www.spinics.net/lists/linux-mtd/msg10454.html Thanks, Miquèl