Open jmpallotta opened 4 years ago
I wonder if this is a firmware bug. Doesn't seem like tpart_vec should be returning with other bits set. I suspect the bug is new seeing otherwise it would have never worked at all.
But masking it in software seems like a good workaround. Again, a patch would be appreciated.
Patch is attached. Based upon latest on master branch.
Um, can you do it in git? And submit a PR?
How do I get permission to push to the repository? When I try to push a new branch, I get "permission denied". Sorry, this is the first time that I have contributed to this project and not sure how it works.
In switchtec_ntb_init_sndev, tpart_vec reads 0x0000FFFFFFFFFFE for partition 0 in a 2 partition configuration (2 NT endpoints). It seems as though the driver is expecting it to read 0x2. When 0x0000FFFFFFFFFFFE is read, the init fails the following check.
I suggest the following modification to tpart_vec. This would use the ep_map register to mask the valid bits within tpart_vec.