mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-08-24 09:39:18 +00:00

The definition of tegra186_bpmp_ops was not updated in sync with the use
in bpmp.c:
drivers/firmware/tegra/bpmp.c:856:17: error: 'tegra186_bpmp_ops' undeclared here (not in a function); did you mean 'tegra_bpmp_ops'?
856 | .ops = &tegra186_bpmp_ops,
aarch64-linux-ld: drivers/firmware/tegra/bpmp.o:(.rodata+0x2f0): undefined reference to `tegra186_bpmp_ops'
Update the Makefile as needed.
There is really no need to hide the declaration based on the configuration,
so just expose it unconditionally so it never has to be updated again
for the next SoC.
Fixes: 94bce2cf7c
("firmware: tegra: bpmp: Add support on Tegra264")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Link: https://lore.kernel.org/r/20250711082409.1398497-1-arnd@kernel.org
Signed-off-by: Thierry Reding <treding@nvidia.com>
30 lines
1014 B
C
30 lines
1014 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
/*
|
|
* Copyright (c) 2018, NVIDIA CORPORATION.
|
|
*/
|
|
|
|
#ifndef __FIRMWARE_TEGRA_BPMP_PRIVATE_H
|
|
#define __FIRMWARE_TEGRA_BPMP_PRIVATE_H
|
|
|
|
#include <soc/tegra/bpmp.h>
|
|
|
|
struct tegra_bpmp_ops {
|
|
int (*init)(struct tegra_bpmp *bpmp);
|
|
void (*deinit)(struct tegra_bpmp *bpmp);
|
|
bool (*is_response_ready)(struct tegra_bpmp_channel *channel);
|
|
bool (*is_request_ready)(struct tegra_bpmp_channel *channel);
|
|
int (*ack_response)(struct tegra_bpmp_channel *channel);
|
|
int (*ack_request)(struct tegra_bpmp_channel *channel);
|
|
bool (*is_response_channel_free)(struct tegra_bpmp_channel *channel);
|
|
bool (*is_request_channel_free)(struct tegra_bpmp_channel *channel);
|
|
int (*post_response)(struct tegra_bpmp_channel *channel);
|
|
int (*post_request)(struct tegra_bpmp_channel *channel);
|
|
int (*ring_doorbell)(struct tegra_bpmp *bpmp);
|
|
int (*resume)(struct tegra_bpmp *bpmp);
|
|
};
|
|
|
|
extern const struct tegra_bpmp_ops tegra186_bpmp_ops;
|
|
extern const struct tegra_bpmp_ops tegra210_bpmp_ops;
|
|
|
|
#endif
|