The devm alloc functions that we have may follow the Linux kernel model
where allocations are (almost always) automatically free()'d. However,
quite often we don't enable, in full U-Boot, the tracking and free()'ing
functionality. This in turn leads to memory leaks because the driver
author expects that since the functions have the same name as in the
Linux Kernel they have the same behavior. In turn we then get
functionally correct commits such as commit 00e1fed93c ("firmware:
ti_sci: Fix memory leaks in devm_ti_sci_get_of_resource") that manually
add these calls. Rather than manually tracking allocations and
implementing free()s, rework things so that we follow expectations by
enabling the DEVRES functionality (outside of xPL phases).
This turns DEVRES from a prompted symbol to a symbol that must be
select'd, and we now remove our non-managed alloc/free functions from
outside of xPL builds.
Reviewed-by: Michael Trimarchi <michael@amarulasolutions.com>
Signed-off-by: Tom Rini <trini@konsulko.com>
39 lines
999 B
Plaintext
39 lines
999 B
Plaintext
# SPDX-License-Identifier: GPL-2.0+
|
|
|
|
menuconfig SOC_TI
|
|
bool "TI SOC drivers support"
|
|
|
|
if SOC_TI
|
|
|
|
config TI_K3_NAVSS_RINGACC
|
|
bool "K3 Ring accelerator Sub System"
|
|
depends on ARCH_K3
|
|
select DEVRES
|
|
select MISC
|
|
help
|
|
Say y here to support the K3 AM65x Ring accelerator module.
|
|
The Ring Accelerator (RINGACC or RA) provides hardware acceleration
|
|
to enable straightforward passing of work between a producer
|
|
and a consumer. There is one RINGACC module per NAVSS on TI AM65x SoCs
|
|
If unsure, say N.
|
|
|
|
config TI_KEYSTONE_SERDES
|
|
bool "Keystone SerDes driver for ethernet"
|
|
depends on ARCH_KEYSTONE
|
|
help
|
|
SerDes driver for Keystone SoC used for ethernet support on TI
|
|
K2 platforms.
|
|
|
|
config TI_PRUSS
|
|
bool "Support for TI's K3 based Pruss driver"
|
|
depends on DM
|
|
depends on ARCH_K3
|
|
depends on OF_CONTROL
|
|
depends on SYSCON
|
|
help
|
|
Support for TI PRU-ICSSG subsystem.
|
|
Currently supported on AM65xx SoCs Say Y here to support the
|
|
Programmable Realtime Unit (PRU).
|
|
|
|
endif # SOC_TI
|