break;
                }
 
-               if (aux_dev->aux->is_remote)
-                       res = drm_dp_mst_dpcd_read(aux_dev->aux, pos, buf,
-                                                  todo);
-               else
-                       res = drm_dp_dpcd_read(aux_dev->aux, pos, buf, todo);
+               res = drm_dp_dpcd_read(aux_dev->aux, pos, buf, todo);
 
                if (res <= 0)
                        break;
                        break;
                }
 
-               if (aux_dev->aux->is_remote)
-                       res = drm_dp_mst_dpcd_write(aux_dev->aux, pos, buf,
-                                                   todo);
-               else
-                       res = drm_dp_dpcd_write(aux_dev->aux, pos, buf, todo);
+               res = drm_dp_dpcd_write(aux_dev->aux, pos, buf, todo);
 
                if (res <= 0)
                        break;
 
 #include <drm/drm_dp_helper.h>
 #include <drm/drm_print.h>
 #include <drm/drm_vblank.h>
+#include <drm/drm_dp_mst_helper.h>
 
 #include "drm_crtc_helper_internal.h"
 
 
 /**
  * drm_dp_dpcd_read() - read a series of bytes from the DPCD
- * @aux: DisplayPort AUX channel
+ * @aux: DisplayPort AUX channel (SST or MST)
  * @offset: address of the (first) register to read
  * @buffer: buffer to store the register values
  * @size: number of bytes in @buffer
         * We just have to do it before any DPCD access and hope that the
         * monitor doesn't power down exactly after the throw away read.
         */
-       ret = drm_dp_dpcd_access(aux, DP_AUX_NATIVE_READ, DP_DPCD_REV, buffer,
-                                1);
-       if (ret != 1)
-               goto out;
+       if (!aux->is_remote) {
+               ret = drm_dp_dpcd_access(aux, DP_AUX_NATIVE_READ, DP_DPCD_REV,
+                                        buffer, 1);
+               if (ret != 1)
+                       goto out;
+       }
 
-       ret = drm_dp_dpcd_access(aux, DP_AUX_NATIVE_READ, offset, buffer,
-                                size);
+       if (aux->is_remote)
+               ret = drm_dp_mst_dpcd_read(aux, offset, buffer, size);
+       else
+               ret = drm_dp_dpcd_access(aux, DP_AUX_NATIVE_READ, offset,
+                                        buffer, size);
 
 out:
        drm_dp_dump_access(aux, DP_AUX_NATIVE_READ, offset, buffer, ret);
 
 /**
  * drm_dp_dpcd_write() - write a series of bytes to the DPCD
- * @aux: DisplayPort AUX channel
+ * @aux: DisplayPort AUX channel (SST or MST)
  * @offset: address of the (first) register to write
  * @buffer: buffer containing the values to write
  * @size: number of bytes in @buffer
 {
        int ret;
 
-       ret = drm_dp_dpcd_access(aux, DP_AUX_NATIVE_WRITE, offset, buffer,
-                                size);
+       if (aux->is_remote)
+               ret = drm_dp_mst_dpcd_write(aux, offset, buffer, size);
+       else
+               ret = drm_dp_dpcd_access(aux, DP_AUX_NATIVE_WRITE, offset,
+                                        buffer, size);
+
        drm_dp_dump_access(aux, DP_AUX_NATIVE_WRITE, offset, buffer, ret);
        return ret;
 }