Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp2303954pxb; Fri, 17 Sep 2021 06:56:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyntWuLGn38ponUjyTl7+tgLuUc84qk/7facsFt9AVkgsdxG2PQHq87IQf55DySQMbXqZ/U X-Received: by 2002:a17:906:2418:: with SMTP id z24mr12285909eja.105.1631887007333; Fri, 17 Sep 2021 06:56:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631887007; cv=none; d=google.com; s=arc-20160816; b=hcJJ1GXd4o4XCzJjXZYqQVEgihGCq0cs1kOhHgf0iP29Gj5ZvOp6RalUXtyc5FZ8xu I66eK+yeoOLTm9SlCgl8rzZ/UvXCYUicYYVMSowgF/Sjvbpk7uaIcpzV+83KDKbeKTj6 EcitAITwnfI2bb5QV9xbMdcmYGotym3Cbo/gURvSQFIAcnLSuBUJVua4bPZOLELn1qHq qYiN2jHCZylqCAdLTpd+cLpBYhacz4S3P+P9eO5p1Yd7n5bjCQIqKeIpDPv/TcJPntzS ZQtfuMhsDzajBMwCnq2nL8JAUMG7lK1q4owVANbAbUVT0KPryhSo6CzF9oKE6QAzTulo oAfg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=SvOIMU9s2tk6Iel7Z7uRZCftcp1vmChPuIz8m0bmvjY=; b=XubPUnU5dGL97wvzYOJFfwbhD330gKQ+jOPaZleNl+cfzCOC2G9JP6CwQJnmXQo8c9 LPKjQ6mji+tXP6nA5h5z3ho9VDU13sbcfB5YelzYzhGj6+eJD48LDnN4r3hZrVxBcKBM mv+XJVpbrLJsabDYKnUdzIHxy8tqR+ElerPOAvz1wzR/GxgfpiNm3KHpWNsZ6Zzw7EJh 38ta9SNGggocD8n/dqoSQAGziASjZkqQVr8oV9e2oiXn75cv23oPy5RCjhoga0BntdxI jYu243kRW2WulCTM+GRwh0M1ETtHhmudfGqvqvznTpeaQPHwQUDKIfboU1AfUpjlKSIh JxUA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@canonical.com header.s=20210705 header.b="AkDY/BT4"; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=canonical.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id eb8si9040709edb.465.2021.09.17.06.56.17; Fri, 17 Sep 2021 06:56:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@canonical.com header.s=20210705 header.b="AkDY/BT4"; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=canonical.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242253AbhIQKfL (ORCPT + 99 others); Fri, 17 Sep 2021 06:35:11 -0400 Received: from smtp-relay-internal-1.canonical.com ([185.125.188.123]:51158 "EHLO smtp-relay-internal-1.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233543AbhIQKfK (ORCPT ); Fri, 17 Sep 2021 06:35:10 -0400 Received: from mail-wm1-f72.google.com (mail-wm1-f72.google.com [209.85.128.72]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smtp-relay-internal-1.canonical.com (Postfix) with ESMTPS id 633DE3FE02 for ; Fri, 17 Sep 2021 10:33:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1631874828; bh=SvOIMU9s2tk6Iel7Z7uRZCftcp1vmChPuIz8m0bmvjY=; h=Subject:To:Cc:References:From:Message-ID:Date:MIME-Version: In-Reply-To:Content-Type; b=AkDY/BT4WiQGirDeW3GgMeT2GosDZJNj+gzcmka14RkEhWyyI2Bxv0fpXjFU6y9th X+vitVMLgIYrXJ6NUZ6OOqsASA/rz4uQ+Qls0xi0IgC27GEFFO8kRhIKpNlKYuAxrw R+ZzfmB5GAFrXFAJB3Oujr8bMAdEDA84iSzu+0cofpLWdTj4OFbcXGNq0mC1P/BVb+ cTo17OOhYaNTcyUllZL+THzbUnlbxDL4aS5mGFZWN5pUx5dnrmQG1HOSADkcA+a0OL YIVVaajN/8sTq9K2fpFmU4T1DDJEl2adPIJyNMozo6PeztLNNJeI8uwY158zofsXyz 6GpQpbBWMjEpA== Received: by mail-wm1-f72.google.com with SMTP id g74-20020a1c204d000000b0030a1652fea8so8420wmg.3 for ; Fri, 17 Sep 2021 03:33:48 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=SvOIMU9s2tk6Iel7Z7uRZCftcp1vmChPuIz8m0bmvjY=; b=XnNDwtnfHnDAH/JzV5bp9o7mdthLj+1stusXlGm1WbBicjl+j19jqhYpOMC/vWQP7d eYQo1/UZYZ83Y7bO6eSFdTrhDqF76JrCCD7jrQ6gQlQcmMR7ah04A++ogwNIAmQwvqtL 72OrHwLVK+SLKJwBdzEToNn8sx/j6XQuht11mGXaNMp5JlLRZdVao1JW9TAdSa/IEPYR 0QuFXSiTJFE/U9183sUURCPbJhUldvgtgLd9cYfC0RTD1R4gKYP2tPtta9MVeqM43Xae TwQkOaDan/4MuM7mWTHXPsvkiR5GwSPMgM0Gq2bzZux4sypBim1CH3AcZKAwfjGkOHJ3 rs1A== X-Gm-Message-State: AOAM531dktTR8k7FwGd64wWdZkLCBxS419g9q9036my6Y9sekIN9hlSs b/zx0LQLLBpxFW6TLGGRsuVNVOScE6Q2YvQVekhmJhC2rUn4Oglho5KUo2kMWoATOxEM62GlTGU 69WGjHOilgBXQPpksO4QHv0Qy1fSnrABKVibEtUn9EA== X-Received: by 2002:a1c:28a:: with SMTP id 132mr9475447wmc.101.1631874828058; Fri, 17 Sep 2021 03:33:48 -0700 (PDT) X-Received: by 2002:a1c:28a:: with SMTP id 132mr9475439wmc.101.1631874827876; Fri, 17 Sep 2021 03:33:47 -0700 (PDT) Received: from [192.168.0.134] (lk.84.20.244.219.dc.cable.static.lj-kabel.net. [84.20.244.219]) by smtp.gmail.com with ESMTPSA id c7sm6190683wmq.13.2021.09.17.03.33.47 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 17 Sep 2021 03:33:47 -0700 (PDT) Subject: Re: [RFC][PATCH] crypto: caam - Add missing MODULE_ALIAS To: =?UTF-8?Q?Horia_Geant=c4=83?= , Marek Vasut , "linux-crypto@vger.kernel.org" Cc: "ch@denx.de" , Herbert Xu , Iuliana Prodan References: <20210916134154.8764-1-marex@denx.de> <441a7e2e-7ac8-5000-72e0-3793ae7e58d5@canonical.com> <08afb147-07c7-9fbb-4a0c-8a79717b06b7@denx.de> From: Krzysztof Kozlowski Message-ID: Date: Fri, 17 Sep 2021 12:33:46 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.13.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org On 17/09/2021 11:51, Horia Geantă wrote: > On 9/16/2021 5:06 PM, Marek Vasut wrote: >> On 9/16/21 3:59 PM, Krzysztof Kozlowski wrote: >>> On 16/09/2021 15:41, Marek Vasut wrote: >>>> Add MODULE_ALIAS for caam and caam_jr modules, so they can be auto-loaded. >>>> >>>> Signed-off-by: Marek Vasut >>>> Cc: Herbert Xu >>>> Cc: Horia Geantă >>>> Cc: Iuliana Prodan >>>> Cc: Krzysztof Kozlowski >>>> --- >>>> drivers/crypto/caam/ctrl.c | 1 + >>>> drivers/crypto/caam/jr.c | 1 + >>>> 2 files changed, 2 insertions(+) >>>> >>> >>> Since you marked it as RFC, let me share a comment - would be nice to >>> see here explanation why do you need module alias. >>> >>> Drivers usually do not need module alias to be auto-loaded, unless the >>> subsystem/bus reports different alias than one used for binding. Since >>> the CAAM can bind only via OF, I wonder what is really missing here. Is >>> it a MFD child (it's one of cases this can happen)? >> >> I noticed the CAAM is not being auto-loaded on boot, and then I noticed >> the MODULE_ALIAS fixes cropping up in the kernel log, but I couldn't >> find a good documentation for that MODULE_ALIAS. So I was hoping to get >> a feedback on it. >> > What platform are you using? > > "make modules_install" should take care of adding the proper aliases, > relying on the MODULE_DEVICE_TABLE() macro in the caam, caam_jr drivers. > > modules.alias file should contain: > alias of:N*T*Cfsl,sec4.0C* caam > alias of:N*T*Cfsl,sec4.0 caam > alias of:N*T*Cfsl,sec-v4.0C* caam > alias of:N*T*Cfsl,sec-v4.0 caam > alias of:N*T*Cfsl,sec4.0-job-ringC* caam_jr > alias of:N*T*Cfsl,sec4.0-job-ring caam_jr > alias of:N*T*Cfsl,sec-v4.0-job-ringC* caam_jr > alias of:N*T*Cfsl,sec-v4.0-job-ring caam_jr Marek added a platform alias which is not present here on the list (because there are no platform device IDs). The proper question is who requests this device via a platform match? Who sends such event? Best regards, Krzysztof