Merge "diag: fix partial smd read"