Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp448956imm; Tue, 5 Jun 2018 23:50:04 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJ1G0lPpRACdSnuOmBcu0rmUQEt44kg9HFh9HjdI+iY38pQr9TtVtL46Sxy6m6wjIilnLCX X-Received: by 2002:a63:86c8:: with SMTP id x191-v6mr1564338pgd.2.1528267804140; Tue, 05 Jun 2018 23:50:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528267804; cv=none; d=google.com; s=arc-20160816; b=nHKiByDajd4IrQbz3zyup4WnKugGYSgEA961LwnUYP4GoswZfoOa34XECoLdnaRZaV nATwGxraS25ynjCVEcrtCj67r2r2B62x2CDzAksBiX5gUMtjaOXXHztOMCwDRhONcmm1 HlnfD2bBXRKrmw2Z5/fGVKPW2FDrilu/WjFJRhTERoqBNG3DRCEgMWFLUf03QSzCGV4r USclzUFuE44YaAlfeYjhy9iw5+OZ0G3iRNWF7D0ljCJ3lhWDTjPudBlDIIJBMqjsWrmR QoF5FjyW5feRaYyh2VyrWXRtjx6ufuUTzhZa4DGfGvn4aofCHGciHPt2soR1hl4Opkrt sluQ== 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=gLN6F6KcpPRQzJbTlt9CYWzGsWkFZiEaovQbFfbzeOM=; b=j0/4ot9pv7G43+T2S7NSurBfwzkoMQNFXCG5pbrS5FLuLTJUXGro4sg3QFYQXJwZ9i lk48rr4/sP2a9v8kKficV9032DAAUP+9xTW9AbSe/R995iIPLU3Y6RQaw8Tmyttby2Vu NHm+hgzB75FXNbOTPowG9yrZqjT+SCmW7lYdM5ZWWVL2/AR1wabhlM6Pa3ADYgundx++ o1laSrXMbjgSGDmspdryc5tMUOGElguuWlvxs4OoCvZhjnFM3ErVhvMsSd4jqpEZLpYk HtvnqziHrK+C6VoisbEoHd89qtXyMrcCePa6ub1Y75QaomBDTEhIcvYjpTSgZ2QtYH2p Nbhg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=YACBaxbY; 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 x4-v6si2116026pgv.592.2018.06.05.23.49.49; Tue, 05 Jun 2018 23:50:04 -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=YACBaxbY; 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 S932293AbeFFGtU (ORCPT + 99 others); Wed, 6 Jun 2018 02:49:20 -0400 Received: from mail.kernel.org ([198.145.29.99]:51264 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932164AbeFFGtS (ORCPT ); Wed, 6 Jun 2018 02:49:18 -0400 Received: from localhost (unknown [106.201.48.229]) (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 2A4712075E; Wed, 6 Jun 2018 06:49:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1528267757; bh=Na0YwHxMVfHi28cusN846d0kMKzF5cu7X3ALvtWNQBE=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=YACBaxbY+shPqeR0kDxRyKyIye+GKlrIzqwqiYp2smcNebjCp+18KlHEBaXpfmMhI Kg+yp2R5QRy4iBF4Pl0QC8TlWdTdTiDLHKjZG/CTzuqO0GVljtyOiVNB/rLcFhqWY5 k5T7GK0WPwgAzmc686+X1FXf1AQZsfktuYR107wY= Date: Wed, 6 Jun 2018 12:19:09 +0530 From: Vinod To: Sricharan R Cc: bjorn.andersson@linaro.org, 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: <20180606064909.GC16230@vkoul-mobl> References: <1528177361-8883-1-git-send-email-sricharan@codeaurora.org> <20180605061919.GQ16230@vkoul-mobl> <3a4c102b-7228-153a-c588-b1bf00291fa8@codeaurora.org> <20180605164031.GZ16230@vkoul-mobl> <1b376fc2-6a1b-1457-ffff-332954d1bef8@codeaurora.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1b376fc2-6a1b-1457-ffff-332954d1bef8@codeaurora.org> 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 Hi Sricharan, On 06-06-18, 12:09, 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 > >>> > >> RPMSG_QCOM_GLINK_SMEM=n should be for the COMPILE_TEST. Probably that > > > > why would that be a limitation? I am more worried about > > RPMSG_QCOM_GLINK_SMEM=n being the condition here. In new drivers we > > should not typically have dependency on some symbol being not there > > Without that, if RPMSG_QCOM_GLINK_SMEM=m is compiled as a module, then > it would break the build. Okay I do not know the details, but that doesn't sound correct to me. Breaking build sounds a bit extreme to me. Can you give details on this part.. > >> means that it should be corrected here and for ADSP, Q6V5_PIL as well. > >> Bjorn, is that correct ?, should it be, below ? > >> > >> depends on (RPMSG_QCOM_SMD || (COMPILE_TEST && RPMSG_QCOM_SMD=n)) || (RPMSG_QCOM_GLINK_SMEM || (COMPILE_TEST && RPMSG_QCOM_GLINK_SMEM=n)) > > > > that doesnt really sound good :( > > Hmm, but i was thinking it should functionally depend on either SMD or GLINK and not both. If you are depedent upon a symbol provided by a module you should say depends on. If a machine is not supposed to have both SMD or GLINK then the driver will not get probed. -- ~Vinod