int gear = max_t(u32, p->gear_rx, p->gear_tx);
        int lane = max_t(u32, p->lane_rx, p->lane_tx);
 
+       if (WARN_ONCE(gear > QCOM_UFS_MAX_GEAR,
+                     "ICC scaling for UFS Gear (%d) not supported. Using Gear (%d) bandwidth\n",
+                     gear, QCOM_UFS_MAX_GEAR))
+               gear = QCOM_UFS_MAX_GEAR;
+
+       if (WARN_ONCE(lane > QCOM_UFS_MAX_LANE,
+                     "ICC scaling for UFS Lane (%d) not supported. Using Lane (%d) bandwidth\n",
+                     lane, QCOM_UFS_MAX_LANE))
+               lane = QCOM_UFS_MAX_LANE;
+
        if (ufshcd_is_hs_mode(p)) {
                if (p->hs_rate == PA_HS_MODE_B)
                        return ufs_qcom_bw_table[MODE_HS_RB][gear][lane];