From patchwork Wed Jan 6 02:38:10 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alex Elder X-Patchwork-Id: 357540 Delivered-To: patch@linaro.org Received: by 2002:a02:85a7:0:0:0:0:0 with SMTP id d36csp498550jai; Tue, 5 Jan 2021 18:40:40 -0800 (PST) X-Google-Smtp-Source: ABdhPJy2squZgtDE8r2DC9SWGzqqE/4sSCUstNRFcDV9309UcelneGahZ1CjHNxyr3ZvmBJtxNaS X-Received: by 2002:a17:906:c10e:: with SMTP id do14mr20272ejc.166.1609900840533; Tue, 05 Jan 2021 18:40:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1609900840; cv=none; d=google.com; s=arc-20160816; b=cycLG6sQt5UgQRzgmXCdZTJbWQTqxKCbGKnuEgjyF7OlO7Z20UKMczWSE3HMj9yoir dFQoE7z+M/KXKT2+Pi8wnoQtuPXO5iab26B7F8lcOofniqxzzFiURW42A4oPeoIaovvk Pp8rv6J+/4iWIGRuYhrEKW3sj1/yO7KMeVbGhMApH5GQduaYVgZkBRkfBHz8Bc30shzY oQfgY99uzYBqol/d7u4781j+YcPqXStR37Qn5LeYzpquE0y7PGlVjKX5RLhTjtIR4gjw I5dER0225TqU3HUm0JDF9J7NrJVQCWLJjuaW6n7hJXo5kjvbLMbHpJW6+5eZWZu7gxTn USIQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=Gozs01SwdY8I39zxiwBamPfufMMGKBY8qkPWT8AJSEc=; b=jhi7faDRUaVTvrkOsBlVDuPJr26ai/GN5pCM65ftglptplsP6xXFuXwQz29kk4F24Y A14b6mXT6UuJjytgKr6W4AHFZaFRN5E/A+PeYUCRDwS86+llPEb+akPvRTzMLjMeGVoT veachXHvFKshixnrzFNVlh1WWTO+N7DDWepiN7oNneAqD4/wLi4XieD3Kzzlzk1qUc/O qJIohLINAXvw6KlMAgcTU8CR6vOJXqkbjRI9yDg9eWizTJY22CXz/HntLV/vtqAmEhgp 3qmfkxxwzaMXgtYXWL5kIxas3vHmfA/JC0Dil2TBiEsXRJ2xp8TWXQxGH4Txg0zgCtm5 O3HQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=zZe5RJeC; spf=pass (google.com: domain of linux-arm-msm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-arm-msm-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 29si433862edw.398.2021.01.05.18.40.40; Tue, 05 Jan 2021 18:40:40 -0800 (PST) Received-SPF: pass (google.com: domain of linux-arm-msm-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=zZe5RJeC; spf=pass (google.com: domain of linux-arm-msm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-arm-msm-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 S1726427AbhAFCjW (ORCPT + 15 others); Tue, 5 Jan 2021 21:39:22 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59168 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725730AbhAFCjV (ORCPT ); Tue, 5 Jan 2021 21:39:21 -0500 Received: from mail-io1-xd36.google.com (mail-io1-xd36.google.com [IPv6:2607:f8b0:4864:20::d36]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 71C7DC061357 for ; Tue, 5 Jan 2021 18:38:17 -0800 (PST) Received: by mail-io1-xd36.google.com with SMTP id q137so1387112iod.9 for ; Tue, 05 Jan 2021 18:38:17 -0800 (PST) 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=Gozs01SwdY8I39zxiwBamPfufMMGKBY8qkPWT8AJSEc=; b=zZe5RJeCePEPR23z2Ht9TAOno83rgGQZlZTu+zMOjyoKFVBVnN1ej1gV5gpKRujn6N sQFNLiR+5PusWNdpZsVzpwZcKEYBM/39oa4PXqwKci4+oSufCzOKgKx25lSTwMQFSJ8b KD/in9MT+D/acqUij/Ooq63ZSkRcyJBaPhdDIUpDSCKWZ7oNihzoOS1LIacLSwn5Uisg iT1UztQRa9v1o1B0kZ1cR2uC3deZ8h/+/YYYhG+KcJIZFU4T1Wjen0a8atBLFZsn+tV6 SnMsa5fWkiNzNZUH4ufYNd4u34n7uFnnlVO0WRXit88Ya7OAPqmVYk0xldqLcXOdNmKJ QQVg== 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=Gozs01SwdY8I39zxiwBamPfufMMGKBY8qkPWT8AJSEc=; b=uJNc8zZUgiK/AzNraXkEOsGdTkKQO195kzFF+FNu/gn7wRsZ9WYnNE6vGYbojpDmdK DRBxl/6xc8fuvRi/qA45pJd+Vq/Sh0Azvo2154minkN6KduHUaS+xvDvWW/vzk6HXKHr n7IDQXGAvU0W1ONBwLFhD0PXsR6K0CLHrEVvaU0jM3BZ53KOwbC4mDKcSx9uvpACCjyw esB27vnP/DnM1a/T19opS0sdD/M32hlbuaWdXNTAUCu6ZTgrwGwxYxRGtcP9nzBIC7rp /zHTl2moojFTuLBG8lTNhcNvhLTlD1Su2BbVjWCptvY+9yA6k1n6N1WRgB1Kq6Jr7iIj WZLA== X-Gm-Message-State: AOAM531na7TJJ7azPxLmM5pkxYr+dKzIpCnY9fF2vbI80P+ZPW6c97K/ T+GmM2Mt0x/0ino+rS9eO38JqHDNPSonTQ== X-Received: by 2002:a05:6638:30f:: with SMTP id w15mr2161336jap.121.1609900696885; Tue, 05 Jan 2021 18:38:16 -0800 (PST) Received: from beast.localdomain (c-73-185-129-58.hsd1.mn.comcast.net. [73.185.129.58]) by smtp.gmail.com with ESMTPSA id x2sm631755ior.42.2021.01.05.18.38.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Jan 2021 18:38:16 -0800 (PST) From: Alex Elder To: bjorn.andersson@linaro.org, agross@kernel.org, ohad@wizery.com Cc: davem@davemloft.net, kuba@kernel.org, evgreen@chromium.org, cpratapa@codeaurora.org, subashab@codeaurora.org, netdev@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-remoteproc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH net-next 1/3] remoteproc: qcom: expose types for COMPILE_TEST Date: Tue, 5 Jan 2021 20:38:10 -0600 Message-Id: <20210106023812.2542-2-elder@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20210106023812.2542-1-elder@linaro.org> References: <20210106023812.2542-1-elder@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Stub functions are defined for SSR notifier registration in case QCOM_RPROC_COMMON is not configured. As a result, code that uses these functions can link successfully even if the common remoteproc code is not built. Code that registers an SSR notifier function likely needs the types defined in "qcom_rproc.h", but those are only exposed if QCOM_RPROC_COMMON is enabled. Rearrange the conditional definition so the qcom_ssr_notify_data structure and qcom_ssr_notify_type enumerated type are defined whether or not QCOM_RPROC_COMMON is enabled. Signed-off-by: Alex Elder --- include/linux/remoteproc/qcom_rproc.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) -- 2.20.1 Reviewed-by: Bjorn Andersson diff --git a/include/linux/remoteproc/qcom_rproc.h b/include/linux/remoteproc/qcom_rproc.h index 6470516621749..82b211518136e 100644 --- a/include/linux/remoteproc/qcom_rproc.h +++ b/include/linux/remoteproc/qcom_rproc.h @@ -3,8 +3,6 @@ struct notifier_block; -#if IS_ENABLED(CONFIG_QCOM_RPROC_COMMON) - /** * enum qcom_ssr_notify_type - Startup/Shutdown events related to a remoteproc * processor. @@ -26,6 +24,8 @@ struct qcom_ssr_notify_data { bool crashed; }; +#if IS_ENABLED(CONFIG_QCOM_RPROC_COMMON) + void *qcom_register_ssr_notifier(const char *name, struct notifier_block *nb); int qcom_unregister_ssr_notifier(void *notify, struct notifier_block *nb); From patchwork Wed Jan 6 02:38:11 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alex Elder X-Patchwork-Id: 357538 Delivered-To: patch@linaro.org Received: by 2002:a02:85a7:0:0:0:0:0 with SMTP id d36csp498533jai; Tue, 5 Jan 2021 18:40:39 -0800 (PST) X-Google-Smtp-Source: ABdhPJzo2Zgvq4S6G0toUp/bVliX6xgjtJzq7MOg++oZLd5jOSwnRD90VC4Jzm7guY2zmQMQmDAs X-Received: by 2002:a17:906:3781:: with SMTP id n1mr1530138ejc.296.1609900839249; Tue, 05 Jan 2021 18:40:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1609900839; cv=none; d=google.com; s=arc-20160816; b=bs9vPwj5aw9N0y4vDWvJZHAfPVIEkl6Ul1puQQ3C59qDh1bmNALyUAgabPw6YCk8vK +/UBKWyvY5HpKr21r7p90Cw6nXChIFm+2uLBZ/Mm7AguPEIWiY8/5j/iMd0LkjkEV1aX ZO0Y4z5GgAQ2A4W3Efs0HP7hEottkxy+puT1xHdc+7qwuhZPOY8ZE1hwytwC0CmwIXOh 8vTd1jF7eC44l/qJlJow7mJkyeSdq0CB43b5oaboobK/skqDYuemy2mdQ+EC1xH9L6iu ltHeG21xtSyslLwiJAaaxOQjJ76ur4j8E3uTXVosuecx+5dBnk20XIjmON7QlYBUh1QG 71XQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=r+/PreIeRIyJhWTmPHlg8PaigpleetNErd1NQtA8DC0=; b=cGX82cf3jh591eY4ZaLI/c55IQb+TON5ifLDtSjlHf1629/fM2MlyukntCtCCaOjBt wU9QxweKAu3HACjwb92mnWWrv63Yb1sk7ZnixYc4+q1CE2+mbPD975eahUlInIp0+rX8 7oyp2yFYsVIgU4Dml9FVgGw7sgLYnzsqmxXBGcFpf/xqVVENK0IIdEAAt5O95OYewVnM kOEDHA75+/S4L18uqTyFP8pW09iZ84DkWiDsiwPdY56Df3sGZIoS/iXNHgfYsyljzIHU WKP1DmbqVhFgMKHilAMABd4jOspVC0X3EAiLLkC6Oe3KvROaEvxPyIIJ1a/duDA02/hZ 6klw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=IyvuCntz; spf=pass (google.com: domain of linux-arm-msm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-arm-msm-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 29si433862edw.398.2021.01.05.18.40.38; Tue, 05 Jan 2021 18:40:39 -0800 (PST) Received-SPF: pass (google.com: domain of linux-arm-msm-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=IyvuCntz; spf=pass (google.com: domain of linux-arm-msm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-arm-msm-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 S1726386AbhAFCjW (ORCPT + 15 others); Tue, 5 Jan 2021 21:39:22 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59176 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726352AbhAFCjV (ORCPT ); Tue, 5 Jan 2021 21:39:21 -0500 Received: from mail-io1-xd2a.google.com (mail-io1-xd2a.google.com [IPv6:2607:f8b0:4864:20::d2a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 891E3C06135C for ; Tue, 5 Jan 2021 18:38:18 -0800 (PST) Received: by mail-io1-xd2a.google.com with SMTP id t8so1396403iov.8 for ; Tue, 05 Jan 2021 18:38:18 -0800 (PST) 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=r+/PreIeRIyJhWTmPHlg8PaigpleetNErd1NQtA8DC0=; b=IyvuCntzbEM634mTKWfcIUbPNY54uF5i9qHiaIcpKFuFY/8w6hJVosc25DZdhpVjYL XcODW3DeDH5uHjt1a7ou4U3UnfBsvAZ+perIDuIgtlrsFyUSKjQ6PiNlo0ECTMP9f7f6 EEKoUOzTc0H3PtCgKB/47ASuD3rBkD2Nhr891ZrR85rOvN0+MP+VmlfnYOXLkjqlu88i iSlvs7zVNnjvqZyGCYA2SlBFupkiC9Kw535IViGkT2xNk0+zeBCswExyoXHZ+ndyMBq4 4Cm1npywEliUS4rI2N6QXfcoiej83OjGCZnHv1n0v4ng7uBKK0OoiOAWxcx+WRV0XQMT 2+GQ== 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=r+/PreIeRIyJhWTmPHlg8PaigpleetNErd1NQtA8DC0=; b=JwuISD+BEVwHyn1OIFkDttiaB3MVvAgWl8wq4IrzjLzt2dm1a17jeIPmjBPmwC4rha T37yuFiW4+1lbhh9iSNhPHxr6PzSH1e/rzoZLWrxDlrTG2GHofzar71gHNvHdxgHRfay kdRO0e5fUm43K67Sk9Rh5Hj91bnN4ek3iP1xzq8auVhMwkq/3JfiyXrh+DfWZdVt2ftD je7S1d10/CTZU85GMC07mAsfRa3IPCWlWKdcGxKQOJiZd3G8fDNjF6XaHp/ThVNDT7GO TsTqyn8CE6YiqOgrgU1jP1HoJQKIjqo0T8DGQ6oZtDmYYHQBmFNRIm/aN0qvZ9qbP5sQ PTFQ== X-Gm-Message-State: AOAM532RMSNKaDFhTQ5+Xd0wTfoMMqidrFDzQ3Hq45p4w5Fxn4ovmhrV 50wXDfpn8OzziCihknrFXHK5Vw== X-Received: by 2002:a6b:6d1a:: with SMTP id a26mr1566213iod.158.1609900698007; Tue, 05 Jan 2021 18:38:18 -0800 (PST) Received: from beast.localdomain (c-73-185-129-58.hsd1.mn.comcast.net. [73.185.129.58]) by smtp.gmail.com with ESMTPSA id x2sm631755ior.42.2021.01.05.18.38.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Jan 2021 18:38:17 -0800 (PST) From: Alex Elder To: bjorn.andersson@linaro.org, agross@kernel.org Cc: davem@davemloft.net, kuba@kernel.org, ohad@wizery.com, evgreen@chromium.org, cpratapa@codeaurora.org, subashab@codeaurora.org, netdev@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-remoteproc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH net-next 2/3] soc: qcom: mdt_loader: define stubs for COMPILE_TEST Date: Tue, 5 Jan 2021 20:38:11 -0600 Message-Id: <20210106023812.2542-3-elder@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20210106023812.2542-1-elder@linaro.org> References: <20210106023812.2542-1-elder@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Define stub functions for the exposed MDT functions in case QCOM_MDT_LOADER is not configured. This allows users of these functions to link correctly for COMPILE_TEST builds without QCOM_SCM enabled. Signed-off-by: Alex Elder --- include/linux/soc/qcom/mdt_loader.h | 35 +++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) -- 2.20.1 Reviewed-by: Bjorn Andersson diff --git a/include/linux/soc/qcom/mdt_loader.h b/include/linux/soc/qcom/mdt_loader.h index e600baec68253..afd47217996b0 100644 --- a/include/linux/soc/qcom/mdt_loader.h +++ b/include/linux/soc/qcom/mdt_loader.h @@ -11,6 +11,8 @@ struct device; struct firmware; +#if IS_ENABLED(CONFIG_QCOM_MDT_LOADER) + ssize_t qcom_mdt_get_size(const struct firmware *fw); int qcom_mdt_load(struct device *dev, const struct firmware *fw, const char *fw_name, int pas_id, void *mem_region, @@ -23,4 +25,37 @@ int qcom_mdt_load_no_init(struct device *dev, const struct firmware *fw, phys_addr_t *reloc_base); void *qcom_mdt_read_metadata(const struct firmware *fw, size_t *data_len); +#else /* !IS_ENABLED(CONFIG_QCOM_MDT_LOADER) */ + +static inline ssize_t qcom_mdt_get_size(const struct firmware *fw) +{ + return -ENODEV; +} + +static inline int qcom_mdt_load(struct device *dev, const struct firmware *fw, + const char *fw_name, int pas_id, + void *mem_region, phys_addr_t mem_phys, + size_t mem_size, phys_addr_t *reloc_base) +{ + return -ENODEV; +} + +static inline int qcom_mdt_load_no_init(struct device *dev, + const struct firmware *fw, + const char *fw_name, int pas_id, + void *mem_region, phys_addr_t mem_phys, + size_t mem_size, + phys_addr_t *reloc_base) +{ + return -ENODEV; +} + +static inline void *qcom_mdt_read_metadata(const struct firmware *fw, + size_t *data_len) +{ + return ERR_PTR(-ENODEV); +} + +#endif /* !IS_ENABLED(CONFIG_QCOM_MDT_LOADER) */ + #endif From patchwork Wed Jan 6 02:38:12 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alex Elder X-Patchwork-Id: 357539 Delivered-To: patch@linaro.org Received: by 2002:a02:85a7:0:0:0:0:0 with SMTP id d36csp498543jai; Tue, 5 Jan 2021 18:40:40 -0800 (PST) X-Google-Smtp-Source: ABdhPJxpnqLkq4UNthluup35nCEulzVvRwOIpUFqRhZrqFg+YCYUPokKlm6aCdtQDuFky0BMiS7J X-Received: by 2002:a50:fc83:: with SMTP id f3mr2497268edq.219.1609900840107; Tue, 05 Jan 2021 18:40:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1609900840; cv=none; d=google.com; s=arc-20160816; b=w7kh9GiaNMg8nSDd+PH48yup+hChCz5pBWYzWZXkFp4w6KMJzaZTh1AenMdb3kFf4p +1nPq9gC9iCJqeeGdq6CnYx0gVAyHI4ROjQnHP4S2kzniGpy/lZ8XRUTort+rPKOgHPO QOv6FNnYUWNc6iyhLk3u/xxvF/XHbreiCEtRGXrNzS0cm6rQBgF1KHJCnKCO49/1smsC WrADsJxjZCCT12KqB8BCozSdHMY0oUPrTYRzrOIcvSlAfEz9cA6cVNRk5MCsy/L/xjSL VStCqFONwatKWLyfOHgnRXlcon5XwIBODi2NlZU8VlddpG9E5g6y7FRsxFnCZh9sEYES 6LWg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=Jp4jA5VOpxCAdanHFN3bi6TajwKIp0Iz6erEpMOg0cE=; b=Z4F5lq4YlwtEtuixb2ANnErvsJp/4Lo9GmUhCy+4+NpYloQ81QL99YLR5DzhWVwm4q 2A5V9ZM2OzgjZP8jeOxUZGtaLTI7e/EnuZE2L7Zent6ZmKmj9Y9Q9RVVUFu9nUp3OQ8I dG//d9hK6ya9FhBGWjvRCgu40mHmkV0Ss7HNTNC+vZR+nxfiDqdKXULXe+91xoE1meKX bWCIjXZ26mf/ygfVpsU/NZ29msXTfXA5vz5Ax8M0XsScrM22f2D1byZ2peqyi9J6YySX LVpg/AZp+8dNSPjKlAaLyz/dmDjiXIAlcEibV0yj+LwhfN5mXRGXO86lWgnHp5/zZAHX fbNA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=rFAwaVSd; spf=pass (google.com: domain of linux-arm-msm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-arm-msm-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 29si433862edw.398.2021.01.05.18.40.39; Tue, 05 Jan 2021 18:40:40 -0800 (PST) Received-SPF: pass (google.com: domain of linux-arm-msm-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=rFAwaVSd; spf=pass (google.com: domain of linux-arm-msm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-arm-msm-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 S1725730AbhAFCjW (ORCPT + 15 others); Tue, 5 Jan 2021 21:39:22 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59178 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726371AbhAFCjV (ORCPT ); Tue, 5 Jan 2021 21:39:21 -0500 Received: from mail-io1-xd30.google.com (mail-io1-xd30.google.com [IPv6:2607:f8b0:4864:20::d30]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B4F92C06135E for ; Tue, 5 Jan 2021 18:38:19 -0800 (PST) Received: by mail-io1-xd30.google.com with SMTP id w18so1442152iot.0 for ; Tue, 05 Jan 2021 18:38:19 -0800 (PST) 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=Jp4jA5VOpxCAdanHFN3bi6TajwKIp0Iz6erEpMOg0cE=; b=rFAwaVSdLbBQiw6Kmmz1bVo0cshRtSGy6SrHqayvtCZ+SAXxc/2kt7Xfij6fwvj0gy K1Gr2dRFvZ7ninidIi5m/zsInBqSCo7kQ0Zi7jdm0QbQJYhxmYbXymccCcOErNHnljuW XcqAOBH4rsuph9FFqxpNXoTm3uA4Kp1ip6X+Q7Ah9i/bBiPt4kZJnXyBneulaYYNJ132 qLPOnkeg6AkaaG+3Nsk9szYSjZMevnmTEzr3XgfMoEwI0AiQqsylTAM4rcCcg04ucv6f Mu9fvxDc5fY2ynK7PlnamlnMqt6utThhUPMrc/ymd71zuj49yee+0Bhodx2Ro2yMes0Y KDKw== 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=Jp4jA5VOpxCAdanHFN3bi6TajwKIp0Iz6erEpMOg0cE=; b=ABQKAOLz7+HERUle4zpEhsNTCKS7ci/HvRHkTsg//3Mhb3thmamn8PK1eH23bd1Y+9 dKwxKLhuIroMpP2MpCS4MdN/wrCttdgWwnBntdWuHECNukCNanxQRZKzCSHDAfKUGK2I aq/eg9h92P0L/TxmvZkksuh7EgOCK/Q61u3+r+K1ykkEN9ntiD+jXoagyNPjY8x3nTus hQpFS8Fn8Zf8oYxsmSIduH7tilbWVF1tGQXYWsqdo98rHbxhwbxWjdZTuc3SmCPx6axB Fsi7W60Jg6o3zE4NeE5v77N7qhoKlODmebzNRZoFBCzNCkxNEH+rbgWVCEaqYvlxxFjp zIFg== X-Gm-Message-State: AOAM532UMs9G3/CnMSqIisp2ePUyywu18/cDFfNYoUcgIBFCUyPVOwJ4 CuSJSCdRDGWevX8UXTnZc6x7aw== X-Received: by 2002:a6b:5f0e:: with SMTP id t14mr1556852iob.80.1609900699177; Tue, 05 Jan 2021 18:38:19 -0800 (PST) Received: from beast.localdomain (c-73-185-129-58.hsd1.mn.comcast.net. [73.185.129.58]) by smtp.gmail.com with ESMTPSA id x2sm631755ior.42.2021.01.05.18.38.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Jan 2021 18:38:18 -0800 (PST) From: Alex Elder To: davem@davemloft.net, kuba@kernel.org Cc: bjorn.andersson@linaro.org, agross@kernel.org, ohad@wizery.com, evgreen@chromium.org, cpratapa@codeaurora.org, subashab@codeaurora.org, netdev@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-remoteproc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH net-next 3/3] net: ipa: support COMPILE_TEST Date: Tue, 5 Jan 2021 20:38:12 -0600 Message-Id: <20210106023812.2542-4-elder@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20210106023812.2542-1-elder@linaro.org> References: <20210106023812.2542-1-elder@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Arrange for the IPA driver to be built when COMPILE_TEST is enabled. Update the help text to reflect that we support two Qualcomm SoCs. Suggested-by: Jakub Kicinski Signed-off-by: Alex Elder --- drivers/net/ipa/Kconfig | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) -- 2.20.1 Reported-by: kernel test robot diff --git a/drivers/net/ipa/Kconfig b/drivers/net/ipa/Kconfig index 9f0d2a93379c5..10a0e041ee775 100644 --- a/drivers/net/ipa/Kconfig +++ b/drivers/net/ipa/Kconfig @@ -1,9 +1,10 @@ config QCOM_IPA tristate "Qualcomm IPA support" - depends on ARCH_QCOM && 64BIT && NET - depends on QCOM_Q6V5_MSS + depends on 64BIT && NET + depends on ARCH_QCOM || COMPILE_TEST + depends on QCOM_RPROC_COMMON || (QCOM_RPROC_COMMON=n && COMPILE_TEST) + select QCOM_MDT_LOADER if ARCH_QCOM select QCOM_QMI_HELPERS - select QCOM_MDT_LOADER help Choose Y or M here to include support for the Qualcomm IP Accelerator (IPA), a hardware block present in some @@ -11,7 +12,8 @@ config QCOM_IPA that is capable of generic hardware handling of IP packets, including routing, filtering, and NAT. Currently the IPA driver supports only basic transport of network traffic - between the AP and modem, on the Qualcomm SDM845 SoC. + between the AP and modem, on the Qualcomm SDM845 and SC7180 + SoCs. Note that if selected, the selection type must match that of QCOM_Q6V5_COMMON (Y or M).