From patchwork Tue Jul 3 07:20:28 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Niklas Cassel X-Patchwork-Id: 140911 Delivered-To: patch@linaro.org Received: by 2002:a2e:9754:0:0:0:0:0 with SMTP id f20-v6csp831820ljj; Tue, 3 Jul 2018 00:22:54 -0700 (PDT) X-Google-Smtp-Source: ADUXVKKrWUtL5eo8eE8mYgY5NRnvohHqnX9qdUOvW7WYmn6Xcc/TOGawTXD52aJYdfAoZHHQ91vl X-Received: by 2002:a17:902:a5:: with SMTP id a34-v6mr29320409pla.80.1530602574080; Tue, 03 Jul 2018 00:22:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530602574; cv=none; d=google.com; s=arc-20160816; b=RIq8lsSyfXRA9hbravAem6dWfPb5yml2+vRk/T/Q3XpBnsz91L3lStjQkk0Dzqr6Sw n41YWCwl2gz+aZTq8Ui2/eQIo8w/0Ve+mRbrPo1og0RfhT6qSOPOYbDZOjbtBLAtHW/U nnbFqtjt7n+dX93N0d32k3LiM0mh+q8M8A7/0BrO3lsVwhRSvjo+FHUZY/CU339UPEIF dUC/1tfR+xWdsrTJ2xvliFbf8bG5W9JPMX1lnrEVBGyWnXF0dgCKJuftYZ6Hets/Uu3D YlpUSjA+7JGyGnxFLNojNswzqybmotRrhICsd1T4DgnBpkTvdLncANQWt7JySvjHBgRs 8H6g== 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:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature:arc-authentication-results; bh=yVh3B2a7Tr9gfn7ZY9RqNUrCIYyj/w2OKBi1aCPSlpI=; b=b/4Wrowf4FKKE43okyRdscwB4hqU/VYQM6rbsKzWItfKnKTNzIfY3OUSPYK4qB9D1U gz8xwoTb7IrMtvdPSgsrkLGd4MCIIABQtUBw7qn3Vv5NQndhEsRJksQewAlfLINmLJcU geFlbvSMm9jtM8pGKNwrgvNWJAhz2G6VWLvXHED13257tzQ+XqJJxfX8Du7xW1dxHrYL oYMha59Wc7B2kwHOXVnT1H1mpPurLWTEOopoR0ByRp6W1zdrG56XNv7b9lbuxaozbpaW aDISNU4s3Zkc8D1jrvGqdF7Dljl6EjEoCDKllQjx9EzSD8XYGZmfZR+nBpuORsxZp7ar 111g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=OyobdCAa; 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=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r21-v6si461304pgu.55.2018.07.03.00.22.53; Tue, 03 Jul 2018 00:22:54 -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=@linaro.org header.s=google header.b=OyobdCAa; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932553AbeGCHUz (ORCPT + 31 others); Tue, 3 Jul 2018 03:20:55 -0400 Received: from mail-lf0-f65.google.com ([209.85.215.65]:33925 "EHLO mail-lf0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932120AbeGCHUw (ORCPT ); Tue, 3 Jul 2018 03:20:52 -0400 Received: by mail-lf0-f65.google.com with SMTP id n96-v6so747272lfi.1 for ; Tue, 03 Jul 2018 00:20:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=yVh3B2a7Tr9gfn7ZY9RqNUrCIYyj/w2OKBi1aCPSlpI=; b=OyobdCAaL4sjwDOJzCu8/scocB5P2ZOmKXnt9rUNYyKJpqQnzssUh2I+k7C+/5QAYi /2Ml0xh+77VSlutyQfgRf5ANJgwnFQ6Szpp99aY2HgbWJ8Cq6m2rG1gZl/njldyxoa7T eHHHXCbsVxnk0QeuuclRaztQF2zndlK7Qa3EM= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=yVh3B2a7Tr9gfn7ZY9RqNUrCIYyj/w2OKBi1aCPSlpI=; b=YiB7vvWkWm+sE3a5j9bT6NWF4j7+Pzp7HIPmIXsT+Eu5jriRrTlM1lJ52XBDP0rUR5 rpT/bswOnIimAk6/bIRYsxUhwSwLy6p7wPQbwaMH4LsAOOAeb5GaLnNfj3qHxF8p3jcH yito9MwJYIJVwmdHj62qPJN7h80oHVrjxVlL6ngsMB/b/w1h/bfzzsIeR4GW7pgjYaid XhtQJrEcesTXuk566FAuDBS1mv0TD++7f1s+1/MQSHkoDXR0LbpPPYmmUBQLgZfSjU6X QI/yL49hINa7KuDWP66RNJ+y1UwGGgoRmruqkOwcQ4FfJ+1VbwlJ2qll/PTPXdy0Zz3g ZgZQ== X-Gm-Message-State: APt69E2nGLyO4hBhjhoqlfffWKC1UjGgf2L2oaTetPCb6yW+u7Qm32JJ nDOxFILZi3kLMPEJ35uSLT/0qw== X-Received: by 2002:a19:1d8c:: with SMTP id d134-v6mr19854826lfd.56.1530602450221; Tue, 03 Jul 2018 00:20:50 -0700 (PDT) Received: from centauri.lan (h-229-118.A785.priv.bahnhof.se. [5.150.229.118]) by smtp.gmail.com with ESMTPSA id 10-v6sm65125ljh.91.2018.07.03.00.20.48 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 03 Jul 2018 00:20:49 -0700 (PDT) From: Niklas Cassel To: Andy Gross , David Brown Cc: Niklas Cassel , linux-arm-msm@vger.kernel.org, linux-soc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v3 1/6] soc: qcom: smem: Add missing include of sizes.h Date: Tue, 3 Jul 2018 09:20:28 +0200 Message-Id: <20180703072034.20213-2-niklas.cassel@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180703072034.20213-1-niklas.cassel@linaro.org> References: <20180703072034.20213-1-niklas.cassel@linaro.org> MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add missing include of sizes.h. drivers/soc/qcom/smem.c: In function ‘qcom_smem_get_ptable’: drivers/soc/qcom/smem.c:666:64: error: ‘SZ_4K’ undeclared ptable = smem->regions[0].virt_base + smem->regions[0].size - SZ_4K; ^~~~~ Signed-off-by: Niklas Cassel --- drivers/soc/qcom/smem.c | 1 + 1 file changed, 1 insertion(+) -- 2.17.1 diff --git a/drivers/soc/qcom/smem.c b/drivers/soc/qcom/smem.c index bf4bd71ab53f..b77573eed596 100644 --- a/drivers/soc/qcom/smem.c +++ b/drivers/soc/qcom/smem.c @@ -18,6 +18,7 @@ #include #include #include +#include #include #include From patchwork Tue Jul 3 07:20:30 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Niklas Cassel X-Patchwork-Id: 140910 Delivered-To: patch@linaro.org Received: by 2002:a2e:9754:0:0:0:0:0 with SMTP id f20-v6csp831644ljj; Tue, 3 Jul 2018 00:22:40 -0700 (PDT) X-Google-Smtp-Source: AAOMgpdJ4Yfa4EGYqDT4M+p50jhceRNKmnwJAuMA09o6t3DtR1SerZ5vcIeGjqCTVb1FtX6uL+za X-Received: by 2002:a62:5984:: with SMTP id k4-v6mr13948973pfj.116.1530602560109; Tue, 03 Jul 2018 00:22:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530602560; cv=none; d=google.com; s=arc-20160816; b=BVOfz28stzkjtubtF07cQR0ZnggjR5yGnOs9qPO8kr5crHm0qOQNO1w2R9LNi2sytQ oLgUi4jFmu+hVMHw40cVfp/EEfQngOh/+haz2H/i+91ENgOh9JtY13OqAL1B3tIXvNR0 HrDBu2T4UQ4q7Vx02UNqYNT1v1/ei9nzAag009SWVB0QwujMNybrvBL+YHB8Sn8ppy+y p07WoGOMXNQpXVrnY19luyuiBBFgC1Z3Xtbu4msweBloTaN4aN85bxfVUcObal7FlT0c /bw3IvadFeDaT99Uykap+nbtJ7TV6UsXGX8r7HjOcU8Rry27YM6blHn6//cbf6IqMi7a zKkA== 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:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature:arc-authentication-results; bh=nTDxugtZeyy+P8tfJ0xzeSLjoTQx+5c0GjmgeObjrYc=; b=UEJyMQsnXcA8vVUPIIe5EqFlg8xQDmRTYvrCX/0t7LEc/5kWuT4BP4HA5oqWFkLhg1 gk4ceHZrWEIOB6db33MeXs+CcW1I98vOWcv3L5oVJCN1DyI8h3or6f02Jv6oJ8tUYM7b YV8glBJH+JBVfyar2dU3pbB7Hd3NdQvZUK04NRitXYLDmNFhN+Hj36VDISDgl+U9dxBp yFD8BkfjSLXQ33tH+WUgOFgmnzKY7d7TkbCwGBixyuGImIf85sz3P1Uowk/+OPWUD2yR dVG23KZetDE2ktp+b7Rfc8AMOzEVMDY4NP6oxw1DGmsZvCmBMM618azNGNfbRGhzOoZb t/MA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=fnLN5ITV; 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=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 62-v6si507501ply.176.2018.07.03.00.22.39; Tue, 03 Jul 2018 00:22:40 -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=@linaro.org header.s=google header.b=fnLN5ITV; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932959AbeGCHVM (ORCPT + 31 others); Tue, 3 Jul 2018 03:21:12 -0400 Received: from mail-lj1-f194.google.com ([209.85.208.194]:37458 "EHLO mail-lj1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932767AbeGCHVI (ORCPT ); Tue, 3 Jul 2018 03:21:08 -0400 Received: by mail-lj1-f194.google.com with SMTP id c11-v6so705979lja.4 for ; Tue, 03 Jul 2018 00:21:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=nTDxugtZeyy+P8tfJ0xzeSLjoTQx+5c0GjmgeObjrYc=; b=fnLN5ITVuG/lobcONvxC9fGoAwBonf3xWF8MEZOFHZiqDjhme/edgjdcMxZh9p7Ov+ 5IDXMjWQypE+xGWfD3vcWFD8eYm6lbqD2UBgyLY54HAyANpFS55+8O47N385ipnCmZ0U Dhde4pE2iGTui1+DaGhK0yM5pfPWHij3OANFo= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=nTDxugtZeyy+P8tfJ0xzeSLjoTQx+5c0GjmgeObjrYc=; b=fNBy9yH4k+scfjNTcp0rOzIDPskWXJ8QZu1A9perz4utLyVNORrRZonRSEZnFOtiFZ +3ub/LrDyJ8wqRFjL3ybYeO0LtGpdivZeIHZW14W8s+9ddmtzkZP25vuXXWyPHCO2dcs b2ENVj64+4OU7UJPx+V1d2X+Ms8LMpod+uxebfTEsJLGtv5AdIZk+7ycUvHC6fppnwoR lYQzFr0QkYfdeGm49V7460noKHvWWl+pB04BLpBlupNrnx5iDUT5zy/P7kUBQCp8T0Pu 4iJR2+eaj9ModRiWNmb+1gx2hzb1ak3vcFv23N5CUh6+JeTxC7fBlVZdv1uEWZ+xHPVA hIvw== X-Gm-Message-State: APt69E38sNA/KPHuoOvYpDGtUNkvli07VKlSbRz745UMRMH4lJlr/SLi PkUqvnYfBtCdXlaiBeP2nhtYFA== X-Received: by 2002:a2e:3a0e:: with SMTP id h14-v6mr17604745lja.20.1530602467463; Tue, 03 Jul 2018 00:21:07 -0700 (PDT) Received: from centauri.lan (h-229-118.A785.priv.bahnhof.se. [5.150.229.118]) by smtp.gmail.com with ESMTPSA id k10-v6sm70519ljh.5.2018.07.03.00.21.06 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 03 Jul 2018 00:21:06 -0700 (PDT) From: Niklas Cassel To: Andy Gross , David Brown Cc: Niklas Cassel , linux-arm-msm@vger.kernel.org, linux-soc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v3 3/6] soc: qcom: smp2p: Add select IRQ_DOMAIN Date: Tue, 3 Jul 2018 09:20:30 +0200 Message-Id: <20180703072034.20213-4-niklas.cassel@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180703072034.20213-1-niklas.cassel@linaro.org> References: <20180703072034.20213-1-niklas.cassel@linaro.org> MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Since we are using irq_domain_add_linear(), add a select on IRQ_DOMAIN. This is needed in order to be able to remove the depends on ARCH_QCOM. drivers/soc/qcom/smp2p.c: In function ‘qcom_smp2p_inbound_entry’: drivers/soc/qcom/smp2p.c:317:18: error: implicit declaration of function ‘irq_domain_add_linear’ entry->domain = irq_domain_add_linear(node, 32, &smp2p_irq_ops, entry); ^~~~~~~~~~~~~~~~~~~~~ Signed-off-by: Niklas Cassel --- drivers/soc/qcom/Kconfig | 1 + 1 file changed, 1 insertion(+) -- 2.17.1 diff --git a/drivers/soc/qcom/Kconfig b/drivers/soc/qcom/Kconfig index ba79b609aca2..6e063202ad0b 100644 --- a/drivers/soc/qcom/Kconfig +++ b/drivers/soc/qcom/Kconfig @@ -134,6 +134,7 @@ config QCOM_SMP2P depends on MAILBOX depends on QCOM_SMEM select QCOM_SMEM_STATE + select IRQ_DOMAIN help Say yes here to support the Qualcomm Shared Memory Point to Point protocol. From patchwork Tue Jul 3 07:20:31 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Niklas Cassel X-Patchwork-Id: 140908 Delivered-To: patch@linaro.org Received: by 2002:a2e:9754:0:0:0:0:0 with SMTP id f20-v6csp830599ljj; Tue, 3 Jul 2018 00:21:20 -0700 (PDT) X-Google-Smtp-Source: AAOMgpdBoJPa8E054crYbcBMfroJtJ8/aoIwm6k90fV6en85aS6+MPSLXLNCWC5P3ryI1UfzVd15 X-Received: by 2002:a65:5d88:: with SMTP id f8-v6mr19071801pgt.25.1530602480180; Tue, 03 Jul 2018 00:21:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530602480; cv=none; d=google.com; s=arc-20160816; b=ISrE36o8PD5sSJzr6/SP2JLBz7Vg0EDYjj1MuLbOFzRyJTkTO7KVIAER23F/xeplZ9 r70PEbP+pAKdXMaSQjBksqV5ug7TdLqKo7WRUArcr/5nmlDvxnfm4o2nKX+i49J1DGDk io4QhbTZeuW5sv0mirT263afDZVdayIEaDDsdyF8SUH3cve1iqPtlv79DW6h0MFtE0s4 xH8gZwDFeAMMJEapjkppjb8DYh0JwoI9Fa4FqSi+Lq4/+Ochc9uzPUqddNZJL/E1DGX2 HZyz0g1URPnAHGShYboO6M1uqv8KJG11p3o8AYMa02iJ7shOY4+T8TxT1auiiv7tD1tD MNyA== 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:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature:arc-authentication-results; bh=gWq0xhxWxV67no4JMINhmTpVxhvm5IS0AvGZLSvWwr4=; b=kczuXm+XFHAPEXhujOVhJPJKv3RSvK9kpoMSELxnaE0fV0f09WUpIv1bfmqO+yaKyK x0zOYe5shf0yNA/8RbeyKOncKmLQovTu2eH6hDRjAVgg9KocsluY7xWlpgtAalZMMjUA LEKMW5D1fwGgvhBM42lZlt94sEP+kMbc2pu0EBCIKJP5z4WR3JnNI5rBESvRT/yrGH0Q 3p9Wr5lRZRtU9cdwh5182H9fisSsqDa/3M6X10OTf3aB3/30EyJP1fJ/fkdd9CLaiReb sqm1JIT5EaH5T2EYgrPiFcmV4Rb9q3ZFBEIBuQSOmY2n5zq3xsKhgtIQz8pYuUug2Jts Y/3w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=hLMUWO2h; 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=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e5-v6si438694pgs.449.2018.07.03.00.21.19; Tue, 03 Jul 2018 00:21:20 -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=@linaro.org header.s=google header.b=hLMUWO2h; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933214AbeGCHVS (ORCPT + 31 others); Tue, 3 Jul 2018 03:21:18 -0400 Received: from mail-lj1-f196.google.com ([209.85.208.196]:41306 "EHLO mail-lj1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932802AbeGCHVJ (ORCPT ); Tue, 3 Jul 2018 03:21:09 -0400 Received: by mail-lj1-f196.google.com with SMTP id a17-v6so696158ljd.8 for ; Tue, 03 Jul 2018 00:21:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=gWq0xhxWxV67no4JMINhmTpVxhvm5IS0AvGZLSvWwr4=; b=hLMUWO2hi1IVoqQ0tSEckaDJRp6BTrseujsGM60HdD+bMcgSD+9Ef9l34HFs1fYJ9o CHIE4L/m5m9pWL3ybPjaXQvpQEOQEZCoFoynZtYwVS/uc4ctq5KgRiMi0mXUmYZRTZdK ACuuSBDzd3o7MZfH7l9r+XIR6YjnqIGxp2Jf8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=gWq0xhxWxV67no4JMINhmTpVxhvm5IS0AvGZLSvWwr4=; b=qo8R63bigQ20IdE3HLoAlQyiED0ph7ycig4pulaabzlumKoNqvkWn+oJDe07Rb6qNu plLofIa2DElYQSVkF56mx7uQqIT1nNYpNIcxhKQLygyQCadS7xcPD3qw/ekxzYyd+sTX oMUfaqtfYu1lbUGDGWzPBGE0Ang2X8LjOM0bQzwQl0BzxIYO9P8pgZQjEMV9jlBx/Y5I MBqlNWOfGgeM1RTHWw4O8bcZ/rk5Qa3vYXMXRtgvhOALO1cB54q/O39bY+yI3DF1fYqe tvzpBO/M4ZLgzqjQVnxXFnTmS7CoZOvVz1q1UIoEA1orw7uAKTBwBw+M12cZEOf4j8Kw pq2g== X-Gm-Message-State: APt69E0CFliv4MDhx2NV0PDijvceMu4uafFqmlh08oJe47aOmI8nPFEo RTmvoUjodhtVFd43oRRDSjBDvw== X-Received: by 2002:a2e:8950:: with SMTP id b16-v6mr10891848ljk.111.1530602468679; Tue, 03 Jul 2018 00:21:08 -0700 (PDT) Received: from centauri.lan (h-229-118.A785.priv.bahnhof.se. [5.150.229.118]) by smtp.gmail.com with ESMTPSA id k10-v6sm70519ljh.5.2018.07.03.00.21.07 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 03 Jul 2018 00:21:08 -0700 (PDT) From: Niklas Cassel To: Andy Gross , David Brown Cc: Niklas Cassel , linux-arm-msm@vger.kernel.org, linux-soc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v3 4/6] soc: qcom: smsm: Add select IRQ_DOMAIN Date: Tue, 3 Jul 2018 09:20:31 +0200 Message-Id: <20180703072034.20213-5-niklas.cassel@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180703072034.20213-1-niklas.cassel@linaro.org> References: <20180703072034.20213-1-niklas.cassel@linaro.org> MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Since we are using irq_domain_add_linear(), add a select on IRQ_DOMAIN. This is needed in order to be able to remove the depends on ARCH_QCOM. drivers/soc/qcom/smsm.c: In function ‘smsm_inbound_entry’: drivers/soc/qcom/smsm.c:411:18: error: implicit declaration of function ‘irq_domain_add_linear’ entry->domain = irq_domain_add_linear(node, 32, &smsm_irq_ops, entry); ^~~~~~~~~~~~~~~~~~~~~ Signed-off-by: Niklas Cassel --- drivers/soc/qcom/Kconfig | 1 + 1 file changed, 1 insertion(+) -- 2.17.1 diff --git a/drivers/soc/qcom/Kconfig b/drivers/soc/qcom/Kconfig index 6e063202ad0b..7da6e67c7ea1 100644 --- a/drivers/soc/qcom/Kconfig +++ b/drivers/soc/qcom/Kconfig @@ -143,6 +143,7 @@ config QCOM_SMSM tristate "Qualcomm Shared Memory State Machine" depends on QCOM_SMEM select QCOM_SMEM_STATE + select IRQ_DOMAIN help Say yes here to support the Qualcomm Shared Memory State Machine. The state machine is represented by bits in shared memory. From patchwork Tue Jul 3 07:20:32 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Niklas Cassel X-Patchwork-Id: 140912 Delivered-To: patch@linaro.org Received: by 2002:a2e:9754:0:0:0:0:0 with SMTP id f20-v6csp831877ljj; Tue, 3 Jul 2018 00:22:58 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJYliVLJngcD/3EJhYVNLE95oaZj5EOPEJt4eoT4p28bFBX1xOApAKbqe/xvGxm54FypMui X-Received: by 2002:a65:410d:: with SMTP id w13-v6mr24134017pgp.414.1530602577988; Tue, 03 Jul 2018 00:22:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530602577; cv=none; d=google.com; s=arc-20160816; b=CD9/8j+4wtmtn0Ip2DLByuWoabBsuOGTeQroufA/Ak6Pxv/8jKCCWQ9JqKyYjLMYNr hQl366P0l7/d7B4aCqh4mB/OAuulxjF/UrZMuuMgc2H+tbV5OZs2Cq0zK/JkskzuS220 IoXxbvOH/jqXR0VzkQlpjxfVBrmoqtNqYQaYGMIv2nndxyFb9t7rVO2ZNP+4ZLHShiO7 8rKEv+z4lTaY2uPtq7o7tuvXx0p9o7c+lKV8Q4DuWapaa556ppnsOgSe03UpeuzvBznz +s4JzlTzGMv1qdW+lMZsg06b3ETEoDzvEH8EYuce5GxFRK7T7625xDXEMyrABX/P2Yep g1Mw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=0PHPETDsOiGGq3xfgwH/vt7T1bmX5m1zA8y8ZeR+hG0=; b=Uj2VB7PWI0a0wwgRrdPs3BGHzffTFah38U+4CRH9WYEav8RTWxX3DNA5Oi4KodLP1B vbqqW91KiCmEJu+in5ydPnaw29qj6+kiGKdq+I5TbqEy7zUwT2uuIqXOSXVxcF/9+196 mEO/qWCZ1h9mhXKNypaX2IZ59LX8dLp+S510oA6wnuM4WXCdX6L79qIxD3wmiMlb3Xoa D3aTUIVFAd5qnks/bcerHVylZ3X6eSRYwSpe98SoOEkjPCQZpW7U9NfZ+rnIybUobaXm yRCGNlJq+BdAEhXt8SJcQtDIkba2S4fnQYUw/3xcRP7DVD4Iil6HVaJb4T/tjqmMEYCQ hkIQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Pcm43clb; 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=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r21-v6si461304pgu.55.2018.07.03.00.22.57; Tue, 03 Jul 2018 00:22:57 -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=@linaro.org header.s=google header.b=Pcm43clb; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933181AbeGCHWy (ORCPT + 31 others); Tue, 3 Jul 2018 03:22:54 -0400 Received: from mail-lj1-f193.google.com ([209.85.208.193]:44653 "EHLO mail-lj1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932834AbeGCHVL (ORCPT ); Tue, 3 Jul 2018 03:21:11 -0400 Received: by mail-lj1-f193.google.com with SMTP id q127-v6so93834ljq.11 for ; Tue, 03 Jul 2018 00:21:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=0PHPETDsOiGGq3xfgwH/vt7T1bmX5m1zA8y8ZeR+hG0=; b=Pcm43clbEVR0KDD97bK9OM3d0G0JDVOL1xyVUC/NkXh7cwDmLoo3CHOfTTDjRoASUg cLQ1CTI+oU2lrEfMOzHclk6/FMy2tgl/Ci0zlculxFV06op6YYtl+0UIh1g97bI7Vfsm juBSZvyg2yKHnEc1c9s0tR1M0ltJYQJ8iGeDI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=0PHPETDsOiGGq3xfgwH/vt7T1bmX5m1zA8y8ZeR+hG0=; b=NipcCHZk7l8EHjWQ13vvMSb9ovafWtxs9sRJdcMpxtcKLjxSIHWV97xjC0v0r0bpwA 2RfNzrlBXGxP1uADkCTGhjWfxThGd+f+9Q8V2kIuumTRg3CE6g0ebslxjjxs8Yottgkk trYo00Y33F/CrQZp2vYJVybjBhfJC3fVMdR19QerO1Vb0IYTXnej+yDFwCXcreveqtVC a3ONBH8Rkm9jaxsrUXtbX7yi5q2gRnaSDeEBhaaT5SIB+jheIWIZJJCc0lJPRGh9vw5J 5Lh4EMwukHsHHni7rjU93GoYJiJh/nBcXr87nWZC0DS7h8B5Umq67HKynqdR9Ru7D8Ny 0wQQ== X-Gm-Message-State: APt69E17Tc3RNk0cx49FSmqCSMD7QcW0O4g3AeDwjHHV4bJLlz7GDWxX zb/a3LO4548hT6lN6WSZ0cdXJQ== X-Received: by 2002:a2e:40c6:: with SMTP id r67-v6mr2759448lje.41.1530602469858; Tue, 03 Jul 2018 00:21:09 -0700 (PDT) Received: from centauri.lan (h-229-118.A785.priv.bahnhof.se. [5.150.229.118]) by smtp.gmail.com with ESMTPSA id k10-v6sm70519ljh.5.2018.07.03.00.21.09 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 03 Jul 2018 00:21:09 -0700 (PDT) From: Niklas Cassel To: Andy Gross , David Brown Cc: Niklas Cassel , linux-arm-msm@vger.kernel.org, linux-soc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v3 5/6] soc: qcom: Remove bogus depends on OF from QCOM_SMD_RPM Date: Tue, 3 Jul 2018 09:20:32 +0200 Message-Id: <20180703072034.20213-6-niklas.cassel@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180703072034.20213-1-niklas.cassel@linaro.org> References: <20180703072034.20213-1-niklas.cassel@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org QCOM_SMD_RPM builds perfectly fine without CONFIG_OF set. Remove the bogus depends of OF. Signed-off-by: Niklas Cassel --- drivers/soc/qcom/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.17.1 diff --git a/drivers/soc/qcom/Kconfig b/drivers/soc/qcom/Kconfig index 7da6e67c7ea1..ac657164a136 100644 --- a/drivers/soc/qcom/Kconfig +++ b/drivers/soc/qcom/Kconfig @@ -114,7 +114,7 @@ config QCOM_SMEM config QCOM_SMD_RPM tristate "Qualcomm Resource Power Manager (RPM) over SMD" depends on ARCH_QCOM - depends on RPMSG && OF + depends on RPMSG help If you say yes to this option, support will be included for the Resource Power Manager system found in the Qualcomm 8974 based From patchwork Tue Jul 3 07:20:33 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Niklas Cassel X-Patchwork-Id: 140909 Delivered-To: patch@linaro.org Received: by 2002:a2e:9754:0:0:0:0:0 with SMTP id f20-v6csp830745ljj; Tue, 3 Jul 2018 00:21:30 -0700 (PDT) X-Google-Smtp-Source: AAOMgpdPm8dIo4pPFgHzBzWvHwTO8LOYngiRbl5RAayY1W9aB3TqjcyX8ocM6iBgk5OP6z+AWkwn X-Received: by 2002:a17:902:59da:: with SMTP id d26-v6mr21546335plj.42.1530602490342; Tue, 03 Jul 2018 00:21:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530602490; cv=none; d=google.com; s=arc-20160816; b=i4joDifY5Uld6YpW6Vk7sQA1xgutNrPW8Qa+9xx1rNpWMDJVpKsWbD/8KkiZ5qYuVX DYU7BIH59XY5Ohd9rdqaeaK8AkbidLUtgMhArwsio32F3sv4pUQLlSxbeXqKhLYIulxX MN1BxqoNa7I6LaFZj/yPvk9QCoIfGxvVoPhGTqgRTXvRmSiIX6MavrURNb1cjdF1gvPP lzfi+eAw2tnRPyBzJ1gqNeNDvqcCctyow5DcsQPfAl2hGcj0alEXcKIlOTWgW8gP/Swz 8k1U74VV0HJr15Ewv3nCkPYtmytON/x3jpKCaTH6W/q02HwiA5PCK47nnOGKynRovySm Dk9w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=mAhAb6Gx5VvTr8G6mqKdwiVj+JSA81/HtN577BT8Riw=; b=Yan2iDJqbAtQYdnTriUeyPN1ufgocc7x6TTfSr7Enwpa8YcU5VMXjAwqqa9HmQOjrL iEnIlACaQdgndS12HAZnMEzxQX/+qIVJ80hoHeJVjA32pdxsfrC+b+7ceNYGkjrQeQBi oE8u7o1zuDkQdaSLaHzw3sxPyJdzFdfG1GIEXs2lcqaSwD06U4BiyuvF+w3U8r+PxXrS 8fbsoepsWtaanqKaqO2j7ivSP3ZxBjEyPINs4nE3tBUr84hQl02itKt7uYRkPbjaGR7+ 3osyJ8wuv/zY/FmckX/UZCGrVP+EQSM2QORqzlvfM2yQM0NnqlCQKNg6a09ojMzFq3el AQ3g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=CHI6fezu; 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=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o3-v6si448705pgr.521.2018.07.03.00.21.30; Tue, 03 Jul 2018 00:21:30 -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=@linaro.org header.s=google header.b=CHI6fezu; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933316AbeGCHV3 (ORCPT + 31 others); Tue, 3 Jul 2018 03:21:29 -0400 Received: from mail-lj1-f193.google.com ([209.85.208.193]:46747 "EHLO mail-lj1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932802AbeGCHV0 (ORCPT ); Tue, 3 Jul 2018 03:21:26 -0400 Received: by mail-lj1-f193.google.com with SMTP id u6-v6so690896lju.13 for ; Tue, 03 Jul 2018 00:21:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=mAhAb6Gx5VvTr8G6mqKdwiVj+JSA81/HtN577BT8Riw=; b=CHI6fezu+y/PCQXI+UoK/SChwcol8AbaQ7IUN17CiTW9K5vFM6c+RIVwP6PvViHu4M YeJbe5cTTbGl9rcMbHBeILScixsC8Bt3+cioVP5CQeP53Ko1Abvq2GRiVcwKHsCA9fEK Dz9R/68dcH8rLgd45Hub5EOxpTSF0RTjzZBZw= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=mAhAb6Gx5VvTr8G6mqKdwiVj+JSA81/HtN577BT8Riw=; b=nRs7M5tXrII+T+WfYrfkTaD96JQbzdVGqNIbs+hUFxiQBwdnZGFzccx01vVy/VEmGk ddO78UoPLz4h0LwL3Tuv1bwqN4+RcB2v/hjZCaMBjPLwFCbqZlb4gGOi+qNoEk4VtAdK 3+LEp7zUs8uuwSNcN/JxnirwUaJbdG55pz3ZbXiyFBNLnKM26IF/3aot6a69ezu4gIZ5 auoUs2uHfNdSTyvqfRK58qMgOvcirVBrXdlS9Sb/bG2erxYuzMfTiZPZSVgfRAT7fZIH tEhhz+ksUSXo+b2msvLMmLhGo5WODWOy7kqffrp/8SN+IsB+s7ag2nCl5lRDUWmN5EHm PiOg== X-Gm-Message-State: APt69E2RGK7dNTBBT0N+1A4gCeECAbacZJohVujOiukW/cXqksMBSgtI p2wO78bsGmHMatzCE1TTnreKWw== X-Received: by 2002:a2e:9c82:: with SMTP id x2-v6mr11304663lji.131.1530602485572; Tue, 03 Jul 2018 00:21:25 -0700 (PDT) Received: from centauri.lan (h-229-118.A785.priv.bahnhof.se. [5.150.229.118]) by smtp.gmail.com with ESMTPSA id n17-v6sm67580ljg.55.2018.07.03.00.21.24 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 03 Jul 2018 00:21:25 -0700 (PDT) From: Niklas Cassel To: Andy Gross , David Brown Cc: Niklas Cassel , linux-arm-msm@vger.kernel.org, linux-soc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v3 6/6] soc: qcom: Allow COMPILE_TEST of qcom SoC Kconfigs Date: Tue, 3 Jul 2018 09:20:33 +0200 Message-Id: <20180703072034.20213-7-niklas.cassel@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180703072034.20213-1-niklas.cassel@linaro.org> References: <20180703072034.20213-1-niklas.cassel@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Since commit cab673583d96 ("soc: Unconditionally include qcom Makefile"), we unconditionally include the soc/qcom/Makefile. This opens up the possibility to compile test the code even when building for other architectures. Allow COMPILE_TEST for all qcom SoC Kconfigs, except for two Kconfigs that depend on QCOM_SCM, since that triggers lots of build errors in qcom_scm. Signed-off-by: Niklas Cassel --- drivers/soc/qcom/Kconfig | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) -- 2.17.1 diff --git a/drivers/soc/qcom/Kconfig b/drivers/soc/qcom/Kconfig index ac657164a136..fd09b95be0ba 100644 --- a/drivers/soc/qcom/Kconfig +++ b/drivers/soc/qcom/Kconfig @@ -33,7 +33,7 @@ config QCOM_GLINK_SSR config QCOM_GSBI tristate "QCOM General Serial Bus Interface" - depends on ARCH_QCOM + depends on ARCH_QCOM || COMPILE_TEST select MFD_SYSCON help Say y here to enable GSBI support. The GSBI provides control @@ -42,7 +42,7 @@ config QCOM_GSBI config QCOM_LLCC tristate "Qualcomm Technologies, Inc. LLCC driver" - depends on ARCH_QCOM + depends on ARCH_QCOM || COMPILE_TEST help Qualcomm Technologies, Inc. platform specific Last Level Cache Controller(LLCC) driver. This provides interfaces @@ -73,7 +73,8 @@ config QCOM_PM config QCOM_QMI_HELPERS tristate - depends on ARCH_QCOM && NET + depends on ARCH_QCOM || COMPILE_TEST + depends on NET help Helper library for handling QMI encoded messages. QMI encoded messages are used in communication between the majority of QRTR @@ -104,7 +105,7 @@ config QCOM_RPMH config QCOM_SMEM tristate "Qualcomm Shared Memory Manager (SMEM)" - depends on ARCH_QCOM + depends on ARCH_QCOM || COMPILE_TEST depends on HWSPINLOCK help Say y here to enable support for the Qualcomm Shared Memory Manager. @@ -113,7 +114,7 @@ config QCOM_SMEM config QCOM_SMD_RPM tristate "Qualcomm Resource Power Manager (RPM) over SMD" - depends on ARCH_QCOM + depends on ARCH_QCOM || COMPILE_TEST depends on RPMSG help If you say yes to this option, support will be included for the @@ -150,7 +151,7 @@ config QCOM_SMSM config QCOM_WCNSS_CTRL tristate "Qualcomm WCNSS control driver" - depends on ARCH_QCOM + depends on ARCH_QCOM || COMPILE_TEST depends on RPMSG help Client driver for the WCNSS_CTRL SMD channel, used to download nv @@ -158,7 +159,7 @@ config QCOM_WCNSS_CTRL config QCOM_APR tristate "Qualcomm APR Bus (Asynchronous Packet Router)" - depends on ARCH_QCOM + depends on ARCH_QCOM || COMPILE_TEST depends on RPMSG help Enable APR IPC protocol support between