From: kernel test robot <lkp@intel.com>
To: oe-kbuild@lists.linux.dev
Cc: lkp@intel.com
Subject: [ti:ti-rt-linux-6.1.y 45/107] drivers/media/i2c/ds90ub960.c:1780 ub960_init_tx_ports() error: uninitialized symbol 'pll_div'.
Date: Fri, 8 Sep 2023 00:31:54 +0800 [thread overview]
Message-ID: <202309080024.9FjHTyqa-lkp@intel.com> (raw)
BCC: lkp@intel.com
CC: oe-kbuild-all@lists.linux.dev
CC: vigneshr@ti.com
CC: nm@ti.com
CC: Vignesh Raghavendra <vigneshr@ti.com>
CC: Jai Luthra <j-luthra@ti.com>
tree: git://git.ti.com/ti-linux-kernel/ti-linux-kernel.git ti-rt-linux-6.1.y
head: 6c7b09058d06625c8386decb5573da65e3c4ccfc
commit: cf0136753f9892c69092d959eb86c8e06e706138 [45/107] media: i2c: add DS90UB960 driver
:::::: branch date: 2 days ago
:::::: commit date: 4 months ago
config: x86_64-randconfig-161-20230907 (https://download.01.org/0day-ci/archive/20230908/202309080024.9FjHTyqa-lkp@intel.com/config)
compiler: gcc-12 (Debian 12.2.0-14) 12.2.0
reproduce: (https://download.01.org/0day-ci/archive/20230908/202309080024.9FjHTyqa-lkp@intel.com/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Reported-by: Dan Carpenter <error27@gmail.com>
| Closes: https://lore.kernel.org/r/202309080024.9FjHTyqa-lkp@intel.com/
smatch warnings:
drivers/media/i2c/ds90ub960.c:1780 ub960_init_tx_ports() error: uninitialized symbol 'pll_div'.
vim +/pll_div +1780 drivers/media/i2c/ds90ub960.c
cf0136753f9892 Tomi Valkeinen 2023-05-09 1749
cf0136753f9892 Tomi Valkeinen 2023-05-09 1750 static int ub960_init_tx_ports(struct ub960_data *priv)
cf0136753f9892 Tomi Valkeinen 2023-05-09 1751 {
cf0136753f9892 Tomi Valkeinen 2023-05-09 1752 unsigned int nport;
cf0136753f9892 Tomi Valkeinen 2023-05-09 1753 u8 speed_select;
cf0136753f9892 Tomi Valkeinen 2023-05-09 1754 u8 pll_div;
cf0136753f9892 Tomi Valkeinen 2023-05-09 1755
cf0136753f9892 Tomi Valkeinen 2023-05-09 1756 /* TX ports */
cf0136753f9892 Tomi Valkeinen 2023-05-09 1757
cf0136753f9892 Tomi Valkeinen 2023-05-09 1758 switch (priv->tx_data_rate) {
cf0136753f9892 Tomi Valkeinen 2023-05-09 1759 case MHZ(1600):
cf0136753f9892 Tomi Valkeinen 2023-05-09 1760 default:
cf0136753f9892 Tomi Valkeinen 2023-05-09 1761 speed_select = 0;
cf0136753f9892 Tomi Valkeinen 2023-05-09 1762 pll_div = 0x10;
cf0136753f9892 Tomi Valkeinen 2023-05-09 1763 break;
cf0136753f9892 Tomi Valkeinen 2023-05-09 1764 case MHZ(1200):
cf0136753f9892 Tomi Valkeinen 2023-05-09 1765 speed_select = 1;
cf0136753f9892 Tomi Valkeinen 2023-05-09 1766 break;
cf0136753f9892 Tomi Valkeinen 2023-05-09 1767 case MHZ(800):
cf0136753f9892 Tomi Valkeinen 2023-05-09 1768 speed_select = 2;
cf0136753f9892 Tomi Valkeinen 2023-05-09 1769 pll_div = 0x10;
cf0136753f9892 Tomi Valkeinen 2023-05-09 1770 break;
cf0136753f9892 Tomi Valkeinen 2023-05-09 1771 case MHZ(400):
cf0136753f9892 Tomi Valkeinen 2023-05-09 1772 speed_select = 3;
cf0136753f9892 Tomi Valkeinen 2023-05-09 1773 pll_div = 0x10;
cf0136753f9892 Tomi Valkeinen 2023-05-09 1774 break;
cf0136753f9892 Tomi Valkeinen 2023-05-09 1775 }
cf0136753f9892 Tomi Valkeinen 2023-05-09 1776
cf0136753f9892 Tomi Valkeinen 2023-05-09 1777 ub960_write(priv, UB960_SR_CSI_PLL_CTL, speed_select);
cf0136753f9892 Tomi Valkeinen 2023-05-09 1778
cf0136753f9892 Tomi Valkeinen 2023-05-09 1779 if (priv->hw_data->is_ub9702) {
cf0136753f9892 Tomi Valkeinen 2023-05-09 @1780 ub960_write(priv, UB960_SR_CSI_PLL_DIV, pll_div);
cf0136753f9892 Tomi Valkeinen 2023-05-09 1781
cf0136753f9892 Tomi Valkeinen 2023-05-09 1782 switch (priv->tx_data_rate) {
cf0136753f9892 Tomi Valkeinen 2023-05-09 1783 case MHZ(1600):
cf0136753f9892 Tomi Valkeinen 2023-05-09 1784 default:
cf0136753f9892 Tomi Valkeinen 2023-05-09 1785 ub960_write_ind(priv, UB960_IND_TARGET_CSI_ANA, 0x92, 0x80);
cf0136753f9892 Tomi Valkeinen 2023-05-09 1786 ub960_write_ind(priv, UB960_IND_TARGET_CSI_ANA, 0x4b, 0x2a);
cf0136753f9892 Tomi Valkeinen 2023-05-09 1787 break;
cf0136753f9892 Tomi Valkeinen 2023-05-09 1788 case MHZ(800):
cf0136753f9892 Tomi Valkeinen 2023-05-09 1789 ub960_write_ind(priv, UB960_IND_TARGET_CSI_ANA, 0x92, 0x90);
cf0136753f9892 Tomi Valkeinen 2023-05-09 1790 ub960_write_ind(priv, UB960_IND_TARGET_CSI_ANA, 0x4f, 0x2a);
cf0136753f9892 Tomi Valkeinen 2023-05-09 1791 ub960_write_ind(priv, UB960_IND_TARGET_CSI_ANA, 0x4b, 0x2a);
cf0136753f9892 Tomi Valkeinen 2023-05-09 1792 break;
cf0136753f9892 Tomi Valkeinen 2023-05-09 1793 case MHZ(400):
cf0136753f9892 Tomi Valkeinen 2023-05-09 1794 ub960_write_ind(priv, UB960_IND_TARGET_CSI_ANA, 0x92, 0xa0);
cf0136753f9892 Tomi Valkeinen 2023-05-09 1795 break;
cf0136753f9892 Tomi Valkeinen 2023-05-09 1796 }
cf0136753f9892 Tomi Valkeinen 2023-05-09 1797 }
cf0136753f9892 Tomi Valkeinen 2023-05-09 1798
cf0136753f9892 Tomi Valkeinen 2023-05-09 1799 for (nport = 0; nport < priv->hw_data->num_txports; nport++) {
cf0136753f9892 Tomi Valkeinen 2023-05-09 1800 struct ub960_txport *txport = priv->txports[nport];
cf0136753f9892 Tomi Valkeinen 2023-05-09 1801
cf0136753f9892 Tomi Valkeinen 2023-05-09 1802 if (!txport)
cf0136753f9892 Tomi Valkeinen 2023-05-09 1803 continue;
cf0136753f9892 Tomi Valkeinen 2023-05-09 1804
cf0136753f9892 Tomi Valkeinen 2023-05-09 1805 ub960_init_tx_port(priv, txport);
cf0136753f9892 Tomi Valkeinen 2023-05-09 1806 }
cf0136753f9892 Tomi Valkeinen 2023-05-09 1807
cf0136753f9892 Tomi Valkeinen 2023-05-09 1808 return 0;
cf0136753f9892 Tomi Valkeinen 2023-05-09 1809 }
cf0136753f9892 Tomi Valkeinen 2023-05-09 1810
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
reply other threads:[~2023-09-07 16:33 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202309080024.9FjHTyqa-lkp@intel.com \
--to=lkp@intel.com \
--cc=oe-kbuild@lists.linux.dev \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.