Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp4495712imm; Tue, 7 Aug 2018 02:28:25 -0700 (PDT) X-Google-Smtp-Source: AAOMgpfUgKTFTE2fOO0PXhq42Ci/LxPAz4YJqqjNqTdveVIgqaoes7ajLlZGZ7494DmTitFgua2r X-Received: by 2002:a63:920c:: with SMTP id o12-v6mr17976674pgd.141.1533634105338; Tue, 07 Aug 2018 02:28:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533634105; cv=none; d=google.com; s=arc-20160816; b=YAO16lrn8JWE4SBc0jXAwezGbcYDpJMBX73PjYrLRytOYdzd7kLg5IE+CS7zMTixQ1 vGJm/8CjCL89FK7cZUoJzKAbQgwR169PhigPCYu/zG7iACW0T12guVXDKvhJ5wGdNIR/ oFLr78+in4QCv3cKyDQOYnbAXU315UgUO2lphfQmZEIfeNy90iAFFcGj8/+v/CyZ4MLQ cXfbDXSSjHEeF8VkUfH8j7rc4bflKdCIo+Qb8+Q6a5LJr44jF9rzhFFfBKDuxnveEDxK q/ADBNf/6ATu+wod0hbY1/NWrzZCc08ZpWmkdsNLQ5UR6Vau5+h1+VdNZJqTchE60iWm 9W4g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=6GGzNYaxhUU2kPCeA0QDEymNNJfksrOQO0hJ/X73+/I=; b=e/9I9gw0DIpKT+QK1FnOtDwgU4C3zlpRE/EkrnBConiWUINf81ERqJluUwAoAxpI3u X4D8X83JYRADFOOiNt/ii/A0E3A9uyTwJhJner0miGR52GRfsfoDEx2zFkNmICVxGrUQ /Xcq3OU4zS1YsjlzfSRyIuDSPGx10kcPL3WVgSkLG7gDHY7gbjg/N3hZ5Ok12COj3fQO KcHVXW2AEpXoDVqB1ryTe1yGL6tGcuXnCUBo/l/qQX3SBglA0mqyoLooWWhAa/o2xNOm NS9T//Pns6nW5KKU1VljUhkUxc42fDqyw+FGCJFHzgiEqnn+i9nxxI1BYrcCzp0RABZR hbEA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="TCD/QH1w"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m76-v6si953570pfg.323.2018.08.07.02.28.10; Tue, 07 Aug 2018 02:28:25 -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=@kernel.org header.s=default header.b="TCD/QH1w"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1733147AbeHGLfJ (ORCPT + 99 others); Tue, 7 Aug 2018 07:35:09 -0400 Received: from mail.kernel.org ([198.145.29.99]:45046 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731171AbeHGLfJ (ORCPT ); Tue, 7 Aug 2018 07:35:09 -0400 Received: from mail-wm0-f51.google.com (mail-wm0-f51.google.com [74.125.82.51]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 75E28214EE; Tue, 7 Aug 2018 09:21:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1533633703; bh=uToHvAFH1IKS+3spuYWJTpIdRwbceljD8L4/PTaiONc=; h=In-Reply-To:References:From:Date:Subject:To:Cc:From; b=TCD/QH1w2JuTAHwAWZ98a6Fn+SdQzzygai28gut5LFcO3Q1Z8gK3WWmCPZ9CRg/T8 gHkLB5SErzC++isXqH06AF8LyuGkstTFLlYBEcbRarID3hCfxuoxFJO79eTf5vL5pp 9Bc4nqMQZBNLUHUDaCelgjAkU9pZviMFmw3bnYyw= Received: by mail-wm0-f51.google.com with SMTP id q8-v6so17362633wmq.4; Tue, 07 Aug 2018 02:21:43 -0700 (PDT) X-Gm-Message-State: AOUpUlEazE03s+ENEkYzd4Hq1Zb/At3GCu0k9zZmOvLXqk3wAkwBThwD PGw4A5X9coivTqv6o+C6qJ6yA7N0y4AU/4i9X7k= X-Received: by 2002:a1c:9c56:: with SMTP id f83-v6mr1040830wme.135.1533633701977; Tue, 07 Aug 2018 02:21:41 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:adf:9141:0:0:0:0:0 with HTTP; Tue, 7 Aug 2018 02:21:41 -0700 (PDT) In-Reply-To: References: <20180725155302.4718-1-krzk@kernel.org> From: Krzysztof Kozlowski Date: Tue, 7 Aug 2018 11:21:41 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] mfd: sec: Export OF module alias table To: Javier Martinez Canillas Cc: Sangbeom Kim , Bartlomiej Zolnierkiewicz , Lee Jones , Linux Kernel , "linux-samsung-soc@vger.kernel.org" Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 4 August 2018 at 01:30, Javier Martinez Canillas wrote: > Hi Krzysztof, > > On Wed, Jul 25, 2018 at 5:53 PM, Krzysztof Kozlowski wrote: >> In case of Device Tree platforms, even though the Samsung PMIC sec >> device is instantiated from DT, the driver is still matched through I2C >> module alias. That is because I2C core always reports an I2C module >> alias instead of DT one. >> > > Just a heads up that this already changed in v4.17 since commit > af503716ac1 ("i2c: core: report OF style module alias for devices > registered via OF"). True, I missed that part and blindly followed the old principle. > >> This could change in the future so export DT module alias. >> >> Signed-off-by: Krzysztof Kozlowski >> --- >> drivers/mfd/sec-core.c | 1 + >> 1 file changed, 1 insertion(+) >> >> diff --git a/drivers/mfd/sec-core.c b/drivers/mfd/sec-core.c >> index ca6b80d08ffc..9613b4257302 100644 >> --- a/drivers/mfd/sec-core.c >> +++ b/drivers/mfd/sec-core.c >> @@ -146,6 +146,7 @@ static const struct of_device_id sec_dt_match[] = { >> /* Sentinel */ >> }, >> }; >> +MODULE_DEVICE_TABLE(of, sec_dt_match); > > This driver can't be built as a module since its config symbol is > bool, so technically this macro isn't needed. But it's a no-op when > the driver is built-in so it's harmless to have it. Indeed. I tried converting it to module but that does not work in all configurations (regulators are needed early). Anyway my patch even though not that correct, it should not bring any issues. Thanks for valuable feedback! Best regards, Krzysztof