[xlnx:master 59/60] drivers/media/i2c/adv7511-v4l2.c:2102:63: sparse: sparse: incorrect type in argument 1 (different base types)

kernel test robot lkp at intel.com
Tue Mar 2 17:35:50 GMT 2021


Hi Vishal,

First bad commit (maybe != root cause):

tree:   https://github.com/Xilinx/linux-xlnx master
head:   043f8a226a752a1dd11f7ff64cee6dbe7334d394
commit: c0b33b8ccd38096c815f2dd39746044d0aa079d3 [59/60] staging: xlnxsync: Fix the uapi header license
config: sparc64-randconfig-s031-20210302 (attached as .config)
compiler: sparc64-linux-gcc (GCC) 9.3.0
reproduce:
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # apt-get install sparse
        # sparse version: v0.6.3-241-geaceeafa-dirty
        # https://github.com/Xilinx/linux-xlnx/commit/c0b33b8ccd38096c815f2dd39746044d0aa079d3
        git remote add xlnx https://github.com/Xilinx/linux-xlnx
        git fetch --no-tags xlnx master
        git checkout c0b33b8ccd38096c815f2dd39746044d0aa079d3
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=sparc64 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp at intel.com>


"sparse warnings: (new ones prefixed by >>)"
   drivers/media/i2c/adv7511-v4l2.c:427:16: sparse: sparse: return expression in void function
