On 24-07-03 17:54:10, Jeuk Kim wrote: > The function ufs_is_mcq_reg() only evaluated the range of the > mcq_op_reg offset, which is defined as a constant. > Therefore, it was possible for ufs_is_mcq_reg() to return true > despite ufs device is configured to not support the mcq. > This could cause ufs_mmio_read()/ufs_mmio_write() to overflow the > buffer. So fix it. > > Fixes: 5c079578d2e4 ("hw/ufs: Add support MCQ of UFSHCI 4.0") > Signed-off-by: Jeuk Kim Reviewed-by: Minwoo Im