Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1211395
| From | Akinobu Mita <akinobu.mita@gmail.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH v2 7/8] scsi: ufs-qcom: add debug prints for test bus |
| Date | 2015-08-22 05:10 +0200 |
| Message-ID | <q07lT-6ur-1@gated-at.bofh.it> (permalink) |
| References | <pZyxQ-6Jf-15@gated-at.bofh.it> <pZyxQ-6Jf-13@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
2015-08-20 22:59 GMT+09:00 Yaniv Gardi <ygardi@codeaurora.org>:
> +static bool ufs_qcom_testbus_cfg_is_ok(struct ufs_qcom_host *host)
> +{
> + if (host->testbus.select_major >= TSTBUS_MAX) {
> + dev_err(host->hba->dev,
> + "%s: UFS_CFG1[TEST_BUS_SEL} may not equal 0x%05X\n",
> + __func__, host->testbus.select_major);
> + return false;
> + }
> +
> + /*
> + * Not performing check for each individual select_major
> + * mappings of select_minor, since there is no harm in
> + * configuring a non-existent select_minor
> + */
> + if (host->testbus.select_major > 0x1F) {
select_minor should be checked instead of select_major here?
> + dev_err(host->hba->dev,
> + "%s: 0x%05X is not a legal testbus option\n",
> + __func__, host->testbus.select_minor);
> + return false;
> + }
> +
> + return true;
> +}
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH v2 7/8] scsi: ufs-qcom: add debug prints for test bus Yaniv Gardi <ygardi@codeaurora.org> - 2015-08-20 16:00 +0200
Re: [PATCH v2 7/8] scsi: ufs-qcom: add debug prints for test bus Akinobu Mita <akinobu.mita@gmail.com> - 2015-08-21 01:50 +0200
Re: [PATCH v2 7/8] scsi: ufs-qcom: add debug prints for test bus ygardi@codeaurora.org - 2015-08-22 00:30 +0200
Re: [PATCH v2 7/8] scsi: ufs-qcom: add debug prints for test bus Akinobu Mita <akinobu.mita@gmail.com> - 2015-08-22 05:00 +0200
Re: [PATCH v2 7/8] scsi: ufs-qcom: add debug prints for test bus Akinobu Mita <akinobu.mita@gmail.com> - 2015-08-22 05:10 +0200
Re: [PATCH v2 7/8] scsi: ufs-qcom: add debug prints for test bus ygardi@codeaurora.org - 2015-08-23 11:00 +0200
csiph-web