[xlnx:xlnx_rebase_v5.4 1296/1697] 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
Thu Jan 14 19:32:40 EST 2021


Hi Vishal,

First bad commit (maybe != root cause):

tree:   https://github.com/Xilinx/linux-xlnx xlnx_rebase_v5.4
head:   629150468791671b5fde21363e643e87c5815b17
commit: 0b197959bbbdb68e1da974bd013339f08704b178 [1296/1697] staging: xlnxsync: Fix the uapi header license
config: alpha-randconfig-s032-20210113 (attached as .config)
compiler: alpha-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-208-g46a52ca4-dirty
        # https://github.com/Xilinx/linux-xlnx/commit/0b197959bbbdb68e1da974bd013339f08704b178
        git remote add xlnx https://github.com/Xilinx/linux-xlnx
        git fetch --no-tags xlnx xlnx_rebase_v5.4
        git checkout 0b197959bbbdb68e1da974bd013339f08704b178
        # 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=alpha 

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

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

:::::: The code at line 2102 was first introduced by commit
:::::: 9836a252284b997aacd6b86766514a0bb84b4f43 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: 34220 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20210115/fef09231/attachment-0001.gz>


More information about the linux-arm-kernel mailing list