>> drivers/media/i2c/adv7511-v4l2.c:2102:63: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected restricted __be32 const [usertype] *p @@     got unsigned int const [usertype] *[assigned] prop @@
   drivers/media/i2c/adv7511-v4l2.c:2102:63: sparse:     expected restricted __be32 const [usertype] *p
   drivers/media/i2c/adv7511-v4l2.c:2102:63: sparse:     got unsigned int const [usertype] *[assigned] prop
   drivers/media/i2c/adv7511-v4l2.c:2106:65: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected restricted __be32 const [usertype] *p @@     got unsigned int const [usertype] *[assigned] prop @@
   drivers/media/i2c/adv7511-v4l2.c:2106:65: sparse:     expected restricted __be32 const [usertype] *p
   drivers/media/i2c/adv7511-v4l2.c:2106:65: sparse:     got unsigned int const [usertype] *[assigned] prop
   drivers/media/i2c/adv7511-v4l2.c:2110:62: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected restricted __be32 const [usertype] *p @@     got unsigned int const [usertype] *[assigned] prop @@
   drivers/media/i2c/adv7511-v4l2.c:2110:62: sparse:     expected restricted __be32 const [usertype] *p
   drivers/media/i2c/adv7511-v4l2.c:2110:62: sparse:     got unsigned int const [usertype] *[assigned] prop
   drivers/media/i2c/adv7511-v4l2.c:2117:55: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected restricted __be32 const [usertype] *p @@     got unsigned int const [usertype] *[assigned] prop @@
   drivers/media/i2c/adv7511-v4l2.c:2117:55: sparse:     expected restricted __be32 const [usertype] *p
   drivers/media/i2c/adv7511-v4l2.c:2117:55: sparse:     got unsigned int const [usertype] *[assigned] prop
   drivers/media/i2c/adv7511-v4l2.c:2121:55: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected restricted __be32 const [usertype] *p @@     got unsigned int const [usertype] *[assigned] prop @@
   drivers/media/i2c/adv7511-v4l2.c:2121:55: sparse:     expected restricted __be32 const [usertype] *p
   drivers/media/i2c/adv7511-v4l2.c:2121:55: sparse:     got unsigned int const [usertype] *[assigned] prop
   drivers/media/i2c/adv7511-v4l2.c:2125:55: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected restricted __be32 const [usertype] *p @@     got unsigned int const [usertype] *[assigned] prop @@
   drivers/media/i2c/adv7511-v4l2.c:2125:55: sparse:     expected restricted __be32 const [usertype] *p
   drivers/media/i2c/adv7511-v4l2.c:2125:55: sparse:     got unsigned int const [usertype] *[assigned] prop
   drivers/media/i2c/adv7511-v4l2.c:2129:55: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected restricted __be32 const [usertype] *p @@     got unsigned int const [usertype] *[assigned] prop @@
   drivers/media/i2c/adv7511-v4l2.c:2129:55: sparse:     expected restricted __be32 const [usertype] *p
   drivers/media/i2c/adv7511-v4l2.c:2129:55: sparse:     got unsigned int const [usertype] *[assigned] prop
   drivers/media/i2c/adv7511-v4l2.c:2133:55: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected restricted __be32 const [usertype] *p @@     got unsigned int const [usertype] *[assigned] prop @@
   drivers/media/i2c/adv7511-v4l2.c:2133:55: sparse:     expected restricted __be32 const [usertype] *p
   drivers/media/i2c/adv7511-v4l2.c:2133:55: sparse:     got unsigned int const [usertype] *[assigned] prop
   drivers/media/i2c/adv7511-v4l2.c:2137:55: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected restricted __be32 const [usertype] *p @@     got unsigned int const [usertype] *[assigned] prop @@
   drivers/media/i2c/adv7511-v4l2.c:2137:55: sparse:     expected restricted __be32 const [usertype] *p
   drivers/media/i2c/adv7511-v4l2.c:2137:55: sparse:     got unsigned int const [usertype] *[assigned] prop
   drivers/media/i2c/adv7511-v4l2.c:2141:55: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected restricted __be32 const [usertype] *p @@     got unsigned int const [usertype] *[assigned] prop @@
   drivers/media/i2c/adv7511-v4l2.c:2141:55: sparse:     expected restricted __be32 const [usertype] *p
   drivers/media/i2c/adv7511-v4l2.c:2141:55: sparse:     got unsigned int const [usertype] *[assigned] prop
   drivers/media/i2c/adv7511-v4l2.c:2151:42: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected restricted __be32 const [usertype] *p @@     got unsigned int const [usertype] *[assigned] prop @@
   drivers/media/i2c/adv7511-v4l2.c:2151:42: sparse:     expected restricted __be32 const [usertype] *p
   drivers/media/i2c/adv7511-v4l2.c:2151:42: sparse:     got unsigned int const [usertype] *[assigned] prop
   drivers/media/i2c/adv7511-v4l2.c:2157:55: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected restricted __be32 const [usertype] *p @@     got unsigned int const [usertype] *[assigned] prop @@
   drivers/media/i2c/adv7511-v4l2.c:2157:55: sparse:     expected restricted __be32 const [usertype] *p
   drivers/media/i2c/adv7511-v4l2.c:2157:55: sparse:     got unsigned int const [usertype] *[assigned] prop
   drivers/media/i2c/adv7511-v4l2.c:2161:55: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected restricted __be32 const [usertype] *p @@     got unsigned int const [usertype] *[assigned] prop @@
   drivers/media/i2c/adv7511-v4l2.c:2161:55: sparse:     expected restricted __be32 const [usertype] *p
   drivers/media/i2c/adv7511-v4l2.c:2161:55: sparse:     got unsigned int const [usertype] *[assigned] prop
   drivers/media/i2c/adv7511-v4l2.c:2165:55: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected restricted __be32 const [usertype] *p @@     got unsigned int const [usertype] *[assigned] prop @@
   drivers/media/i2c/adv7511-v4l2.c:2165:55: sparse:     expected restricted __be32 const [usertype] *p
   drivers/media/i2c/adv7511-v4l2.c:2165:55: sparse:     got unsigned int const [usertype] *[assigned] prop
   drivers/media/i2c/adv7511-v4l2.c:2169:55: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected restricted __be32 const [usertype] *p @@     got unsigned int const [usertype] *[assigned] prop @@
   drivers/media/i2c/adv7511-v4l2.c:2169:55: sparse:     expected restricted __be32 const [usertype] *p
   drivers/media/i2c/adv7511-v4l2.c:2169:55: sparse:     got unsigned int const [usertype] *[assigned] prop
   drivers/media/i2c/adv7511-v4l2.c:2174:63: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected restricted __be32 const [usertype] *p @@     got unsigned int const [usertype] *[assigned] prop @@
   drivers/media/i2c/adv7511-v4l2.c:2174:63: sparse:     expected restricted __be32 const [usertype] *p
   drivers/media/i2c/adv7511-v4l2.c:2174:63: sparse:     got unsigned int const [usertype] *[assigned] prop
   drivers/media/i2c/adv7511-v4l2.c:2181:72: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected restricted __be32 const [usertype] *p @@     got unsigned int const [usertype] *[assigned] prop @@
   drivers/media/i2c/adv7511-v4l2.c:2181:72: sparse:     expected restricted __be32 const [usertype] *p
   drivers/media/i2c/adv7511-v4l2.c:2181:72: sparse:     got unsigned int const [usertype] *[assigned] prop
   drivers/media/i2c/adv7511-v4l2.c:2186:72: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected restricted __be32 const [usertype] *p @@     got unsigned int const [usertype] *[assigned] prop @@
   drivers/media/i2c/adv7511-v4l2.c:2186:72: sparse:     expected restricted __be32 const [usertype] *p
   drivers/media/i2c/adv7511-v4l2.c:2186:72: sparse:     got unsigned int const [usertype] *[assigned] prop
   drivers/media/i2c/adv7511-v4l2.c:2191:72: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected restricted __be32 const [usertype] *p @@     got unsigned int const [usertype] *[assigned] prop @@
   drivers/media/i2c/adv7511-v4l2.c:2191:72: sparse:     expected restricted __be32 const [usertype] *p
   drivers/media/i2c/adv7511-v4l2.c:2191:72: sparse:     got unsigned int const [usertype] *[assigned] prop
   drivers/media/i2c/adv7511-v4l2.c:2196:72: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected restricted __be32 const [usertype] *p @@     got unsigned int const [usertype] *[assigned] prop @@
   drivers/media/i2c/adv7511-v4l2.c:2196:72: sparse:     expected restricted __be32 const [usertype] *p
   drivers/media/i2c/adv7511-v4l2.c:2196:72: sparse:     got unsigned int const [usertype] *[assigned] prop
   drivers/media/i2c/adv7511-v4l2.c:2201:72: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected restricted __be32 const [usertype] *p @@     got unsigned int const [usertype] *[assigned] prop @@
   drivers/media/i2c/adv7511-v4l2.c:2201:72: sparse:     expected restricted __be32 const [usertype] *p
   drivers/media/i2c/adv7511-v4l2.c:2201:72: sparse:     got unsigned int const [usertype] *[assigned] prop
   drivers/media/i2c/adv7511-v4l2.c:2206:72: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected restricted __be32 const [usertype] *p @@     got unsigned int const [usertype] *[assigned] prop @@
   drivers/media/i2c/adv7511-v4l2.c:2206:72: sparse:     expected restricted __be32 const [usertype] *p
   drivers/media/i2c/adv7511-v4l2.c:2206:72: sparse:     got unsigned int const [usertype] *[assigned] prop
   drivers/media/i2c/adv7511-v4l2.c:2211:72: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected restricted __be32 const [usertype] *p @@     got unsigned int const [usertype] *[assigned] prop @@
   drivers/media/i2c/adv7511-v4l2.c:2211:72: sparse:     expected restricted __be32 const [usertype] *p
   drivers/media/i2c/adv7511-v4l2.c:2211:72: sparse:     got unsigned int const [usertype] *[assigned] prop
   drivers/media/i2c/adv7511-v4l2.c:2216:72: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected restricted __be32 const [usertype] *p @@     got unsigned int const [usertype] *[assigned] prop @@
   drivers/media/i2c/adv7511-v4l2.c:2216:72: sparse:     expected restricted __be32 const [usertype] *p
   drivers/media/i2c/adv7511-v4l2.c:2216:72: sparse:     got unsigned int const [usertype] *[assigned] prop
   drivers/media/i2c/adv7511-v4l2.c:2221:72: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected restricted __be32 const [usertype] *p @@     got unsigned int const [usertype] *[assigned] prop @@
   drivers/media/i2c/adv7511-v4l2.c:2221:72: sparse:     expected restricted __be32 const [usertype] *p
   drivers/media/i2c/adv7511-v4l2.c:2221:72: sparse:     got unsigned int const [usertype] *[assigned] prop
   drivers/media/i2c/adv7511-v4l2.c:2226:72: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected restricted __be32 const [usertype] *p @@     got unsigned int const [usertype] *[assigned] prop @@
   drivers/media/i2c/adv7511-v4l2.c:2226:72: sparse:     expected restricted __be32 const [usertype] *p
   drivers/media/i2c/adv7511-v4l2.c:2226:72: sparse:     got unsigned int const [usertype] *[assigned] prop
   drivers/media/i2c/adv7511-v4l2.c:2231:72: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected restricted __be32 const [usertype] *p @@     got unsigned int const [usertype] *[assigned] prop @@
   drivers/media/i2c/adv7511-v4l2.c:2231:72: sparse:     expected restricted __be32 const [usertype] *p
   drivers/media/i2c/adv7511-v4l2.c:2231:72: sparse:     got unsigned int const [usertype] *[assigned] prop
   drivers/media/i2c/adv7511-v4l2.c:2236:72: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected restricted __be32 const [usertype] *p @@     got unsigned int const [usertype] *[assigned] prop @@
   drivers/media/i2c/adv7511-v4l2.c:2236:72: sparse:     expected restricted __be32 const [usertype] *p
   drivers/media/i2c/adv7511-v4l2.c:2236:72: sparse:     got unsigned int const [usertype] *[assigned] prop

