Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp1927277imm; Thu, 7 Jun 2018 02:33:37 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJK0PQc7XYf6Dgd5IiQEtXsOIbf3FJZbAWV5c33cPlqkWpprt2ktapCt2y3vd32i3uvBI2n X-Received: by 2002:a63:6107:: with SMTP id v7-v6mr991849pgb.264.1528364017108; Thu, 07 Jun 2018 02:33:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528364017; cv=none; d=google.com; s=arc-20160816; b=Xrcb0d4sHi28N3kPdpaqY7oAtSnQlpadV13o5A0Zf/r//4GQUb2fxZscu+Ni022vf9 hKp994EDMxS00VtzvbKE3Dlwt9B3zJOFrWS8oeewObhkkSBjq8xys5yI3yBTEjHpjnOS upZeUyFJXIbLBD0wjYvuUyK2N9TzcFKFh+zBhSSfBUOInenNFxs+xMpuOt41dC+SCduC VauLGV/0DprAVVbTQJvvBurQFdP/WX5BGvyzCKwmLVV2jbBTv4ZSp5cSsvC8ljwIvhxy Zbj6EcfhH7LLjX4hva3RHse9zEDr99qCKzW5T3+E6h0lE/1UuP4aItSk2KWD3JGzSxk7 dANg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dmarc-filter :dkim-signature:dkim-signature:arc-authentication-results; bh=7UBogI9r120WBFttHL6cAh2rXZ9/3xsRfxt2m7d38Ak=; b=JbyYEGgh5RNvYD9lJk7XodgOyMdW88niYtYvsNmVkD157oyzaLra/ShYUHhV1DMs5U Isv21+Uat8d2cXzzFAV5uG1JdjtuP8Fahq2NG2knqWOLjBcAF+UtXoXPTz6hMju43K1C geLx9Wr5wCEOHoPyb3xFfLhnzrQMy02bZfGmVPvSRxHE1Lt9repeFcqOcOs7QnM4Li/z L/sYeujqT2TmsL7PfDMK/AL0J/JiI3J37W4/SZIsLShi3XZosNsIbJePnuZMlRfyhjhQ 6hljWHPPWseHZs/Z4/Us9GRktDup04pdK6F6r7eqn0mi+HXbU/cz3v0z82xO+unM7aNg /KEA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=IIzDaeQq; dkim=pass header.i=@codeaurora.org header.s=default header.b=EHiPzRNg; 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 v4-v6si51347109plo.526.2018.06.07.02.33.22; Thu, 07 Jun 2018 02:33:37 -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=@codeaurora.org header.s=default header.b=IIzDaeQq; dkim=pass header.i=@codeaurora.org header.s=default header.b=EHiPzRNg; 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 S932543AbeFGJcW (ORCPT + 99 others); Thu, 7 Jun 2018 05:32:22 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:36074 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932326AbeFGJcS (ORCPT ); Thu, 7 Jun 2018 05:32:18 -0400 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 0A625605A2; Thu, 7 Jun 2018 09:32:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1528363938; bh=4kSh2kdSGfUQrKr0i0U66kwNNGOMuejcrRNmx568Its=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=IIzDaeQqLeityhHNH+TsuP0BWXSMCAeypzIyFnCX6hbF45eQKQmO3BXNznKQ27TgX ahLYB/GBV9cXHWSdw2fSjQbfljgdCvGXKjruH3278vac83oJR/3/kwTXAXiJK8c53k it72dvG5hL1v66sxOBW+64GCm5lWoIBoAnJVbfJE= X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on pdx-caf-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.8 required=2.0 tests=ALL_TRUSTED,BAYES_00, DKIM_SIGNED,T_DKIM_INVALID autolearn=no autolearn_force=no version=3.4.0 Received: from [10.201.3.39] (blr-c-bdr-fw-01_globalnat_allzones-outside.qualcomm.com [103.229.19.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: sricharan@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id 296F5605A2; Thu, 7 Jun 2018 09:32:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1528363937; bh=4kSh2kdSGfUQrKr0i0U66kwNNGOMuejcrRNmx568Its=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=EHiPzRNglDXkeczAXDFKWv2pozfguw76ZuDcJYvzr+kBpyvWhousNAcqRG2i5AnQv eLf2ptErb6dPHhhTp5jjXbN2y1+bPzI2j4SwsHFzpaRutnxYxTEMnVAdkW8K1OiBNW d+eiV5xmMUfaxnAuPgYoka0Vk2mVMLMRNMefr2f4= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 296F5605A2 Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=none smtp.mailfrom=sricharan@codeaurora.org Subject: Re: [PATCH] remoteproc: qcom: Introduce Hexagon V5 based WCSS driver To: Vinod , Bjorn Andersson Cc: 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 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> <20180607041134.GF16230@vkoul-mobl> <20180607042443.GK510@tuxbook-pro> <20180607084348.GG16230@vkoul-mobl> From: Sricharan R Message-ID: Date: Thu, 7 Jun 2018 15:02:12 +0530 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0 MIME-Version: 1.0 In-Reply-To: <20180607084348.GG16230@vkoul-mobl> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-Antivirus: Avast (VPS 180607-0, 06/07/2018), Outbound message X-Antivirus-Status: Clean Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Vinod, On 6/7/2018 2:13 PM, Vinod wrote: > On 06-06-18, 21:24, Bjorn Andersson wrote: >> On Wed 06 Jun 21:11 PDT 2018, Vinod wrote: >> >>> So, wouldn't Kconfig syntax something like where we say: >>> M if RPMSG_QCOM_GLINK_SMEM=m >>> bool if RPMSG_QCOM_GLINK_SMEM=y >>> >> >> If we ignore SMD for a while we have the following combinations: >> >> glink/wcss >> y y - valid >> y m - valid >> y n - valid >> m y - link failure (invalid) >> m m - valid >> m n - valid >> n y - valid (platform uses wcss, but not glink) >> n m - valid (-----"-----) >> n n - valid >> >> So to distill this we have the two valid cases: >> module/no if RPMSG_QCOM_GLINK_SMEM=m >> yes/module/no if RPMSG_QCOM_GLINK_SMEM=y >> >> and the way you express that in Kconfig is the somewhat awkward >> >> depends on RPMSG_QCOM_GLINK_SMEM || RPMSG_QCOM_GLINK_SMEM=n > > Understood now :) Yes it is awkward.. > > Btw we seem to have issue with link fail here when glink is m and wcss > is y. Why don't we see link fail for glink being n? Yes I understand that > platform uses wcss but am curious how that works out :) For glink being n, the stub functions gets linked, and not for glink=m. Regards, Sricharan -- "QUALCOMM INDIA, on behalf of Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, hosted by The Linux Foundation --- This email has been checked for viruses by Avast antivirus software. https://www.avast.com/antivirus