Hi Hermes,

kernel test robot noticed the following build warnings:

[auto build test WARNING on drm/drm-next]
[also build test WARNING on drm-exynos/exynos-drm-next drm-intel/for-linux-next 
drm-intel/for-linux-next-fixes drm-misc/drm-misc-next drm-tip/drm-tip 
linus/master v6.11 next-20240923]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]

url:    
https://github.com/intel-lab-lkp/linux/commits/Hermes-Wu/drm-bridge-it6505-fix-AUX-read-use-aux-fifo/20240923-175041
base:   git://anongit.freedesktop.org/drm/drm drm-next
patch link:    
https://lore.kernel.org/r/20240923094826.13471-3-Hermes.Wu%40ite.com.tw
patch subject: [PATCH v3 2/3] drm/bridge: it6505: HDCP CTS fail on repeater 
items
config: nios2-randconfig-r073-20240924 
(https://download.01.org/0day-ci/archive/20240924/202409241856.owgr1x3y-...@intel.com/config)
compiler: nios2-linux-gcc (GCC) 14.1.0

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 <l...@intel.com>
| Closes: 
https://lore.kernel.org/oe-kbuild-all/202409241856.owgr1x3y-...@intel.com/

smatch warnings:
drivers/gpu/drm/bridge/ite-it6505.c:2027 it6505_setup_sha1_input() warn: 
inconsistent indenting

vim +2027 drivers/gpu/drm/bridge/ite-it6505.c

b5c84a9edcd418 Allen Chen  2022-01-14  1996  
b5c84a9edcd418 Allen Chen  2022-01-14  1997  static int 
it6505_setup_sha1_input(struct it6505 *it6505, u8 *sha1_input)
b5c84a9edcd418 Allen Chen  2022-01-14  1998  {
d65feac281ab47 Pin-yen Lin 2023-07-18  1999     struct device *dev = 
it6505->dev;
b5c84a9edcd418 Allen Chen  2022-01-14  2000     u8 binfo[2];
9665163df60e16 Hermes Wu   2024-09-23  2001     int down_stream_count, err, 
msg_count = 0;
b5c84a9edcd418 Allen Chen  2022-01-14  2002  
b5c84a9edcd418 Allen Chen  2022-01-14  2003     err = it6505_get_dpcd(it6505, 
DP_AUX_HDCP_BINFO, binfo,
b5c84a9edcd418 Allen Chen  2022-01-14  2004                           
ARRAY_SIZE(binfo));
b5c84a9edcd418 Allen Chen  2022-01-14  2005  
b5c84a9edcd418 Allen Chen  2022-01-14  2006     if (err < 0) {
b5c84a9edcd418 Allen Chen  2022-01-14  2007             dev_err(dev, "Read 
binfo value Fail");
b5c84a9edcd418 Allen Chen  2022-01-14  2008             return err;
b5c84a9edcd418 Allen Chen  2022-01-14  2009     }
b5c84a9edcd418 Allen Chen  2022-01-14  2010  
b5c84a9edcd418 Allen Chen  2022-01-14  2011     down_stream_count = binfo[0] & 
0x7F;
b5c84a9edcd418 Allen Chen  2022-01-14  2012     DRM_DEV_DEBUG_DRIVER(dev, 
"binfo:0x%*ph", (int)ARRAY_SIZE(binfo),
b5c84a9edcd418 Allen Chen  2022-01-14  2013                          binfo);
b5c84a9edcd418 Allen Chen  2022-01-14  2014  
b5c84a9edcd418 Allen Chen  2022-01-14  2015     if ((binfo[0] & BIT(7)) || 
(binfo[1] & BIT(3))) {
b5c84a9edcd418 Allen Chen  2022-01-14  2016             dev_err(dev, "HDCP max 
cascade device exceed");
b5c84a9edcd418 Allen Chen  2022-01-14  2017             return 0;
b5c84a9edcd418 Allen Chen  2022-01-14  2018     }
b5c84a9edcd418 Allen Chen  2022-01-14  2019  
b5c84a9edcd418 Allen Chen  2022-01-14  2020     if (!down_stream_count ||
b5c84a9edcd418 Allen Chen  2022-01-14  2021         down_stream_count > 
MAX_HDCP_DOWN_STREAM_COUNT) {
b5c84a9edcd418 Allen Chen  2022-01-14  2022             dev_err(dev, "HDCP down 
stream count Error %d",
b5c84a9edcd418 Allen Chen  2022-01-14  2023                     
down_stream_count);
b5c84a9edcd418 Allen Chen  2022-01-14  2024             return 0;
b5c84a9edcd418 Allen Chen  2022-01-14  2025     }
9665163df60e16 Hermes Wu   2024-09-23  2026     err =  
it6505_get_ksvlist(it6505, sha1_input, down_stream_count * 5);
b5c84a9edcd418 Allen Chen  2022-01-14 @2027             if (err < 0)
b5c84a9edcd418 Allen Chen  2022-01-14  2028                     return err;
b5c84a9edcd418 Allen Chen  2022-01-14  2029  
9665163df60e16 Hermes Wu   2024-09-23  2030     msg_count += down_stream_count 
* 5;
b5c84a9edcd418 Allen Chen  2022-01-14  2031  
b5c84a9edcd418 Allen Chen  2022-01-14  2032     it6505->hdcp_down_stream_count 
= down_stream_count;
b5c84a9edcd418 Allen Chen  2022-01-14  2033     sha1_input[msg_count++] = 
binfo[0];
b5c84a9edcd418 Allen Chen  2022-01-14  2034     sha1_input[msg_count++] = 
binfo[1];
b5c84a9edcd418 Allen Chen  2022-01-14  2035  
b5c84a9edcd418 Allen Chen  2022-01-14  2036     it6505_set_bits(it6505, 
REG_HDCP_CTRL2, HDCP_EN_M0_READ,
b5c84a9edcd418 Allen Chen  2022-01-14  2037                     
HDCP_EN_M0_READ);
b5c84a9edcd418 Allen Chen  2022-01-14  2038  
b5c84a9edcd418 Allen Chen  2022-01-14  2039     err = 
regmap_bulk_read(it6505->regmap, REG_M0_0_7,
b5c84a9edcd418 Allen Chen  2022-01-14  2040                            
sha1_input + msg_count, 8);
b5c84a9edcd418 Allen Chen  2022-01-14  2041  
b5c84a9edcd418 Allen Chen  2022-01-14  2042     it6505_set_bits(it6505, 
REG_HDCP_CTRL2, HDCP_EN_M0_READ, 0x00);
b5c84a9edcd418 Allen Chen  2022-01-14  2043  
b5c84a9edcd418 Allen Chen  2022-01-14  2044     if (err < 0) {
b5c84a9edcd418 Allen Chen  2022-01-14  2045             dev_err(dev, " Warning, 
Read M value Fail");
b5c84a9edcd418 Allen Chen  2022-01-14  2046             return err;
b5c84a9edcd418 Allen Chen  2022-01-14  2047     }
b5c84a9edcd418 Allen Chen  2022-01-14  2048  
b5c84a9edcd418 Allen Chen  2022-01-14  2049     msg_count += 8;
b5c84a9edcd418 Allen Chen  2022-01-14  2050  
b5c84a9edcd418 Allen Chen  2022-01-14  2051     return msg_count;
b5c84a9edcd418 Allen Chen  2022-01-14  2052  }
b5c84a9edcd418 Allen Chen  2022-01-14  2053  

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

Reply via email to