]> rtime.felk.cvut.cz Git - sojka/nv-tegra/linux-3.10.git/commit
plugin-manager: Add support for partial and GE match
authorLaxman Dewangan <ldewangan@nvidia.com>
Sun, 3 Apr 2016 14:22:38 +0000 (19:52 +0530)
committerWinnie Hsu <whsu@nvidia.com>
Thu, 21 Apr 2016 20:12:00 +0000 (13:12 -0700)
commitd53da57eb3dc95062a73559f9e886f72031d1b03
treebec6be9379efa824d0e963e4374d4498fdbc20d9
parent0308e1a8fd23c0d7fe5953e5516501ee641c6eda
plugin-manager: Add support for partial and GE match

Currently the matching of board ID on board is done with exact
match. Add support for partial and >=fab ID support.

Partial match:
==============
 If matching string start with '^' or having the '*' in id string
 then apply partial match with board ID based on how string provided.
  Example: Suppose Board ID is 3310-1000-100, then the matching is
  done by saying ^3310-1000, 3310-1000-*, 3310-* etc.
  ^3310-1000 or 3310-1000-* means all fab ID of 3310-1000-,
  3310-* means all SKU and fab ID of 3310.

Greater than-equal to match:
===========================
  If matching string start with ">=" then it is applied for all board
  of same type of module having fab ID >= sting fab ID.
  Example: ">=3310-1000-100" means all fab 3310-1000-100 and later like
  3310-1000-200, 3310-1000-300 etc.

bug 1750159

Change-Id: I1223d7c8add653cd54505e0d98693f72a5c3c824
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/1119438
(cherry picked from commit d3a7f2399b1617a61f7cf2d5abb159ecf6fbf44d from dev-kernel-3.18 in linux-3.18)
Reviewed-on: http://git-master/r/1120768
(cherry picked from commit b0cb5e66ed570cf06ee3560fcf616930ba61cbf9)
Reviewed-on: http://git-master/r/1128341
Reviewed-by: Bibek Basu <bbasu@nvidia.com>
Tested-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-by: Winnie Hsu <whsu@nvidia.com>
drivers/of/plugin-manager.c