SD->SDHC->SDXC changes the electrical signaling and the wire protocol.
Class 6 -> Class 10 is just a speed rating. It's possible that the RAZR M bus interface isn't fast enough to fully take advantage of the fastest SD cards out there, but they should still be able to interoperate.
If you...