From: Alex G. Date: Wed, 5 May 2021 14:20:16 -0500 Subject: [PATCH v4 2/5] psci: add features/reset2 support In-Reply-To: <20210420142126.GK1310@bill-the-cat> References: <20210331230156.1850191-1-igor.opaniuk@gmail.com> <20210331230156.1850191-3-igor.opaniuk@gmail.com> <20210420142126.GK1310@bill-the-cat> Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 4/20/21 9:21 AM, Tom Rini wrote: > On Thu, Apr 01, 2021 at 02:01:53AM +0300, Igor Opaniuk wrote: > >> From: Igor Opaniuk >> >> Adds support for: >> * PSCI_FEATURES, which was introduced in PSCI 1.0. This provides API >> that allows discovering whether a specific PSCI function is implemented >> and its features. >> * SYSTEM_RESET2, which was introduced in PSCI 1.1, which extends existing >> SYSTEM_RESET. It provides support for vendor-specific resets, providing >> reset_type as an additional param. >> >> For additional details visit [1]. >> >> Implementations of some functions were borrowed from Linux PSCI driver >> code [2]. >> >> [1] https://developer.arm.com/documentation/den0022/latest/ >> [2] drivers/firmware/psci/psci.c >> >> Signed-off-by: Igor Opaniuk > > Applied to u-boot/master, thanks! I'm seeing a build failure on stm32mp1 from this patch: drivers/firmware/psci.c:69:12: error: conflicting types for 'psci_features' 69 | static int psci_features(u32 psci_func_id) | ^~~~~~~~~~~~~ In file included from drivers/firmware/psci.c:23: ./arch/arm/include/asm/system.h:548:5: note: previous declaration of 'psci_features' was here 548 | s32 psci_features(u32 function_id, u32 psci_fid); | ^~~~~~~~~~~~~ make[2]: *** [scripts/Makefile.build:266: drivers/firmware/psci.o] Error 1 make[1]: *** [scripts/Makefile.build:419: drivers/firmware] Error 2