usb: renesas_usbhs: add usbhs_pipe_is_stall()
This is preparation for chapter 9 test Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Signed-off-by: Felipe Balbi <balbi@ti.com>
This commit is contained in:
committed by
Felipe Balbi
parent
4b81593201
commit
9cf1b06e90
@@ -257,6 +257,13 @@ void usbhs_pipe_stall(struct usbhs_pipe *pipe)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int usbhs_pipe_is_stall(struct usbhs_pipe *pipe)
|
||||||
|
{
|
||||||
|
u16 pid = usbhsp_pipectrl_get(pipe) & PID_MASK;
|
||||||
|
|
||||||
|
return (int)(pid == PID_STALL10 || pid == PID_STALL11);
|
||||||
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* pipe setup
|
* pipe setup
|
||||||
*/
|
*/
|
||||||
|
@@ -87,6 +87,7 @@ int usbhs_pipe_is_accessible(struct usbhs_pipe *pipe);
|
|||||||
void usbhs_pipe_enable(struct usbhs_pipe *pipe);
|
void usbhs_pipe_enable(struct usbhs_pipe *pipe);
|
||||||
void usbhs_pipe_disable(struct usbhs_pipe *pipe);
|
void usbhs_pipe_disable(struct usbhs_pipe *pipe);
|
||||||
void usbhs_pipe_stall(struct usbhs_pipe *pipe);
|
void usbhs_pipe_stall(struct usbhs_pipe *pipe);
|
||||||
|
int usbhs_pipe_is_stall(struct usbhs_pipe *pipe);
|
||||||
void usbhs_pipe_select_fifo(struct usbhs_pipe *pipe, struct usbhs_fifo *fifo);
|
void usbhs_pipe_select_fifo(struct usbhs_pipe *pipe, struct usbhs_fifo *fifo);
|
||||||
void usbhs_pipe_config_update(struct usbhs_pipe *pipe, u16 devsel,
|
void usbhs_pipe_config_update(struct usbhs_pipe *pipe, u16 devsel,
|
||||||
u16 epnum, u16 maxp);
|
u16 epnum, u16 maxp);
|
||||||
|
Reference in New Issue
Block a user