On Thu, Oct 02, 2014 at 10:21:31AM +0300, Peter Ujfalusi wrote:
On 10/01/2014 07:02 PM, Mark Brown wrote:
Applied both, thanks. Might be worth converting to regmap and using the cache code?
Yes, it is in my to-do list. One thing I'm a bit puzzled currently is on how to handle the serializer registers. Depending on the SoC the McASP is integrated in we can have different number of serializers, also in some SoC different McASP ports have different number of serializers. I do not want to have separate regmap struct for all of these (which would most probably means different compatible flag in DT). I also want to avoid wiring in some max limit of the serializer registers. But probably I need to do this at the end.
This sort of thing is why the access stuff is done with functions and get the device passed in, though max_register is still just a number. I don't know if that'll particularly help or not.