Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2968020imu; Sun, 13 Jan 2019 14:50:49 -0800 (PST) X-Google-Smtp-Source: ALg8bN60yMpEwfiPkXCkAtZpJePgkSumpweQUVIgcy9oYkMFmuuc03lgQsPkbDUQY880vgV5jXiT X-Received: by 2002:a17:902:c05:: with SMTP id 5mr23301322pls.155.1547419849092; Sun, 13 Jan 2019 14:50:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547419849; cv=none; d=google.com; s=arc-20160816; b=Zzx4rSnLlD7mXE1wZ14zj0iOa6il5ccgeuoURcSI8xEZOGpOrRhWPcAvLpJYIhXls8 OgGTauhklqoYeqt/vq++cLDwBuPtvO/OpVcapXT0aSxmNWZH6RVFzUB4IIRsoyWxDSQf BFfMeoPlR8ojDLqzoEVmK++l6jzOGu8wbQuUOiv1GeQRHKhb7NVxu2BUr615Y6HdSEU3 C7yMr3pWYEC6w2Z4zA1jWSEx996jLfApF4+ogpKN4lGh/DmXhZXy87o6JqP91n7GlId9 GWFBiYbsRh11Pi2VYhnH6GKD9VM2qIFPv+RdMjPgNQETkih/9A8XCsrIy1lyX5g65OqP IE3A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:date:in-reply-to:references:subject :content-transfer-encoding:mime-version:cc:to:from:message-id :dkim-signature:dkim-signature; bh=1AqxfHCXzG8QusTyedU+zAqb2TmJJlUJlTMkSL/MNVQ=; b=TQHj8lME1aiZB0hAsAsFAyLeocvHE6MM5WjIEmVK/TZ+Q6DCjHAPBQ2WoEb9UuIUQu FhIN/bdlqR4A5qvulaoSY58Z0KaeawzzE1xusSJkc69tyXgXfYC1QcfXd0o2KsL/d+UY 7vVDz6L8rD+1hJ+gNn7XCqLqYWcsFh3gnxs860C/69tGYLFr51AUghI1gyMGO32h2b41 Nc0tokkw9co6Pq31jJPvvQCDiNNL458c+O6EyJYZ+fozjS+ptPeZYNoVZEFkPfQCfbrX rnyyPJZVh6tynEBWd/hlKbW1/fpeDVNE+v2yBRmHlTtGm5MT0Y0O3PLYulMN/3vSxzHY vVyQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@aj.id.au header.s=fm1 header.b=g7J5s6VE; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=R8DPXSer; 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 q24si15255414pgi.334.2019.01.13.14.50.02; Sun, 13 Jan 2019 14:50:49 -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; dkim=pass header.i=@aj.id.au header.s=fm1 header.b=g7J5s6VE; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=R8DPXSer; 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 S1726623AbfAMWqx (ORCPT + 99 others); Sun, 13 Jan 2019 17:46:53 -0500 Received: from out2-smtp.messagingengine.com ([66.111.4.26]:57213 "EHLO out2-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726565AbfAMWqw (ORCPT ); Sun, 13 Jan 2019 17:46:52 -0500 X-Greylist: delayed 428 seconds by postgrey-1.27 at vger.kernel.org; Sun, 13 Jan 2019 17:46:52 EST Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id BD6D628A59; Sun, 13 Jan 2019 17:39:43 -0500 (EST) Received: from web3 ([10.202.2.213]) by compute4.internal (MEProxy); Sun, 13 Jan 2019 17:39:43 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aj.id.au; h= message-id:from:to:cc:mime-version:content-transfer-encoding :content-type:subject:references:in-reply-to:date; s=fm1; bh=1Aq xfHCXzG8QusTyedU+zAqb2TmJJlUJlTMkSL/MNVQ=; b=g7J5s6VEh05GGxCNYuD Z/dkx7QeAA+w21+eMjfNWe5zoU//Zy4FYn8tz75B/BRqQ/gXACMvOcZrbHzV3mOF 6tn952bmvXzoBK6Rxjz8Kas+tJqS8huey62AT8pHZXK+9ypvYYmh3voOFvyaLt75 rah3TluI/bImsQcSdDtCooVehGWyPr1K14cwk1waPBF90vep8CM2gK6h3hdFKXj3 4yyl8v1bnj/QMZvzWeDKlf64y7PKesHmQy0npR97ZFw5x/Aqo3lvZgoeaem9nPpK Nz1NYDwxeNMn5Owt6sjfBnHL5nmgd2hrD5W/PVzDDxLK5pfYP6UuADdVls0XG5DH Vyg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm1; bh=1AqxfHCXzG8QusTyedU+zAqb2TmJJlUJlTMkSL/MN VQ=; b=R8DPXSerWmcZ9of+Z8tTvwkp6j6v8B3cNO2rzSTC/ZRMgSmV0t9BRkbxB XV9aHurUENiuU6yXl1r7Q/L+qF7CcLaP1qm0PKMMLAqz7KcRCZeh5FlQ9iz2IYUK 3/JVP+ZHzxr/ZoXtaM6+ZuTZetzABP+2W5qPoldcXxiYNIZCXbOzYI5a6slgvHR+ aUlcK0nmrZgkGtiL6JWgMtTmY5XMoP5akxouFhxSR9bKOYl8UZaH3ebEigUSz76/ 9PKd4guqPm72DX4K5VzHkG2iXWhsRW7Ul1Dw66af1o+zVtcxuaO2Hcu2ookCvZWN MtqkCmkgBBBBcNFqdk6oswrkIRDEg== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedtledrgedtgddtudcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfhuthenuceurghilhhouhhtmecufedt tdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujfgurhepkffhvfgggfgtof fufhgjffesthhqredtredtjeenucfhrhhomheptehnughrvgifucflvghffhgvrhihuceo rghnughrvgifsegrjhdrihgurdgruheqnecurfgrrhgrmhepmhgrihhlfhhrohhmpegrnh gurhgvfiesrghjrdhiugdrrghunecuvehluhhsthgvrhfuihiivgeptd X-ME-Proxy: Received: by mailuser.nyi.internal (Postfix, from userid 99) id C46969E564; Sun, 13 Jan 2019 17:39:40 -0500 (EST) Message-Id: <1547419180.2315773.1633559160.3F7D29CF@webmail.messagingengine.com> From: Andrew Jeffery To: Vijay Khemka , Rob Herring , Mark Rutland , Joel Stanley , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-aspeed@lists.ozlabs.org, linux-kernel@vger.kernel.org Cc: "openbmc @ lists . ozlabs . org" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" X-Mailer: MessagingEngine.com Webmail Interface - ajax-36e4bfd3 Subject: Re: [Potential Spoof] Re: [Potential Spoof] Re: [PATCH v2 4/4] ARM: dts: aspeed: Add lpc ctrl for Facebook References: <5972B57A-23D5-43F4-9476-229379B96C7C@fb.com> In-Reply-To: <5972B57A-23D5-43F4-9476-229379B96C7C@fb.com> Date: Mon, 14 Jan 2019 09:09:40 +1030 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Vijay, Sorry for providing an opinion so late, however: On Sat, 12 Jan 2019, at 11:03, Vijay Khemka wrote: > Joel, > Please merge these patches as it is required by facebook platform. >=20 > Regards > -Vijay >=20 > =EF=BB=BFOn 1/7/19, 11:25 AM, "Linux-aspeed on behalf of Vijay Khemka" aspeed-bounces+vijaykhemka=3Dfb.com@lists.ozlabs.org on behalf of=20 > vijaykhemka@fb.com> wrote: >=20 > Please merge these patches in upstream kernel. >=20=20=20=20=20 > Regards > -Vijay >=20=20=20=20=20 > On 12/20/18, 10:06 AM, "Linux-aspeed on behalf of Vijay Khemka"=20 > vijaykhemka@fb.com> wrote: >=20=20=20=20=20 > Joel, Can you please take care of these patches merge. >=20=20=20=20=20=20=20=20=20 > On 12/17/18, 12:04 PM, "Vijay Khemka" wrote: >=20=20=20=20=20=20=20=20=20 > Added lpc ctrl device to enable LPC clock in Facebook > Tiogapass device tree. >=20=20=20=20=20=20=20=20=20=20=20=20=20 > Signed-off-by: Vijay Khemka > --- > .../boot/dts/aspeed-bmc-facebook-tiogapass.dts | 17 ++++++ > +++++++++++ > 1 file changed, 17 insertions(+) >=20=20=20=20=20=20=20=20=20=20=20=20=20 > diff --git a/arch/arm/boot/dts/aspeed-bmc-facebook- > tiogapass.dts b/arch/arm/boot/dts/aspeed-bmc-facebook-tiogapass.dts > index 73e58a821613..ef7875b54562 100644 > --- a/arch/arm/boot/dts/aspeed-bmc-facebook-tiogapass.dts > +++ b/arch/arm/boot/dts/aspeed-bmc-facebook-tiogapass.dts > @@ -22,6 +22,17 @@ > reg =3D <0x80000000 0x20000000>; > }; >=20=20=20=20=20=20=20=20=20=20=20=20=20=20 > + reserved-memory { > + #address-cells =3D <1>; > + #size-cells =3D <1>; > + ranges; > + > + flash_memory: region@98000000 { > + no-map; > + reg =3D <0x98000000 0x00001000>; /* 4K */ > + }; > + }; > + > iio-hwmon { > compatible =3D "iio-hwmon"; > io-channels =3D <&adc 0>, <&adc 1>, <&adc 2>, <&adc 3>, > @@ -54,6 +65,12 @@ > }; > }; >=20=20=20=20=20=20=20=20=20=20=20=20=20=20 > +&lpc_ctrl { > + status =3D "okay"; > + memory-region =3D <&flash_memory>; > + flash =3D <&spi1>; > +}; > + > &uart1 { > // Host Console > status =3D "okay"; > --=20 > 2.17.1 I understand you just want to make your system work, but this is a broken way to do it. And that's not your fault - we should really fix the driver. I think the memory-region phandle should be optional and the driver should simply limit the options available to the ioctl to just the flash region if the memory node is not present (i.e. return an error if the memory region is requested but not described in the devicetree). Andrew