State-dependent diffusion: Thermodynamic consistency and its path