usb_host: implement sg_pcopy_* as TRACE dummies

The former implementation called 'TRACE_AND_STOP' which led to the
'usb_host_drv' to stop whenever such a function was called. Rather
than stopping return '0' and let the contrib code deal with this
situation.

Issue .
This commit is contained in:
Josef Söntgen 2021-04-29 13:30:51 +02:00 committed by Christian Helmuth
parent d0f084d449
commit 0f0edc0134

@ -602,6 +602,21 @@ bool sg_miter_skip(struct sg_mapping_iter *miter, off_t offset) { TRACE; return
bool sg_miter_next(struct sg_mapping_iter *miter) { TRACE; return false; }
void sg_miter_stop(struct sg_mapping_iter *miter) { TRACE; }
size_t sg_pcopy_from_buffer(struct scatterlist *sgl, unsigned int nents,
const void *buf, size_t buflen, off_t skip)
{
TRACE;
return 0;
}
size_t sg_pcopy_to_buffer(struct scatterlist *sgl, unsigned int nents,
void *buf, size_t buflen, off_t skip)
{
TRACE;
return 0;
}
/*************************
** linux/dma-mapping.h **
@ -982,18 +997,6 @@ int pci_reset_function_locked(struct pci_dev *dev)
return -1;
}
size_t sg_pcopy_from_buffer(struct scatterlist *sgl, unsigned int nents, const void *buf, size_t buflen, off_t skip)
{
TRACE_AND_STOP;
return -1;
}
size_t sg_pcopy_to_buffer(struct scatterlist *sgl, unsigned int nents, void *buf, size_t buflen, off_t skip)
{
TRACE_AND_STOP;
return -1;
}
struct device_node *usb_of_get_device_node(struct usb_device *hub, int port1)
{
TRACE;