Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp41729imu; Thu, 8 Nov 2018 14:24:59 -0800 (PST) X-Google-Smtp-Source: AJdET5cESzxG4R3fA9W4yayw3nz6OzVIsUwvLfGXKP1bw25P0I0afE4YoyJUWyQZKT3+jye3le6l X-Received: by 2002:a17:902:6ac4:: with SMTP id i4-v6mr6319509plt.153.1541715899037; Thu, 08 Nov 2018 14:24:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541715899; cv=none; d=google.com; s=arc-20160816; b=ALproKR2hPbR6SzZrQ9MJ79A8aGOg5NJZu1O2mbEL/j9DHB3cH4t5OVqPaCt3MVFer kPr8CuI345abNm1ZviwaDToX5Ldb0SLIuJsQh6F4v8hW9pAMrtKojfe7NMeq3dMeZ/VD NS7xkIrY+3qzCELuSC9OWEv+ciXQxfo88WRnDuqUKL2WPrOkwkgVA+IjyJIcIgZBWp2X 1Jtmgggn1FUO4k14xwuQv90tDbjgT+wEFy3IIC8+lxPZ1/Vf0DehpGx+CmzMp5Kr3bVg GCni7ub+1Qf66Wxj64ai4OIpA725aEgZp93n/nYjGMqvTW4JxwCz1P7/9jPAwBTjeHJ/ b7Hw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=hLaOBJ17iXSJ0UWGzu/0bfElvuBGKdVgxFDG2iF8yH4=; b=v7mMSwf4W9eSmHXzvkDcGbVyBcnsAKJCY13m/EauNMgww/IOPtCy0sJglNNEPCMgRc S+j6eXCEElrPMKrOkZmMXUaPxHJoiq8WNo6qIj3hMKXevrzRmVFjkdKvIIDmy3oF5Que 8juvz26NfEu5Aeas2Idk/r6P2lghmEd6g9aWh4X/x5fbHg61I7Gm6yVDEsGxuFuBAK86 Fi2uMKqbv+ObUeC12urS0mVXu3DV3WW0a7WElGCWM/RiiHimB/5XMXJF/qppVdf6ZLOz fMAk3SZ9eeziEB1c/Fwj80aPQMR/OsxUmHY3YdNC2dsgSgJ5wDjqsJ9GMB4yguzUXwDx zXIQ== 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 ay4-v6si5562344plb.410.2018.11.08.14.24.43; Thu, 08 Nov 2018 14:24:59 -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 S1731469AbeKIIAV (ORCPT + 99 others); Fri, 9 Nov 2018 03:00:21 -0500 Received: from atrey.karlin.mff.cuni.cz ([195.113.26.193]:33449 "EHLO atrey.karlin.mff.cuni.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728225AbeKIHnC (ORCPT ); Fri, 9 Nov 2018 02:43:02 -0500 Received: by atrey.karlin.mff.cuni.cz (Postfix, from userid 512) id 9A772805FE; Thu, 8 Nov 2018 23:05:28 +0100 (CET) Date: Thu, 8 Nov 2018 23:05:30 +0100 From: Pavel Machek To: Greg Kroah-Hartman Cc: linux-kernel@vger.kernel.org, stable@vger.kernel.org, Pali =?iso-8859-1?Q?Roh=E1r?= , Tony Lindgren , Sasha Levin Subject: Re: [PATCH 3.18 053/144] ARM: OMAP2+: Fix n900 board name for legacy user space Message-ID: <20181108220530.GA17186@amd> References: <20181108215054.826084593@linuxfoundation.org> <20181108215058.676426973@linuxfoundation.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="mP3DRpeJDSE+ciuQ" Content-Disposition: inline In-Reply-To: <20181108215058.676426973@linuxfoundation.org> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --mP3DRpeJDSE+ciuQ Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu 2018-11-08 13:50:24, Greg Kroah-Hartman wrote: > 3.18-stable review patch. If anyone has any objections, please let me kn= ow. >=20 > ------------------ >=20 > [ Upstream commit 71c4f6027da75c6c1fd92e05b63108a09ec2b109 ] >=20 > N900 legacy user space apps need the board name in > /proc/cpuinfo to work properly for the Hardware entry. >=20 > For other boards this should not be an issues and they > can use the generic Hardware entry. >=20 > Let's fix the issue by adding a custom DT_MACHINE_START > for n900. >=20 > Tested-by: Pali Roh=E1r > Acked-by: Pavel Machek > Signed-off-by: Tony Lindgren > Signed-off-by: Sasha Levin I don't think this is good idea. N900 support changed a lot in the meantime. It may not be neccessary or may break something, not sure. Not comfortable with this w/o testing. Pavel > +++ b/arch/arm/mach-omap2/board-generic.c > @@ -77,6 +77,24 @@ MACHINE_END > #endif > =20 > #ifdef CONFIG_ARCH_OMAP3 > +/* Some boards need board name for legacy userspace in /proc/cpuinfo */ > +static const char *const n900_boards_compat[] __initconst =3D { > + "nokia,omap3-n900", > + NULL, > +}; > + > +DT_MACHINE_START(OMAP3_N900_DT, "Nokia RX-51 board") > + .reserve =3D omap_reserve, > + .map_io =3D omap3_map_io, > + .init_early =3D omap3430_init_early, > + .init_machine =3D omap_generic_init, > + .init_late =3D omap3_init_late, > + .init_time =3D omap3_sync32k_timer_init, > + .dt_compat =3D n900_boards_compat, > + .restart =3D omap3xxx_restart, > +MACHINE_END > + > +/* Generic omap3 boards, most boards can use these */ > static const char *const omap3_boards_compat[] __initconst =3D { > "ti,omap3430", > "ti,omap3", --=20 (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blo= g.html --mP3DRpeJDSE+ciuQ Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iEYEARECAAYFAlvksyoACgkQMOfwapXb+vL7gwCfbQDgyjld6+2FRkw7/9fPEmgi vJEAn2GxeSmu1Q1qNMY/NtgH5hzDTP7B =dimU -----END PGP SIGNATURE----- --mP3DRpeJDSE+ciuQ--