From ba16b6b0ad840ade0e325689d180e20bba82225d Mon Sep 17 00:00:00 2001 From: jsg Date: Wed, 24 Feb 2021 03:08:47 +0000 Subject: [PATCH] remove unused xhci_cmd_evaluate_ctx() ok mpi@ --- sys/dev/usb/xhci.c | 23 +---------------------- 1 file changed, 1 insertion(+), 22 deletions(-) diff --git a/sys/dev/usb/xhci.c b/sys/dev/usb/xhci.c index a016dd0e68d..e6f4a802dd7 100644 --- a/sys/dev/usb/xhci.c +++ b/sys/dev/usb/xhci.c @@ -1,4 +1,4 @@ -/* $OpenBSD: xhci.c,v 1.120 2020/12/24 14:11:38 mglocker Exp $ */ +/* $OpenBSD: xhci.c,v 1.121 2021/02/24 03:08:47 jsg Exp $ */ /* * Copyright (c) 2014-2015 Martin Pieuchot @@ -115,7 +115,6 @@ int xhci_cmd_configure_ep(struct xhci_softc *, uint8_t, uint64_t); int xhci_cmd_stop_ep(struct xhci_softc *, uint8_t, uint8_t); int xhci_cmd_slot_control(struct xhci_softc *, uint8_t *, int); int xhci_cmd_set_address(struct xhci_softc *, uint8_t, uint64_t, uint32_t); -int xhci_cmd_evaluate_ctx(struct xhci_softc *, uint8_t, uint64_t); #ifdef XHCI_DEBUG int xhci_cmd_noop(struct xhci_softc *); #endif @@ -2083,26 +2082,6 @@ xhci_cmd_set_address(struct xhci_softc *sc, uint8_t slot, uint64_t addr, return (error); } -int -xhci_cmd_evaluate_ctx(struct xhci_softc *sc, uint8_t slot, uint64_t addr) -{ - struct xhci_trb trb; - int error; - - DPRINTF(("%s: %s dev %u\n", DEVNAME(sc), __func__, slot)); - - trb.trb_paddr = htole64(addr); - trb.trb_status = 0; - trb.trb_flags = htole32( - XHCI_TRB_SET_SLOT(slot) | XHCI_CMD_EVAL_CTX - ); - - rw_enter_write(&sc->sc_cmd_lock); - error = xhci_command_submit(sc, &trb, XHCI_CMD_TIMEOUT); - rw_exit_write(&sc->sc_cmd_lock); - return (error); -} - #ifdef XHCI_DEBUG int xhci_cmd_noop(struct xhci_softc *sc) -- 2.20.1