Received: by 10.192.165.148 with SMTP id m20csp345088imm; Thu, 26 Apr 2018 23:11:55 -0700 (PDT) X-Google-Smtp-Source: AB8JxZrfkoElBaw/7BXh+r3J6L6oFjeoyUgAF+wnwriby12i3dr02wzFQu4ZyrhHAqWwZhAQLLow X-Received: by 10.98.11.3 with SMTP id t3mr1046943pfi.32.1524809515410; Thu, 26 Apr 2018 23:11:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524809515; cv=none; d=google.com; s=arc-20160816; b=QiEzS+glrC2/XDmxaxcUqkupvLpmwBAcwDmcLGtyYGoHPc1HXFjdavIjJum76tnhu2 Ulk9/B/U53/ASK1TTZzQgguFJMRI/bqTV7s4NWRwTpldt4wILhE8yejpj2idCq2IlCaH 06KNx4LRlBUY55pWQTqEDG6Okw2c2+xt+0OnCDHJ+gVX2FlCTJBCwO8/NPZR5BgEkWdF IFFTJ7CbGSG3B31JhDwZ8cgo5pBcfpIr1v40Nq4C6DM8T3EOv7yv1JBhzLr+S2G6kYbm 2ysTb9kB6uG62K53qSBlMZBe9ze8z28MEWwzv+ml+6T+5wu9PPQSisGDfwo0iId0IEO2 o4/A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:spamdiagnosticmetadata :spamdiagnosticoutput:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature:arc-authentication-results; bh=h58vOGfP6Ik5ulA6gh3VUAdXJUXGwvj5UD+9gi4coTc=; b=qQ47jcIeTKBUQitRha2a/PtYDh8k+bGuXT+WaCflvPuk3WmjzPKC92OfJzo/sH/xAp 49+Nm1Y4VhiA3qBWPNc0n+xvVAd/wXwjf0mqtNQyIHbDm2kbOtUvhVX7dKQzqTH4g4KH AuYdvnJRQd3HNlbVhFrXDL3sDeEHblkjhAoKiJcRMQBDyIt4H2qTcqPA2jJJyzdggI0Q 41YjDQhiNCO5M4Mpu0cJQQsCFy0/YAmxvM6ttFU45/lANQWmFj4lAvBsMamTQXfdaS8t 90Ib1NEUhxsM67hP6vcJZYQbhKtoeHm5BipPW2RbaoEiZTVpR/iBNmuctAi3Ntcpcm4K DZOA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@xilinx.onmicrosoft.com header.s=selector1-xilinx-com header.b=c2fMl8Tx; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r12si640827pfd.193.2018.04.26.23.11.41; Thu, 26 Apr 2018 23:11:55 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@xilinx.onmicrosoft.com header.s=selector1-xilinx-com header.b=c2fMl8Tx; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757354AbeD0GK3 (ORCPT + 99 others); Fri, 27 Apr 2018 02:10:29 -0400 Received: from mail-sn1nam02on0066.outbound.protection.outlook.com ([104.47.36.66]:24736 "EHLO NAM02-SN1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751416AbeD0GK0 (ORCPT ); Fri, 27 Apr 2018 02:10:26 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=xilinx.onmicrosoft.com; s=selector1-xilinx-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=h58vOGfP6Ik5ulA6gh3VUAdXJUXGwvj5UD+9gi4coTc=; b=c2fMl8Txp0G4YUGvYTkPnJQUTWUZCUiHynzSLDDR5nShqcFSJILSoFX4vxhgszYmnnEAjJ+jycPtyiTywkbj4pXQEgwW7S52CFlbQitULZgz8Rjrorg7mwU4/F6VoP0VxSWNlPDPw7qNuAbncsqnAiKGLsxgImoPeUp5LBJvtGY= Received: from BYAPR02CA0031.namprd02.prod.outlook.com (2603:10b6:a02:ee::44) by CY1PR02MB2044.namprd02.prod.outlook.com (2a01:111:e400:c5ab::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.696.17; Fri, 27 Apr 2018 06:10:22 +0000 Received: from SN1NAM02FT030.eop-nam02.prod.protection.outlook.com (2a01:111:f400:7e44::200) by BYAPR02CA0031.outlook.office365.com (2603:10b6:a02:ee::44) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.715.18 via Frontend Transport; Fri, 27 Apr 2018 06:10:22 +0000 Received-SPF: Pass (protection.outlook.com: domain of xilinx.com designates 149.199.60.100 as permitted sender) receiver=protection.outlook.com; client-ip=149.199.60.100; helo=xsj-pvapsmtpgw02; Received: from xsj-pvapsmtpgw02 (149.199.60.100) by SN1NAM02FT030.mail.protection.outlook.com (10.152.72.114) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.20.696.11 via Frontend Transport; Fri, 27 Apr 2018 06:10:22 +0000 Received: from unknown-38-66.xilinx.com ([149.199.38.66]:53466 helo=xsj-pvapsmtp01) by xsj-pvapsmtpgw02 with esmtp (Exim 4.63) (envelope-from ) id 1fBwaL-0001sE-JP; Thu, 26 Apr 2018 23:10:21 -0700 Received: from [127.0.0.1] (helo=localhost) by xsj-pvapsmtp01 with smtp (Exim 4.63) (envelope-from ) id 1fBwaG-0004eU-GG; Thu, 26 Apr 2018 23:10:16 -0700 Received: from xsj-pvapsmtp01 (mailhost.xilinx.com [149.199.38.66]) by xsj-smtp-dlp2.xlnx.xilinx.com (8.13.8/8.13.1) with ESMTP id w3R6AFOI026040; Thu, 26 Apr 2018 23:10:15 -0700 Received: from [172.30.17.111] by xsj-pvapsmtp01 with esmtp (Exim 4.63) (envelope-from ) id 1fBwaE-0004bR-HA; Thu, 26 Apr 2018 23:10:14 -0700 Subject: Re: [RFC PATCH 1/3] of: base: Introduce of_alias_check_id() to check alias IDs To: Rob Herring , Michal Simek CC: "linux-kernel@vger.kernel.org" , Michal Simek , One Thousand Gnomes , Alexander Graf , , Frank Rowand References: <6045807691c310ccdd57ab16524b7525f26a1dc1.1524751696.git.michal.simek@xilinx.com> From: Michal Simek Message-ID: Date: Fri, 27 Apr 2018 08:10:11 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 7bit X-RCIS-Action: ALLOW X-TM-AS-Product-Ver: IMSS-7.1.0.1224-8.2.0.1013-23620.005 X-TM-AS-User-Approved-Sender: Yes;Yes X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-HT: Tenant X-Forefront-Antispam-Report: CIP:149.199.60.100;IPV:NLI;CTRY:US;EFV:NLI;SFV:NSPM;SFS:(10009020)(376002)(396003)(39860400002)(39380400002)(346002)(2980300002)(438002)(199004)(189003)(43544003)(6246003)(316002)(81156014)(9786002)(31696002)(126002)(65826007)(5660300001)(6666003)(229853002)(356003)(230700001)(305945005)(86362001)(186003)(44832011)(446003)(11346002)(26005)(76176011)(336012)(81166006)(426003)(2616005)(476003)(2906002)(23676004)(486006)(59450400001)(106466001)(6346003)(63266004)(47776003)(36756003)(36386004)(65956001)(8936002)(4326008)(65806001)(2486003)(478600001)(77096007)(8676002)(110136005)(64126003)(31686004)(39060400002)(50466002)(58126008)(54906003)(106002)(53546011)(107986001)(5001870100001)(217873001);DIR:OUT;SFP:1101;SCL:1;SRVR:CY1PR02MB2044;H:xsj-pvapsmtpgw02;FPR:;SPF:Pass;LANG:en;PTR:xapps1.xilinx.com,unknown-60-100.xilinx.com;A:1;MX:1; X-Microsoft-Exchange-Diagnostics: 1;SN1NAM02FT030;1:loDQaX+0m5Wrhe/q2SVqZPBPjxuhpLFm1DIeVuVN66zp7X5H/KJ9UUb5KhtgvSX1yUR5b0b9Yw6hl4sbtTrGsNUUvPsH3MEQjiKD7fQ8ygjDN8YPZT3kmoPttqj5fYQz X-MS-PublicTrafficType: Email X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(7020095)(4652020)(5600026)(4608076)(4534165)(4627221)(201703031133081)(201702281549075)(2017052603328)(7153060);SRVR:CY1PR02MB2044; X-Microsoft-Exchange-Diagnostics: 1;CY1PR02MB2044;3:wRhSmXa+OnJjk7T4SuUzbGqcyixYcuvH1aiaSsUkNFR8pwMtEzzJjc0Bj8t4MLcOFE9EJNjLiArX6vVULCfAk9rd1C+YKXpWbikmoYYmeXBiTNJdj6KsQ/l3KBylFxBeMAjzpfXlL5M304PUb76AonWWOYoYaowPrHQzwpuIZpaA1fkcQWBf1ljXPMJZoKDBkG6/q9IZIB/rRKTXt2aE5c1TBmeVKlliOk1FAiwXSKn74AIRoeR4fiwNVLTJoJKKzs5e3HXeHV+G5z800P5hSzr18uk/jGQ0cYBDI4IwlXoHfTVWu3JBx9JkRDz4zX7XA5v1tI5TZgSeqgu8caLHu7ai5D3SrZmuwSUt22Alrig=;25:lOoHevHbn9RQoR7cNqsg/W7n87zVIoWfHEFbGyWuOKuKfzEhjhEj6vZPxqAWSCL9sS9G2HxOZsIRVpdzRqXn/Ygc+FUSa0j0+wFkpmGAqE8MOlZ+9J1y5DpjAjAT2RBNXuWaeocc1BjAdGdDZKVfp88DvC1oUik3CFj/XNApU8dOn8G+rp8pw8BpOvSbLVoayCichBXDlcZNACpPzKZ2RL+Xqm3qdm8LchIDK2TIv2/1a2EYyI9ZyTf5OTHEGClIOtFWnTzbGZkUiDDNnu4u44UF1Fe7YLD1CeSmNFEvyE5nzS7OmSmFWdvOgG0QdUpJL+Bm7a6swEc/XWOkhjzDyA== X-MS-TrafficTypeDiagnostic: CY1PR02MB2044: X-LD-Processed: 657af505-d5df-48d0-8300-c31994686c5c,ExtAddr X-Microsoft-Exchange-Diagnostics: 1;CY1PR02MB2044;31:tQPqo+O370nkz8VSKvbP0rbdVKYm2c9ViQSHPMdWgNqZZazKQHuSVj3B8BLO/SRkNPDYqYl6JtXeh/JmYrRz89Zith6xjTygXG9/LBaLi9Z5DILuzf8Vwj+Wjat52q9aMRsxPc19XfqzSTMEFaauIC087/iFj96iwqvztSlI9D3sLeTJm1z7X39AHrWTVeTpe1NpmcLJe5ouXyG1bEnoKZ1caokLWY5xwMXuZaROkIM=;20:GtUZ/25VQP8fT7lOxHxXtAWPqHkUsi/hCV0l1jkclX2IsU/oyw4sZp9i5D/hITUzw6N2svRhlbxPl4M6Fgt2aeoyr64WMFXnVBAoFOgA3VPIoYKXdrYYXcaYv1rsWSMdBrmNwTvoJdmoK9i4NNXVLGMnpsgrwKcMPd53iV9mEojrzzxMiddSjOtvCNJEnGOzfV9cfEKf8qZoDKJs5dDgshX4e+IFbME5RspYsRoLVbRE4LePIKd3o7QODQEBzLHT/wMI7Jfm47TwUul4T43emIJWgDwecrQMaIXIHXaPNVDt9bVOzKL/AEhDWiy4MIrxPupswl0s2l7jWFjHFJQb+rYWBg6CNBVjcpwouPsMOZpVLv4sXLKOI1V6Uk3C7MW86vrqT/gk+ci+5qlzeazhbzO9d6TB3Yc2soJSudc0j6xFTjPUXFGt1VfCEroZeQHc5rneNPXJR5XjUOkNRAylWJRC4jSq0N0SReATIm3QV9t2iANtbdtBQyDVROy5JNR5 X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(192813158149592); X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(8211001083)(6040522)(2401047)(5005006)(8121501046)(10201501046)(93006095)(93004095)(3002001)(3231232)(944501410)(52105095)(6055026)(6041310)(20161123558120)(20161123562045)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123564045)(6072148)(201708071742011);SRVR:CY1PR02MB2044;BCL:0;PCL:0;RULEID:;SRVR:CY1PR02MB2044; X-Microsoft-Exchange-Diagnostics: 1;CY1PR02MB2044;4:QANKND7/cpQotID+NKG45x8zz9ionFTcKaFDF1bze0DyyFZ5OdOiEi6/ECnwcL49U+uUfb3xtOUdJrIAuYldyyffdREO13/txhzLQMrtUzKkCcL3lBGGLr+8ApGG7TPZKfLvlSwwiR5y1dOi7OKV0ax18fYed1DzWMK3zHtMRMCz0esPfAWEv0RehMMS5iRg99kzrlzOtJYhVtiNzBjbX9aeH8F4Hh2KqY2XntOz4iQEZ9xKJXA8GwcFctfxQSdrhDgayTVe2JWL03DRvFrDCgBT0qV9oB+NdDQRG5CN7h4CIbJZz5R750u4xzCk64Rc X-Forefront-PRVS: 0655F9F006 X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtDWTFQUjAyTUIyMDQ0OzIzOmNMMFN5SGh1QzdnanB2eTRudzFPRHYxTko2?= =?utf-8?B?eVgyK0g4ZU5TTlpZR1oxTkNzM2lCYjFBN2xhV3pLL0tLNlBmSDVxSUJDdEtQ?= =?utf-8?B?WlZuNlFnbnlEaFRzSzFIUnJacjljNXFaNGdydUNBVE14SFptR0piSDdmdGt0?= =?utf-8?B?bEpIeko1MXNsMGlGZDl3cXJPTmxoRzl5WkM1QTgyYlEwQkVlY2JaQVZHMEk4?= =?utf-8?B?T2JsamU5NVlrVlhzMDJUdHZMckhiZ1VTUUt5T01ROXJqaW1OVDA4eEp4TUh0?= =?utf-8?B?bWs0UHFydXlwTWJyeDRablVrK29ISWFRRWZkWExOOGdKQU5Yd1g5R0g2Y2pv?= =?utf-8?B?NEhWT2xaOWNSRE1LQVVqT2xIUGNhbWcyNnNxeVF5WWc3NWY4eHBJZkl5QVA0?= =?utf-8?B?M0V3dFAvTjMzeW1VVXczSXJ0UU9JVGk5MXJvb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id: c5470cfb-7a76-4fe1-bf37-08d5ac058f61 X-OriginatorOrg: xilinx.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Apr 2018 06:10:22.0342 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: c5470cfb-7a76-4fe1-bf37-08d5ac058f61 X-MS-Exchange-CrossTenant-Id: 657af505-d5df-48d0-8300-c31994686c5c X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=657af505-d5df-48d0-8300-c31994686c5c;Ip=[149.199.60.100];Helo=[xsj-pvapsmtpgw02] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY1PR02MB2044 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 27.4.2018 04:39, Rob Herring wrote: > On Thu, Apr 26, 2018 at 9:08 AM, Michal Simek wrote: >> The function travers the lookup table to check if the request alias >> id is compatible with the device driver match structure. >> This function will be used by serial drivers to check if requested alias >> is allocated or free to use. >> >> Signed-off-by: Michal Simek >> --- >> >> drivers/of/base.c | 49 ++++++++++++++++++++++++++++++++++++++++++++++ >> include/linux/of.h | 2 ++ >> 2 files changed, 51 insertions(+) >> >> diff --git a/drivers/of/base.c b/drivers/of/base.c >> index 848f549164cd..382de01acc72 100644 >> --- a/drivers/of/base.c >> +++ b/drivers/of/base.c >> @@ -1892,6 +1892,55 @@ int of_alias_get_id(struct device_node *np, const char *stem) >> } >> EXPORT_SYMBOL_GPL(of_alias_get_id); >> >> +/** >> + * of_alias_check_id - Check alias id for the give compatibility >> + * @matches: Array of of device match structures to search in >> + * @stem: Alias stem of the given device_node >> + * @id: Alias ID for checking >> + * >> + * The function travers the lookup table to check if the request alias id >> + * is compatible with the device driver match structure >> + * >> + * Return true if ID is allocated, return false if not >> + */ >> +bool of_alias_check_id(const struct of_device_id *matches, const char *stem, >> + int id) > > Wouldn't it be simpler to just return a bitmap of all allocated ids > that match rather than trying to build that up 1 bit at a time? Is alias list stable or can dt overlay change it? What should be the expected flow? Find out maximum number of aliases of the same kind and allocate bitmap and return it with length. Anyway if you look at that patches I sent then I call in the driver of_alias_get_highest_id("serial") which doesn't take care if alias match with actual driver. It means having information about max alias ID which match actual driver that would be helpful but I am not quite sure what should be the flow. Any link to similar function would be good to understand how the flow is supposed to work. Thanks, Michal