arm: mm partial port from 3.14.x kernel