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=-9.0 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING,SIGNED_OFF_BY,SPF_PASS,URIBL_BLOCKED autolearn=ham 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 D42F5C43381 for ; Mon, 18 Feb 2019 13:38:38 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id AB47921872 for ; Mon, 18 Feb 2019 13:38:38 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729863AbfBRNii (ORCPT ); Mon, 18 Feb 2019 08:38:38 -0500 Received: from 17.mo6.mail-out.ovh.net ([46.105.36.150]:50636 "EHLO 17.mo6.mail-out.ovh.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727483AbfBRNih (ORCPT ); Mon, 18 Feb 2019 08:38:37 -0500 X-Greylist: delayed 1805 seconds by postgrey-1.27 at vger.kernel.org; Mon, 18 Feb 2019 08:38:37 EST Received: from player698.ha.ovh.net (unknown [10.109.160.12]) by mo6.mail-out.ovh.net (Postfix) with ESMTP id F16401AFA07 for ; Mon, 18 Feb 2019 14:01:41 +0100 (CET) Received: from RCM-web4.webmail.mail.ovh.net (ip-194-187-74-233.konfederacka.maverick.com.pl [194.187.74.233]) (Authenticated sender: rafal@milecki.pl) by player698.ha.ovh.net (Postfix) with ESMTPSA id 694542CEACC2; Mon, 18 Feb 2019 13:01:37 +0000 (UTC) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Date: Mon, 18 Feb 2019 14:01:36 +0100 From: =?UTF-8?Q?Rafa=C5=82_Mi=C5=82ecki?= To: Amit Pundir Cc: Greg KH , Stable , Linus Walleij , Boris Brezillon Subject: Re: [PATCH for-4.14.y+] mtd: keep original flags for every struct mtd_info In-Reply-To: <1550493012-5959-3-git-send-email-amit.pundir@linaro.org> References: <1550493012-5959-1-git-send-email-amit.pundir@linaro.org> <1550493012-5959-3-git-send-email-amit.pundir@linaro.org> Message-ID: <4d716891dc69ca796a5d37ece67f1ae0@milecki.pl> X-Sender: rafal@milecki.pl User-Agent: Roundcube Webmail/1.3.8 X-Originating-IP: 194.187.74.233 X-Webmail-UserID: rafal@milecki.pl X-Ovh-Tracer-Id: 12444853149583117830 X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: -100 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedtledrledvgddugeduucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuqfggjfdpvefjgfevmfevgfenuceurghilhhouhhtmecuhedttdenucesvcftvggtihhpihgvnhhtshculddquddttddm Sender: stable-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org On 2019-02-18 13:30, Amit Pundir wrote: > From: Rafał Miłecki > > commit 1186af457cc186c5ed01708da71b1ffbdf0a2638 upstream. > > When allocating a new partition mtd subsystem runs internal tests in > the > allocate_partition(). They may result in modifying specified flags > (e.g. > dropping some /features/ like write access). > > Those constraints don't have to be necessary true for subpartitions. It > may happen parent partition isn't block aligned (effectively disabling > write access) while subpartition may fit blocks nicely. In such case > all > checks should be run again (starting with original flags value). > > Signed-off-by: Rafał Miłecki > Signed-off-by: Boris Brezillon > Signed-off-by: Amit Pundir > --- > I understand that it doesn't exactly fit into Stable rules but I didn't > want to assume anything, so sending it up for review. > Cherry-picked from lede tree https://git.lede-project.org/?p=source.git > and build tested on v4.14.97 and v4.19.19 for ARCH=arm/arm64 defconfig. This was a pre-requirement for some later-added *feature*. I see to reason to pick this one for stable. We won't be picking that feature (whatever it was), so what's the point?