Inmate's 12-year sentence upheld for cellphone possession