From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752281AbbL1P4k (ORCPT ); Mon, 28 Dec 2015 10:56:40 -0500 Received: from gloria.sntech.de ([95.129.55.99]:60776 "EHLO gloria.sntech.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750803AbbL1P4h (ORCPT ); Mon, 28 Dec 2015 10:56:37 -0500 From: Heiko =?ISO-8859-1?Q?St=FCbner?= To: Arnd Bergmann Cc: Andy Yan , Alexandre Belloni , robh+dt@kernel.org, john.stultz@linaro.org, sjg@chromium.org, treding@nvidia.com, galak@codeaurora.org, ijc+devicetree@hellion.org.uk, wxt@rock-chips.com, catalin.marinas@arm.com, olof@lixom.net, geert+renesas@glider.be, linux-rockchip@lists.infradead.org, dbaryshkov@gmail.com, sre@kernel.org, jun.nie@linaro.org, pawel.moll@arm.com, will.deacon@arm.com, akpm@linux-foundation.org, devicetree@vger.kernel.org, linux@arm.linux.org.uk, gregkh@linuxfoundation.org, joel@jms.id.au, linux-arm-kernel@lists.infradead.org, lorenzo.pieralisi@arm.com, khilman@linaro.org, moritz.fischer@ettus.com, linux-kernel@vger.kernel.org, mark.rutland@arm.com Subject: Re: [PATCH v1 0/6] misc: add reboot mode driver Date: Mon, 28 Dec 2015 16:56:12 +0100 Message-ID: <3171716.cOpneyGyL8@diego> User-Agent: KMail/4.14.10 (Linux/4.2.0-1-amd64; KDE/4.14.14; x86_64; ; ) In-Reply-To: <3460735.DIRnhNBgbJ@wuerfel> References: <1450774949-23901-1-git-send-email-andy.yan@rock-chips.com> <567A6A01.8080305@rock-chips.com> <3460735.DIRnhNBgbJ@wuerfel> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Am Montag, 28. Dezember 2015, 16:28:55 schrieb Arnd Bergmann: > On Wednesday 23 December 2015 17:31:45 Andy Yan wrote: > > + { .compatible = "rockchip,reboot-mode-nvram", > > + .data = (void *)&reboot-mode-nvram }, > > + {}, > > +}; > > nvram is a complex topic by itself, because there are so many ways to do it. > I think what you are referring to here is a battery-backed memory that uses > one or more bytes at a fixed offset to store a particular piece of > information, as the drivers/char/nvram.c driver does. Maybe we should put > the reboot mode into that driver then? > > There are other nvram drivers at various places in the kernel, and each may > be slightly different, or completely different, like the EFIVARs driver on > UEFI firmware or the key/value store on Open Firmware, these probably need > their own methods and not share the generic driver. actually we now have drivers/nvmem/* that does that byte-wise addressing for eeproms, efuses, etc in a generic way. From mboxrd@z Thu Jan 1 00:00:00 1970 From: heiko@sntech.de (Heiko =?ISO-8859-1?Q?St=FCbner?=) Date: Mon, 28 Dec 2015 16:56:12 +0100 Subject: [PATCH v1 0/6] misc: add reboot mode driver In-Reply-To: <3460735.DIRnhNBgbJ@wuerfel> References: <1450774949-23901-1-git-send-email-andy.yan@rock-chips.com> <567A6A01.8080305@rock-chips.com> <3460735.DIRnhNBgbJ@wuerfel> Message-ID: <3171716.cOpneyGyL8@diego> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org Am Montag, 28. Dezember 2015, 16:28:55 schrieb Arnd Bergmann: > On Wednesday 23 December 2015 17:31:45 Andy Yan wrote: > > + { .compatible = "rockchip,reboot-mode-nvram", > > + .data = (void *)&reboot-mode-nvram }, > > + {}, > > +}; > > nvram is a complex topic by itself, because there are so many ways to do it. > I think what you are referring to here is a battery-backed memory that uses > one or more bytes at a fixed offset to store a particular piece of > information, as the drivers/char/nvram.c driver does. Maybe we should put > the reboot mode into that driver then? > > There are other nvram drivers at various places in the kernel, and each may > be slightly different, or completely different, like the EFIVARs driver on > UEFI firmware or the key/value store on Open Firmware, these probably need > their own methods and not share the generic driver. actually we now have drivers/nvmem/* that does that byte-wise addressing for eeproms, efuses, etc in a generic way.