@juergh Confirmed that the patch to drivers/thermal/gov_step_wise.c is indeed the root cause. In thermal_zone_trip_update, I changed:
hyst_temp = trip.temperature
To:
hyst_temp = trip_temp = trip.temperature;
This ensures trip_temp is not uninitialized when it's read. Also removed the (redundantly added) second call to get_tz_trend; fan operated correctly after installing recompiled kernel.
@juergh Confirmed that the patch to drivers/ thermal/ gov_step_ wise.c is indeed the root cause. In thermal_ zone_trip_ update, I changed:
hyst_temp = trip.temperature
To:
hyst_temp = trip_temp = trip.temperature;
This ensures trip_temp is not uninitialized when it's read. Also removed the (redundantly added) second call to get_tz_trend; fan operated correctly after installing recompiled kernel.