Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp12148pxv; Wed, 21 Jul 2021 14:05:17 -0700 (PDT) X-Google-Smtp-Source: ABdhPJybGLZFaA9CdT2/IAc7pDd5G2NxEg4QtwnmE4z0OAfmx8q4kvGFk+evuOn/FzeKagwmrMqS X-Received: by 2002:a92:508:: with SMTP id q8mr26180816ile.89.1626901414268; Wed, 21 Jul 2021 14:03:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626901414; cv=none; d=google.com; s=arc-20160816; b=Y6JdEstuQJ37FQ4h2dPIUVTxFTcuPtNgVtf/NrR3VEDCxJUV62Tl7fWcNE9uY8QXbf r0NJDltR3q8hDkzq7kx3ZL5o9FeyMUIBxuF3xUawJ1WMGSMo9LV3tRbQlwYpHCg40lyI gPrdsJF6moIGUns7bfM2oRfA1S/wfqhI20VTkspGNOLq+/LUHanNurEES+1J1Rg05TZB XApIxKozI9H5ee/gt0BH1GFgkJTHeyS9YcDWzKSBJZtzO8OhewRy1jy+T0JMlNQiEQGA mm0BjYlLpUSQkTnDjYfD9BCDPht12XFAOVkNlO16pXIDarvX4f/UmaA6OQiQQSo7HSyD bosg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=/geap+n06qADP8bUUkTvJg1+GbqYMe8lt6RpcUMxI18=; b=tOQAecuAafRpOtEJnTXbi0IWlctcgkAkmG6W2gaAMsxyXqRmgU8ML3mk66g73EYtjw n+y2ufPXdshU1mhf82nKAPa7MauiN6zHRIrjPF6jcWwBQEaN5O0ZvNolXF0P6JdrQQph WF/wauUU+P6MtFUhTfwv8GNE9ThxNPWH4BUWMgeVW1sZaA8mUYvYO3vpi0LIsmRUVKIJ uTeoDSxay0/4WOsufVIekuTnvG6zQ0qe/qJ4w52tUrbX5Gv6r8pEuaKPkjSWmUZ63Crs FwoIyM7CoAwd5I74ah+HStli6xPNSfGWEs5/y7KVzyMeHRVyQBs6ollyOwK/LILDazi8 dN/w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Hdt2KFh5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j30si26751361ila.56.2021.07.21.14.03.22; Wed, 21 Jul 2021 14:03:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-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=@linaro.org header.s=google header.b=Hdt2KFh5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234484AbhGUQnj (ORCPT + 99 others); Wed, 21 Jul 2021 12:43:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40472 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229526AbhGUQnj (ORCPT ); Wed, 21 Jul 2021 12:43:39 -0400 Received: from mail-lj1-x22a.google.com (mail-lj1-x22a.google.com [IPv6:2a00:1450:4864:20::22a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5511CC0613C1 for ; Wed, 21 Jul 2021 10:24:14 -0700 (PDT) Received: by mail-lj1-x22a.google.com with SMTP id h9so3958363ljm.5 for ; Wed, 21 Jul 2021 10:24:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=/geap+n06qADP8bUUkTvJg1+GbqYMe8lt6RpcUMxI18=; b=Hdt2KFh5xvg+QlcJKKcwzWITxdiB3zzWrNsSCi3yAmz5xkPmKzqnF9Vf88sIJjyPDe Ja3BG8LkZkNqMVYCmyfVmPjbmoWDHNC6HgfHZY9miAffsE8USRj45txPlXOHFqcKntP3 JjG7JeL0LVCQRQFaqy6JOIaGkcz2XECZ3STKTmPSSK0EKewRHEkllDmMhuIPT0uEdT52 UwELbIZsRCf9PI/reTR9o+ZG02ZzwTKnr65Pk5ZvQwTvMOL5yV5Q6QklhTuJftyhkSuM MNeB8hArE2/Uhg1XW/oqWLr9/271h+/O24cYDoBKJOPLkn+OgMrJxb73TsB4kCB0PkhA PB9A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=/geap+n06qADP8bUUkTvJg1+GbqYMe8lt6RpcUMxI18=; b=nkWxsP90J/pEV0w1W8lOrX3QSuP6J0O6yoKN9IBfNR+r1et/7SiOqcqtb4aVsygp59 Z0fhu4bkU5yDENKf1iDxeiMnLtvaTtHHYzvhm5IcsAUJYR/RRSMIG4HnCXEGK2zIkIW+ edRsnel8jDdaa/dX9PE8ohbMc9Jes/40PaAm9vmeBcS0NwEl0zPYv9R7lVtAzDyyYNLX dg5VYcYikAgyU7QcUD9Rai65O0LvB9XKFQ0j4LpgFup+uGnno6mwoLs4YNwxfoNgaLtF rFlUCIqTLGNqOG337aGjK8dhopwe0NeptbeTth3pq+J9uj8nFAR4FJ9W2JIGOTcy/sp0 b/yg== X-Gm-Message-State: AOAM533Dazgl8UwhuQI2LAlYPvzmZmEtVRvgMEimQOOKB2R1lfq7JxrE 8eWLAIs4Dw7V6pTE/2JNsbKNXEk29IbxFvncexbJBg== X-Received: by 2002:a2e:a54b:: with SMTP id e11mr24488402ljn.503.1626888252628; Wed, 21 Jul 2021 10:24:12 -0700 (PDT) MIME-Version: 1.0 References: <20210707045320.529186-1-john.stultz@linaro.org> In-Reply-To: From: John Stultz Date: Wed, 21 Jul 2021 10:24:01 -0700 Message-ID: Subject: Re: [PATCH] firmware: QCOM_SCM: Allow qcom_scm driver to be loadable as a permenent module To: Greg Kroah-Hartman Cc: lkml , Catalin Marinas , Will Deacon , Andy Gross , Bjorn Andersson , Joerg Roedel , Thomas Gleixner , Marc Zyngier , Linus Walleij , Vinod Koul , Kalle Valo , Maulik Shah , Saravana Kannan , Todd Kjos , linux-arm-msm , "list@263.net:IOMMU DRIVERS , Joerg Roedel ," , "open list:GPIO SUBSYSTEM" Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jul 21, 2021 at 4:54 AM Greg Kroah-Hartman wrote: > > On Wed, Jul 07, 2021 at 04:53:20AM +0000, John Stultz wrote: > > Allow the qcom_scm driver to be loadable as a permenent module. > > This feels like a regression, it should be allowed to be a module. I'm sorry, I'm not sure I'm following you, Greg. This patch is trying to enable the driver to be able to be loaded as a module. > > This still uses the "depends on QCOM_SCM || !QCOM_SCM" bit to > > ensure that drivers that call into the qcom_scm driver are > > also built as modules. While not ideal in some cases its the > > only safe way I can find to avoid build errors without having > > those drivers select QCOM_SCM and have to force it on (as > > QCOM_SCM=n can be valid for those drivers). > > > > Reviving this now that Saravana's fw_devlink defaults to on, > > which should avoid loading troubles seen before. > > fw_devlink was supposed to resolve these issues and _allow_ code to be > built as modules and not forced to be built into the kernel. Right. I'm re-submitting this patch to enable a driver to work as a module, because earlier attempts to submit it ran into boot trouble because fw_devlink wasn't yet enabled. I worry something in my description made it seem otherwise, so let me know how you read it and I'll try to avoid such confusion in the future. thanks -john