Re: [PATCH v2 14/15] scsi: ufs: ufs-exynos: multi-host configuration for exynosauto

Bean Huo
2021-07-26T22:06:57Z

On Wed, 2021-07-14 at 16:11 +0900, Chanho Park wrote:
>
>
> +static int exynosauto_ufs_post_hce_enable(struct exynos_ufs *ufs)
>
> +{
>
> + struct ufs_hba *hba = ufs->hba;
>
> +
>
> + /* Enable Virtual Host #1 */
>
> + ufshcd_rmwl(hba, MHCTRL_EN_VH_MASK, MHCTRL_EN_VH(1), MHCTRL);
>
> + /* Default VH Transfer permissions */
>
> + hci_writel(ufs, 0x03FFE1FE, HCI_MH_ALLOWABLE_TRAN_OF_VH);
>
> + /* IID information is replaced in TASKTAG[7:5] instead of IID
> in UCD */
>
> + hci_writel(ufs, 0x1, HCI_MH_IID_IN_TASK_TAG);

Here you meant the IID in the UPIU header will be set according to the
Task_tag[7:5] value? and this will be done by your HW controller or SW
driver?

Kind regards,
Bean

>
> +
>
> + return 0;
>
> +}