From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.2 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_2 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8080AC282DD for ; Thu, 9 Jan 2020 17:28:12 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 50ABC206ED for ; Thu, 9 Jan 2020 17:28:12 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388117AbgAIR2L convert rfc822-to-8bit (ORCPT ); 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