vim +2102 drivers/media/i2c/adv7511-v4l2.c

5a544cce2177fe drivers/media/i2c/adv7511.c      Hans Verkuil        2013-08-23  2086  
ec8cdd50aa6131 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15  2087  
ec8cdd50aa6131 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15  2088  static void adv7511_get_ofdt_config(struct i2c_client *client,
ec8cdd50aa6131 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15  2089  	struct adv7511_state *state)
ec8cdd50aa6131 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15  2090  {
ec8cdd50aa6131 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15  2091  	struct device_node *dn = client->dev.of_node;
ec8cdd50aa6131 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15  2092  	struct device_node *np;
ec8cdd50aa6131 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15  2093  	struct adv7511_config *config = &state->cfg;
ec8cdd50aa6131 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15  2094  	u32 const *prop;
ec8cdd50aa6131 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15  2095  	int size;
ec8cdd50aa6131 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15  2096  	bool vin_loaded, vout_loaded;
ec8cdd50aa6131 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15  2097  
ec8cdd50aa6131 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15  2098  	vin_loaded = vout_loaded = false;
ec8cdd50aa6131 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15  2099  
ec8cdd50aa6131 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15  2100  	prop = of_get_property(dn, "edid-addr", &size);
ec8cdd50aa6131 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15  2101  	if (prop)
ec8cdd50aa6131 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 @2102  		state->pdata.i2c_edid = (uint8_t)be32_to_cpup(prop);
ec8cdd50aa6131 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15  2103  
ec8cdd50aa6131 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15  2104  	prop = of_get_property(dn, "pktmem-addr", &size);
ec8cdd50aa6131 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15  2105  	if (prop)
ec8cdd50aa6131 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15  2106  		state->pdata.i2c_pktmem = (uint8_t)be32_to_cpup(prop);
ec8cdd50aa6131 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15  2107  
ec8cdd50aa6131 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15  2108  	prop = of_get_property(dn, "cec-addr", &size);
ec8cdd50aa6131 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15  2109  	if (prop)
ec8cdd50aa6131 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15  2110  		state->pdata.i2c_cec = (uint8_t)be32_to_cpup(prop);
ec8cdd50aa6131 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15  2111  
ec8cdd50aa6131 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15  2112  	np = of_find_node_by_name(dn, "video-input");
ec8cdd50aa6131 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15  2113  	if (np) {
ec8cdd50aa6131 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15  2114  		prop = of_get_property(np, "input-id", &size);
ec8cdd50aa6131 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15  2115  		if (prop)
ec8cdd50aa6131 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15  2116  			config->in_params.input_id =
ec8cdd50aa6131 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15  2117  				(uint8_t)be32_to_cpup(prop);
ec8cdd50aa6131 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15  2118  		prop = of_get_property(np, "input-style", &size);
ec8cdd50aa6131 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15  2119  		if (prop)
ec8cdd50aa6131 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15  2120  			config->in_params.input_style =
ec8cdd50aa6131 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15  2121  				(uint8_t)be32_to_cpup(prop);
ec8cdd50aa6131 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15  2122  		prop = of_get_property(np, "input-color-depth", &size);
ec8cdd50aa6131 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15  2123  		if (prop)
ec8cdd50aa6131 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15  2124  			config->in_params.input_color_depth =
ec8cdd50aa6131 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15  2125  				(uint8_t)be32_to_cpup(prop);
ec8cdd50aa6131 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15  2126  		prop = of_get_property(np, "bit-justification", &size);
ec8cdd50aa6131 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15  2127  		if (prop)
ec8cdd50aa6131 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15  2128  			config->in_params.bit_justification =
ec8cdd50aa6131 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15  2129  				(uint8_t)be32_to_cpup(prop);
ec8cdd50aa6131 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15  2130  		prop = of_get_property(np, "hsync-polarity", &size);
ec8cdd50aa6131 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15  2131  		if (prop)
ec8cdd50aa6131 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15  2132  			config->in_params.hsync_polarity =
ec8cdd50aa6131 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15  2133  				(uint8_t)be32_to_cpup(prop);
ec8cdd50aa6131 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15  2134  		prop = of_get_property(np, "vsync-polarity", &size);
ec8cdd50aa6131 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15  2135  		if (prop)
ec8cdd50aa6131 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15  2136  			config->in_params.vsync_polarity =
ec8cdd50aa6131 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15  2137  				(uint8_t)be32_to_cpup(prop);
ec8cdd50aa6131 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15  2138  		prop = of_get_property(np, "clock-delay", &size);
ec8cdd50aa6131 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15  2139  		if (prop)
ec8cdd50aa6131 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15  2140  			config->in_params.clock_delay =
ec8cdd50aa6131 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15  2141  				(uint8_t)be32_to_cpup(prop);
ec8cdd50aa6131 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15  2142  		vin_loaded = true;
ec8cdd50aa6131 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15  2143  	} else {
ec8cdd50aa6131 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15  2144  		pr_info("No video input configuration, using device default\n");
ec8cdd50aa6131 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15  2145  	}
ec8cdd50aa6131 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15  2146  
ec8cdd50aa6131 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15  2147  	np = of_find_node_by_name(dn, "video-output");
ec8cdd50aa6131 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15  2148  	if (np) {
ec8cdd50aa6131 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15  2149  		prop = of_get_property(np, "hdmi-mode", &size);
ec8cdd50aa6131 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15  2150  		if (prop) {
ec8cdd50aa6131 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15  2151  			if (be32_to_cpup(prop) == 1)
ec8cdd50aa6131 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15  2152  				config->out_params.hdmi_mode = true;
ec8cdd50aa6131 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15  2153  		}
ec8cdd50aa6131 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15  2154  		prop = of_get_property(np, "output-format", &size);
ec8cdd50aa6131 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15  2155  		if (prop)
ec8cdd50aa6131 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15  2156  			config->out_params.output_format =
ec8cdd50aa6131 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15  2157  				(uint8_t)be32_to_cpup(prop);
ec8cdd50aa6131 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15  2158  		prop = of_get_property(np, "output-color-space", &size);
ec8cdd50aa6131 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15  2159  		if (prop)
ec8cdd50aa6131 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15  2160  			config->out_params.output_color_space =
ec8cdd50aa6131 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15  2161  				(uint8_t)be32_to_cpup(prop);
ec8cdd50aa6131 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15  2162  		prop = of_get_property(np, "up-conversion", &size);
ec8cdd50aa6131 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15  2163  		if (prop)
ec8cdd50aa6131 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15  2164  			config->out_params.up_conversion =
ec8cdd50aa6131 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15  2165  				(uint8_t)be32_to_cpup(prop);
ec8cdd50aa6131 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15  2166  		prop = of_get_property(np, "csc-enable", &size);
ec8cdd50aa6131 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15  2167  		if (prop)
ec8cdd50aa6131 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15  2168  			config->out_params.csc_enable =
ec8cdd50aa6131 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15  2169  				(uint8_t)be32_to_cpup(prop);
ec8cdd50aa6131 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15  2170  		if (config->out_params.csc_enable) {
ec8cdd50aa6131 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15  2171  			prop = of_get_property(np, "csc-scaling-factor", &size);
ec8cdd50aa6131 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15  2172  			if (prop) {
ec8cdd50aa6131 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15  2173  				config->out_params.csc_scaling_factor =
ec8cdd50aa6131 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15  2174  					(uint8_t)be32_to_cpup(prop);
ec8cdd50aa6131 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15  2175  			}
ec8cdd50aa6131 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15  2176  			np = of_find_node_by_name(dn, "csc-coefficients");
ec8cdd50aa6131 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15  2177  			if (np) {
ec8cdd50aa6131 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15  2178  				prop = of_get_property(np, "a1", &size);
ec8cdd50aa6131 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15  2179  				if (prop) {
ec8cdd50aa6131 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15  2180  					config->out_params.csc_coeff.a1 =
ec8cdd50aa6131 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15  2181  						(uint16_t)be32_to_cpup(prop);
ec8cdd50aa6131 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15  2182  				}
ec8cdd50aa6131 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15  2183  				prop = of_get_property(np, "a2", &size);
ec8cdd50aa6131 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15  2184  				if (prop) {
ec8cdd50aa6131 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15  2185  					config->out_params.csc_coeff.a2 =
ec8cdd50aa6131 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15  2186  						(uint16_t)be32_to_cpup(prop);
ec8cdd50aa6131 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15  2187  				}
ec8cdd50aa6131 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15  2188  				prop = of_get_property(np, "a3", &size);
ec8cdd50aa6131 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15  2189  				if (prop) {
ec8cdd50aa6131 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15  2190  					config->out_params.csc_coeff.a3 =
ec8cdd50aa6131 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15  2191  						(uint16_t)be32_to_cpup(prop);
ec8cdd50aa6131 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15  2192  				}
ec8cdd50aa6131 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15  2193  				prop = of_get_property(np, "a4", &size);
ec8cdd50aa6131 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15  2194  				if (prop) {
ec8cdd50aa6131 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15  2195  					config->out_params.csc_coeff.a4 =
ec8cdd50aa6131 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15  2196  						(uint16_t)be32_to_cpup(prop);
ec8cdd50aa6131 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15  2197  				}
ec8cdd50aa6131 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15  2198  				prop = of_get_property(np, "b1", &size);
ec8cdd50aa6131 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15  2199  				if (prop) {
ec8cdd50aa6131 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15  2200  					config->out_params.csc_coeff.b1 =
ec8cdd50aa6131 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15  2201  						(uint16_t)be32_to_cpup(prop);
ec8cdd50aa6131 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15  2202  				}
ec8cdd50aa6131 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15  2203  				prop = of_get_property(np, "b2", &size);
ec8cdd50aa6131 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15  2204  				if (prop) {
ec8cdd50aa6131 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15  2205  					config->out_params.csc_coeff.b2 =
ec8cdd50aa6131 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15  2206  						(uint16_t)be32_to_cpup(prop);
ec8cdd50aa6131 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15  2207  				}
ec8cdd50aa6131 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15  2208  				prop = of_get_property(np, "b3", &size);
ec8cdd50aa6131 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15  2209  				if (prop) {
ec8cdd50aa6131 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15  2210  					config->out_params.csc_coeff.b3 =
ec8cdd50aa6131 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15  2211  						(uint16_t)be32_to_cpup(prop);
ec8cdd50aa6131 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15  2212  				}
ec8cdd50aa6131 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15  2213  				prop = of_get_property(np, "b4", &size);
ec8cdd50aa6131 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15  2214  				if (prop) {
ec8cdd50aa6131 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15  2215  					config->out_params.csc_coeff.b4 =
ec8cdd50aa6131 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15  2216  						(uint16_t)be32_to_cpup(prop);
ec8cdd50aa6131 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15  2217  				}
ec8cdd50aa6131 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15  2218  				prop = of_get_property(np, "c1", &size);
ec8cdd50aa6131 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15  2219  				if (prop) {
ec8cdd50aa6131 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15  2220  					config->out_params.csc_coeff.c1 =
ec8cdd50aa6131 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15  2221  						(uint16_t)be32_to_cpup(prop);
ec8cdd50aa6131 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15  2222  				}
ec8cdd50aa6131 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15  2223  				prop = of_get_property(np, "c2", &size);
ec8cdd50aa6131 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15  2224  				if (prop) {
ec8cdd50aa6131 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15  2225  					config->out_params.csc_coeff.c2 =
ec8cdd50aa6131 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15  2226  						(uint16_t)be32_to_cpup(prop);
ec8cdd50aa6131 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15  2227  				}
ec8cdd50aa6131 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15  2228  				prop = of_get_property(np, "c3", &size);
ec8cdd50aa6131 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15  2229  				if (prop) {
ec8cdd50aa6131 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15  2230  					config->out_params.csc_coeff.c3 =
ec8cdd50aa6131 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15  2231  						(uint16_t)be32_to_cpup(prop);
ec8cdd50aa6131 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15  2232  				}
ec8cdd50aa6131 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15  2233  				prop = of_get_property(np, "c4", &size);
ec8cdd50aa6131 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15  2234  				if (prop) {
ec8cdd50aa6131 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15  2235  					config->out_params.csc_coeff.c4 =
ec8cdd50aa6131 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15  2236  						(uint16_t)be32_to_cpup(prop);
ec8cdd50aa6131 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15  2237  				}
ec8cdd50aa6131 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15  2238  			} else {
ec8cdd50aa6131 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15  2239  				pr_info("No CSC coefficients, using default\n");
ec8cdd50aa6131 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15  2240  			}
ec8cdd50aa6131 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15  2241  		}
ec8cdd50aa6131 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15  2242  		vout_loaded = true;
ec8cdd50aa6131 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15  2243  	} else {
ec8cdd50aa6131 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15  2244  		pr_info("No video output configuration, using device default\n");
ec8cdd50aa6131 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15  2245  	}
ec8cdd50aa6131 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15  2246  
ec8cdd50aa6131 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15  2247  	if (vin_loaded && vout_loaded)
ec8cdd50aa6131 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15  2248  		config->loaded = true;
ec8cdd50aa6131 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15  2249  }
ec8cdd50aa6131 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15  2250  

:::::: The code at line 2102 was first introduced by commit
:::::: ec8cdd50aa613113bb1480b0b103f42eea3f25d9 drivers: media: Customized adv7511 for Xylon LogiCVC (deprecated)

:::::: TO: Radhey Shyam Pandey <radhey.shyam.pandey at xilinx.com>
:::::: CC: Michal Simek <michal.simek at xilinx.com>

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: .config.gz
Type: application/gzip
Size: 30535 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20210303/18f7d28f/attachment-0001.gz>


More information about the linux-arm-kernel mailing list