On 5/7/23 21:39, Ping-Ke Shih wrote:
return type of dma_mapping_to_ep() is 'int' and it also possibly returns -EINVAL, and rtwusb->qsel_to_ep[] is used by qsel_to_ep() that also use 'int' as return type. Therefore, I would like to change type of qsel_to_ep[] from 'u8' to 'int'. Does it work to you?
Sasha and Ping-Ke,I have been testing using s8 rather than u8 for qsel_to_ep[], if you would like to keep the array the same size. All the values fit within the s8 limits.
Larry