DistroKit Mailinglist
 help / color / mirror / Atom feed
From: Oleksij Rempel <o.rempel@pengutronix.de>
To: Ahmad Fatoum <a.fatoum@pengutronix.de>
Cc: distrokit@pengutronix.de
Subject: Re: [DistroKit] [PATCH v1 3/3] MIPS: kernel: malta: remove flash partition table
Date: Fri, 15 May 2020 09:58:01 +0200	[thread overview]
Message-ID: <20200515075801.3a6667uzwqbbvvwx@pengutronix.de> (raw)
In-Reply-To: <646feba5-c97b-f20b-26f6-c2c3753e4d87@pengutronix.de>


[-- Attachment #1.1: Type: text/plain, Size: 3941 bytes --]

On Fri, May 15, 2020 at 09:42:42AM +0200, Ahmad Fatoum wrote:
> Hello Oleksij,
> 
> On 4/28/20 7:47 PM, Oleksij Rempel wrote:
> > it should be provided by the bootloader
> 
> barebox already deletes an existing partitions node on fixup, see of_partition_fixup().
> Does this not work for you?

It is just warning made by analyzer. And in most cases it is indeed a bad
idea to put project configuration in to a mainline kernel dts.

> > 
> > Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de>
> > ---
> >  ...2-MIPS-malta-remove-fixed-partitions.patch | 45 +++++++++++++++++++
> >  .../platform-mips/patches/linux-5.6.2/series  |  3 +-
> >  2 files changed, 47 insertions(+), 1 deletion(-)
> >  create mode 100644 configs/platform-mips/patches/linux-5.6.2/0002-MIPS-malta-remove-fixed-partitions.patch
> > 
> > diff --git a/configs/platform-mips/patches/linux-5.6.2/0002-MIPS-malta-remove-fixed-partitions.patch b/configs/platform-mips/patches/linux-5.6.2/0002-MIPS-malta-remove-fixed-partitions.patch
> > new file mode 100644
> > index 0000000..a920a4b
> > --- /dev/null
> > +++ b/configs/platform-mips/patches/linux-5.6.2/0002-MIPS-malta-remove-fixed-partitions.patch
> > @@ -0,0 +1,45 @@
> > +From: Oleksij Rempel <o.rempel@pengutronix.de>
> > +Date: Tue, 28 Apr 2020 14:55:25 +0200
> > +Subject: [PATCH] MIPS: malta: remove fixed partitions
> > +
> > +this partition table should be provided by the bootloader
> > +
> > +Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de>
> > +---
> > + arch/mips/boot/dts/mti/malta.dts | 23 -----------------------
> > + 1 file changed, 23 deletions(-)
> > +
> > +diff --git a/arch/mips/boot/dts/mti/malta.dts b/arch/mips/boot/dts/mti/malta.dts
> > +index f03279b1cde7..7642a7c53a3a 100644
> > +--- a/arch/mips/boot/dts/mti/malta.dts
> > ++++ b/arch/mips/boot/dts/mti/malta.dts
> > +@@ -57,29 +57,6 @@ flash@1e000000 {
> > + 		bank-width = <4>;
> > + 		#address-cells = <1>;
> > + 		#size-cells = <1>;
> > +-
> > +-		partitions {
> > +-			compatible = "fixed-partitions";
> > +-			#address-cells = <1>;
> > +-			#size-cells = <1>;
> > +-
> > +-			yamon@0 {
> > +-				label = "YAMON";
> > +-				reg = <0x0 0x100000>;
> > +-				read-only;
> > +-			};
> > +-
> > +-			user-fs@100000 {
> > +-				label = "User FS";
> > +-				reg = <0x100000 0x2e0000>;
> > +-			};
> > +-
> > +-			board-config@3e0000 {
> > +-				label = "Board Config";
> > +-				reg = <0x3e0000 0x20000>;
> > +-				read-only;
> > +-			};
> > +-		};
> > + 	};
> > + 
> > + 	fpga_regs: system-controller@1f000000 {
> > diff --git a/configs/platform-mips/patches/linux-5.6.2/series b/configs/platform-mips/patches/linux-5.6.2/series
> > index dadc772..a885d05 100644
> > --- a/configs/platform-mips/patches/linux-5.6.2/series
> > +++ b/configs/platform-mips/patches/linux-5.6.2/series
> > @@ -1,4 +1,5 @@
> >  # generated by git-ptx-patches
> >  #tag:base --start-number 1
> >  0001-HACK-MIPS-disable-bogus-code.patch
> > -# 1aabf59e6345434460b53d6d21377e5e  - git-ptx-patches magic
> > +0002-MIPS-malta-remove-fixed-partitions.patch
> > +# 598cc0167d4c33db68cf711e58479093  - git-ptx-patches magic
> > 
> 
> -- 
> Pengutronix e.K.                           |                             |
> Steuerwalder Str. 21                       | http://www.pengutronix.de/  |
> 31137 Hildesheim, Germany                  | Phone: +49-5121-206917-0    |
> Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |
> 
> _______________________________________________
> DistroKit mailing list
> DistroKit@pengutronix.de
> 

-- 
Pengutronix e.K.                           |                             |
Steuerwalder Str. 21                       | http://www.pengutronix.de/  |
31137 Hildesheim, Germany                  | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

[-- Attachment #1.2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

[-- Attachment #2: Type: text/plain, Size: 96 bytes --]

_______________________________________________
DistroKit mailing list
DistroKit@pengutronix.de

  reply	other threads:[~2020-05-15  7:58 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-04-28 17:47 [DistroKit] [PATCH v1 1/3] MIPS: kernel: use LZO compression Oleksij Rempel
2020-04-28 17:47 ` [DistroKit] [PATCH v1 2/3] MIPS: platform: make sure KERNEL_LZOP is enabled Oleksij Rempel
2020-04-28 21:04   ` Robert Schwebel
2020-04-28 17:47 ` [DistroKit] [PATCH v1 3/3] MIPS: kernel: malta: remove flash partition table Oleksij Rempel
2020-04-28 21:04   ` Robert Schwebel
2020-05-15  7:42   ` Ahmad Fatoum
2020-05-15  7:58     ` Oleksij Rempel [this message]
2020-04-28 21:03 ` [DistroKit] [PATCH v1 1/3] MIPS: kernel: use LZO compression Robert Schwebel

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200515075801.3a6667uzwqbbvvwx@pengutronix.de \
    --to=o.rempel@pengutronix.de \
    --cc=a.fatoum@pengutronix.de \
    --cc=distrokit@pengutronix.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox