Division by zero in kernel in mcasp [4.4.19-ti-r41]

Dear All,

I am trying to develop a driver for the sta321mp audio processor. Many of the details are in this previous thread:

https://groups.google.com/forum/#!searchin/beagleboard/fakufaku|sort:relevance/beagleboard/pptZ_9PTqMY/Hy4Wh4kK0gUJ

I am now trying to port this driver a more recent version of the kernel, v4.4.19 at the moment. I have done that using the ti-linux-kernel-dev repository from Robert C Nelson but I am having some trouble with the davinci_mcasp_hw_params routine giving a division by zero in the kernel error.

I was wondering if it is a known bug in the current kernel, or something that I introduced. I have tried to look through the mcasp code to see where it could come from but have been unsuccessful so far.