Skip to content

Commit f4aefc2

Browse files
Flavio Ceolincarlescufi
authored andcommitted
drivers: pcie: Remove deprecated pcie_probe
pcie_probe() was deprecated before 3.3 release. Time to remove it. Signed-off-by: Flavio Ceolin <[email protected]>
1 parent 4e91d8e commit f4aefc2

File tree

2 files changed

+0
-29
lines changed

2 files changed

+0
-29
lines changed

drivers/pcie/host/pcie.c

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -37,23 +37,6 @@ static bool prt_en;
3737

3838
/* functions documented in drivers/pcie/pcie.h */
3939

40-
bool pcie_probe(pcie_bdf_t bdf, pcie_id_t id)
41-
{
42-
uint32_t data;
43-
44-
data = pcie_conf_read(bdf, PCIE_CONF_ID);
45-
46-
if (!PCIE_ID_IS_VALID(data)) {
47-
return false;
48-
}
49-
50-
if (id == PCIE_ID_NONE) {
51-
return true;
52-
}
53-
54-
return (id == data);
55-
}
56-
5740
void pcie_set_cmd(pcie_bdf_t bdf, uint32_t bits, bool on)
5841
{
5942
uint32_t cmdstat;

include/zephyr/drivers/pcie/pcie.h

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -235,18 +235,6 @@ struct pcie_scan_opt {
235235
*/
236236
int pcie_scan(const struct pcie_scan_opt *opt);
237237

238-
/**
239-
* @brief Probe for the presence of a PCI(e) endpoint.
240-
*
241-
* @deprecated
242-
* @see DEVICE_PCIE_DECLARE
243-
*
244-
* @param bdf the endpoint to probe
245-
* @param id the endpoint ID to expect, or PCIE_ID_NONE for "any device"
246-
* @return true if the device is present, false otherwise
247-
*/
248-
__deprecated extern bool pcie_probe(pcie_bdf_t bdf, pcie_id_t id);
249-
250238
/**
251239
* @brief Get the MBAR at a specific BAR index
252240
* @param bdf the PCI(e) endpoint

0 commit comments

Comments
 (0)