Re: [PATCH] fpga: dfl: Add lockdep classes for pdata->lock

2019-04-11 Thread Scott Wood
On Wed, 2019-04-10 at 16:53 -0500, Scott Wood wrote: > @@ -443,11 +450,16 @@ static int build_info_commit_dev(struct > build_feature_devs_info *binfo) > struct platform_device *fdev = binfo->feature_dev; > struct dfl_feature_platform_data *pdata; > struct dfl_feature_info *finfo,

Re: [PATCH] fpga: dfl: Add lockdep classes for pdata->lock

2019-04-11 Thread Wu Hao
Hi Scott, On Wed, Apr 10, 2019 at 04:53:39PM -0500, Scott Wood wrote: > struct dfl_feature_platform_data (and it's mutex) is used > by both fme and port devices, and when lockdep is enabled it > complains about nesting between these locks. Tell lockdep about > the difference so it can track

[PATCH] fpga: dfl: Add lockdep classes for pdata->lock

2019-04-10 Thread Scott Wood
struct dfl_feature_platform_data (and it's mutex) is used by both fme and port devices, and when lockdep is enabled it complains about nesting between these locks. Tell lockdep about the difference so it can track each class separately. Here's the lockdep complaint: [ 409.680668] WARNING: