Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp1658614imm; Wed, 6 Jun 2018 21:12:26 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJL/8i60RySmO9o/IZmPct0RUwGg0S6njkShLdPpbgDTsWjQqR2+wRZJw9QslH2JqXdVlrt X-Received: by 2002:a17:902:8602:: with SMTP id f2-v6mr306699plo.5.1528344746191; Wed, 06 Jun 2018 21:12:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528344746; cv=none; d=google.com; s=arc-20160816; b=WgT09+2eo3NOrl3g/2MPHfHvbmQwhHTIzW1EOZFwSnT6tYzBO5sOEIwS1JgfOovF87 qZ6bSHCJjFpxZxH0omc2xnWW34JiYtsn4GPXgBVZRqc818t3uMhIbHrXK44Pyl9OfSpa 3WQIRJDK51QFcSZKYJ0QOR0Cs7Inl5q2UO/MI5aLutQQzqYNMIJOS79GKaZ1VLhredwM 4uf2s3++woWU3PMj86s5AviELRuAxv5rsNS3/KGWB4Ah4QHVNNF82Il/PkvFLO1ydvem Ezai4ePWzmrOtFYZGmldrrShImSZn8pHLBRD25YhgGasYmMCWTboIugyxBW2EENapSn6 pD4w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=QSWtmmXmygE8UDWIlFB63zDxevL13zQaEKKyEN3KUGI=; b=n34YHVHBIRDyfGReOf1t0YZNOOjP6Foq6ijkvB01CmiBGKtf5T2/qLIXjsg9qgG6Za pvZdX3L25EolBcM0i9CBtxT8JsOwDt5Bi5dTQZnjK6rd3t++UoqOo5KQPIWCqptz58Bb RaBpe7XCfNS8RQWva/q31go3/yCUOEbRC08ovYsefONy0avNH9uFI7elk2QuWqjustyY wJn4NkmPs26/K3XtrdNtUv6wCaeImGlHE3gSbxXXdOzXmOlZFzS0zrWspmwyw3XGPK83 0UpBfeVy3c3djtoKY55b83UHlYvk79K1zCtWxj7ELMaoXY7Vlfad1pA003hpEzERf8Cg mN/w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=Ga5UPEns; 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 142-v6si25596177pga.694.2018.06.06.21.12.10; Wed, 06 Jun 2018 21:12:26 -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=Ga5UPEns; 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 S1751167AbeFGELq (ORCPT + 99 others); Thu, 7 Jun 2018 00:11:46 -0400 Received: from mail.kernel.org ([198.145.29.99]:51602 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750836AbeFGELn (ORCPT ); Thu, 7 Jun 2018 00:11:43 -0400 Received: from localhost (unknown [106.200.248.73]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 603DD205F4; Thu, 7 Jun 2018 04:11:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1528344703; bh=E+xSOpO67yIH/8LYX8s3xL0jdE3Mn7TDHNHIMrREp7o=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Ga5UPEnszGyMrgXxRWthxaKrdt5MPSSAuoyE/+uUlIVdAuG+GCwQRLpci4SmPGDJ8 5tgrYOv8TxloNuJJMMSgdrI1Gp3GH+NOQU1CW5xP/DMpKiHugZGxVYrx92erw1/cx8 zJBDXuN5RDEOX2gf8xn+VwOMXfp6wXeXsWpi92wo= Date: Thu, 7 Jun 2018 09:41:34 +0530 From: Vinod To: Bjorn Andersson Cc: Sricharan R , ohad@wizery.com, robh+dt@kernel.org, mark.rutland@arm.com, andy.gross@linaro.org, david.brown@linaro.org, linux-remoteproc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-soc@vger.kernel.org, sibis@codeaurora.org Subject: Re: [PATCH] remoteproc: qcom: Introduce Hexagon V5 based WCSS driver Message-ID: <20180607041134.GF16230@vkoul-mobl> References: <1528177361-8883-1-git-send-email-sricharan@codeaurora.org> <20180605061919.GQ16230@vkoul-mobl> <3a4c102b-7228-153a-c588-b1bf00291fa8@codeaurora.org> <20180606161733.GE510@tuxbook-pro> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180606161733.GE510@tuxbook-pro> User-Agent: Mutt/1.9.2 (2017-12-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 06-06-18, 09:17, Bjorn Andersson wrote: > On Tue 05 Jun 05:56 PDT 2018, Sricharan R wrote: > > > Hi Vinod, > > > > On 6/5/2018 11:49 AM, Vinod wrote: > > > On 05-06-18, 11:12, Sricharan R wrote: > > > > > >> +config QCOM_Q6V5_WCSS > > >> + tristate "Qualcomm Hexagon based WCSS Peripheral Image Loader" > > >> + depends on OF && ARCH_QCOM > > >> + depends on QCOM_SMEM > > >> + depends on RPMSG_QCOM_SMD || (COMPILE_TEST && RPMSG_QCOM_SMD=n) > > >> + depends on RPMSG_QCOM_GLINK_SMEM || RPMSG_QCOM_GLINK_SMEM=n > > > > > > Is there a reason why it depends on RPMSG_QCOM_GLINK_SMEM=n? What would > > > happen if distro wants both this and RPMSG_QCOM_GLINK_SMEM > > > > > It says that QCOM_Q6V5_WCSS either must have a compatible state (i.e. > builtin vs builtin, module vs builtin, but not builtin vs module) or > that it's disabled, in which case we will hit the stub functions in > qcom_glink.h. > > I.e. this prevents QCOM_Q6V5_WCSS to be compiled builtin when > RPMSG_QCOM_GLINK_SMEM is module, as this would give us both stubs and > the module. IIUC, you want to have QCOM_Q6V5_WCSS and RPMSG_QCOM_GLINK_SMEM as modules or builtin So, wouldn't Kconfig syntax something like where we say: M if RPMSG_QCOM_GLINK_SMEM=m bool if RPMSG_QCOM_GLINK_SMEM=y Which makes it clear that both these have to be same type? -- ~Vinod