From: Simon Glass Date: Sat, 16 Feb 2019 20:24:45 -0700 Subject: [U-Boot] [PATCH v2 12/34] sandbox: Add a note about the growing state_info struct In-Reply-To: <20190217032507.124320-1-sjg@chromium.org> References: <20190217032507.124320-1-sjg@chromium.org> Message-ID: <20190217032507.124320-13-sjg@chromium.org> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de This struct is getting larger and in some cases is being used for things which would be better put into a driver. For example hwspinlock is not used outside of sandbox_hwspinlock.c. Add a note to encourage people to put things elsewhere. Signed-off-by: Simon Glass Reviewed-by: Bin Meng --- Changes in v2: None arch/sandbox/include/asm/state.h | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/arch/sandbox/include/asm/state.h b/arch/sandbox/include/asm/state.h index c724827f6cf..2d773d3fa6b 100644 --- a/arch/sandbox/include/asm/state.h +++ b/arch/sandbox/include/asm/state.h @@ -102,6 +102,15 @@ struct sandbox_state { ulong next_tag; /* Next address tag to allocate */ struct list_head mapmem_head; /* struct sandbox_mapmem_entry */ bool hwspinlock; /* Hardware Spinlock status */ + + /* + * This struct is getting large. + * + * Consider putting test data in driver-private structs, like + * sandbox_pch.c. + * + * If you add new members, please put them above this comment. + */ }; /* Minimum space we guarantee in the state FDT when calling read/write*/ -- 2.21.0.rc0.258.g878e2cd30e-goog