From patchwork Mon Jun 25 14:31:05 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivas Kandagatla X-Patchwork-Id: 139848 Delivered-To: patch@linaro.org Received: by 2002:a2e:970d:0:0:0:0:0 with SMTP id r13-v6csp4065416lji; Mon, 25 Jun 2018 07:33:51 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJ20Pt3CWVPDSJtzxZneBbVXgkvQO26tYHcj685vwWReX1sOLrU7qQIQteS2Rlk6wG/9kFv X-Received: by 2002:a17:902:9681:: with SMTP id n1-v6mr13107915plp.244.1529937231366; Mon, 25 Jun 2018 07:33:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529937231; cv=none; d=google.com; s=arc-20160816; b=yx2rEJg2USd5U0swL5aNHAymtFAqsIDpw049CpObjHZfi0Qhr/Obiy1Z+15DBfmy0E xrXPppfnJYppC1BKCHP9aAzr7l58iCjtKt4Lth30OLbsIKuR32LXnqSOV6WLdwBuCKcB Dvb8pYt7AyI1B8U4ZfDO9HLCDRLiQ4qvjQOfgkDZcH+zj3FLqrlmGS+rLkybFVadjl/X I0ZI1auV3MPdA44uGf3xI/OJR0mJ7lHOXaHiIVvcOfyruTHk0T9DTuQ+qOQsbkXWShey gba4WPHT1TWtaQunC30olnsGyEAbKGFeTCKZvPUEyzrPjD4Xux/edn7zfK+kmFhKZipA aIgg== 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=FFeCzckE2c6GLrEAlBYnnl5xRW0LKXvpM47UeVXAL1A=; b=eHFAkya9DhsS3zV97ZAC6deD6hc3vsduxLeB1sjgAzDMHKfR6S2CtKswzgYtJairdM NymkvKD7wNhSljgoQfZKLDVWjbNDklOCsGit+utzn3hrm5GUp1jOIn+XFbxIVAm9AqAV DP+BlcL+vaDIklZyYz6U6S9uC/MlJTSU9j1lgNDq7p23NivgIgoG07odRvKH9JCg3nQq TbAdb0AxVeiItosmehrS7Bo40NWS8z3ohoCBwZZFlDwGIWVKpwSbtPSiK+3xayhDjioE 9YD2KLO+wghkKOkCO4/W+aVMI4QIhAf1t9chFpYmA/RNZW41rML07Boa040ZZ4s4G8Ot f+2Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=c5r76XfQ; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=fail (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 e12-v6si12023098pgn.171.2018.06.25.07.33.51; Mon, 25 Jun 2018 07:33:51 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=c5r76XfQ; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934379AbeFYOdu (ORCPT + 5 others); Mon, 25 Jun 2018 10:33:50 -0400 Received: from mail-wr0-f194.google.com ([209.85.128.194]:34856 "EHLO mail-wr0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934351AbeFYOds (ORCPT ); Mon, 25 Jun 2018 10:33:48 -0400 Received: by mail-wr0-f194.google.com with SMTP id c13-v6so3979498wrq.2 for ; Mon, 25 Jun 2018 07:33:48 -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=bpYm8/qRWGgvOzOu+GRra1Zc8ZHVeQU34aWcY4DrU1c=; b=c5r76XfQ7U1RbS9qiMxly4BS0VWuwpgu82+hbGZ+JpxHfkgM4evTpjJJsbYRoKuYNN 2AtFRVuA7VBADe9fGHAjjxE0nVCLocRMW+qFjKeE95T0Q/9pYfebW/3rCversXwI5w+j rbZdJaQRdsuYe7fvA04EyKfhMZUxMOcXg2SRg= 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=bpYm8/qRWGgvOzOu+GRra1Zc8ZHVeQU34aWcY4DrU1c=; b=pbfzHHzZFwfzEhGXeeoyWotoQHji1n0NfvhZHiqSawCZfPpef9ZLmgkqwsdSCrlNdc KWn0ZktwRaAiOqYw3hik6Km62Jku4N014YleyPqZjDP5DTj7jcpf16h45ReVcKVemjGw pZvXgLLnCVYsBXUpkWym2o70/2yqIECd7ATZrSw1dOykS/2Wgt9jU4LsK3hIR6775uKi hV6zW5mL3f+4ywxJ946+JFNErMUl0Vl4aa101F9Us5KvStl/yojSpLeLz6fpYFhoGHbg bhhVlWftoZGMoo+364AZJPw6fAnnsdVKQNbG9MqigyFcHSkvEgO+WwDYOOuSUoOnDIma j3qg== X-Gm-Message-State: APt69E2dv8knrtwX2BeBhytiG7/t7wXgd9Ffl+Eyg5ke4RwyPiAuBCkQ IM8LaoJX7Md8NHgf05pfoBQXrA== X-Received: by 2002:adf:992d:: with SMTP id x42-v6mr5830971wrb.81.1529937227541; Mon, 25 Jun 2018 07:33:47 -0700 (PDT) Received: from localhost.localdomain (cpc90716-aztw32-2-0-cust92.18-1.cable.virginm.net. [86.26.100.93]) by smtp.gmail.com with ESMTPSA id s12-v6sm1321193wrr.43.2018.06.25.07.33.46 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 25 Jun 2018 07:33:47 -0700 (PDT) From: Srinivas Kandagatla To: broonie@kernel.org, linux-arm-msm@vger.kernel.org, alsa-devel@alsa-project.org, robh+dt@kernel.org, bgoswami@codeaurora.org Cc: lgirdwood@gmail.com, plai@codeaurora.org, tiwai@suse.com, perex@perex.cz, devicetree@vger.kernel.org, rohkumar@qti.qualcomm.com, linux-arm-kernel@lists.infradead.org, srinivas.kandagatla@linaro.org, niklas.cassel@linaro.org Subject: [PATCH 01/11] ASoC: q6adm: dt-bindings: add compatible string to routing Date: Mon, 25 Jun 2018 15:31:05 +0100 Message-Id: <20180625143115.8346-2-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180625143115.8346-1-srinivas.kandagatla@linaro.org> References: <20180625143115.8346-1-srinivas.kandagatla@linaro.org> Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Add compatible string to routing so that it can support DT based module autoloading. Signed-off-by: Srinivas Kandagatla --- Documentation/devicetree/bindings/sound/qcom,q6adm.txt | 6 ++++++ 1 file changed, 6 insertions(+) -- 2.16.2 -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/Documentation/devicetree/bindings/sound/qcom,q6adm.txt b/Documentation/devicetree/bindings/sound/qcom,q6adm.txt index cb709e5dbc44..bbae426cdfb1 100644 --- a/Documentation/devicetree/bindings/sound/qcom,q6adm.txt +++ b/Documentation/devicetree/bindings/sound/qcom,q6adm.txt @@ -18,6 +18,11 @@ used by the apr service device. = ADM routing "routing" subnode of the ADM node represents adm routing specific configuration +- compatible: + Usage: required + Value type: + Definition: must be "qcom,q6adm-routing". + - #sound-dai-cells Usage: required Value type: @@ -28,6 +33,7 @@ q6adm@8 { compatible = "qcom,q6adm"; reg = ; q6routing: routing { + compatible = "qcom,q6adm-routing"; #sound-dai-cells = <0>; }; }; From patchwork Mon Jun 25 14:31:06 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivas Kandagatla X-Patchwork-Id: 139849 Delivered-To: patch@linaro.org Received: by 2002:a2e:970d:0:0:0:0:0 with SMTP id r13-v6csp4065461lji; Mon, 25 Jun 2018 07:33:53 -0700 (PDT) X-Google-Smtp-Source: ADUXVKIKPoXxoY/LeVoMpvdcAGb0X9iv3bjA9udOBh6OXaISmemaeLz+SgP0jIMx9o211ppllgg6 X-Received: by 2002:a63:ba43:: with SMTP id l3-v6mr10660860pgu.295.1529937233750; Mon, 25 Jun 2018 07:33:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529937233; cv=none; d=google.com; s=arc-20160816; b=ZY9mESToA2lv/nuFocRUnLoWyGEJl2KEMVX7Bey7b+ZfJDIWPInipmu/CZVE+5DxfV HbFSyViABw2YuWKzB1/BnLOlAoBC9FQp10GalB97WQ95udeDZ/TnUHHqOI4j4CTjTzmK Sx54Xmy22R4xDWFSivKVQUqu1ndvGTNoxy3Tj9VcQkep7EZTLWVpnRSLQaE0wjmJizqQ 1de7shy8pwQTq4sgPypasTieubLzx7fc7Urp9/UgAvehd6KHUszohHL74M8SQVkhnbLf fD00cckoEcMoyc2OaGAMI1XCJIy7pB+jID/WmESbSJlPAeMNRbtW6b7cSU0n4qj6HqnF vCag== 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=QxXuW+Xlrl3Ddh0dJjYEutCvoug41718wIfG8Fz2u5Q=; b=dqvyWcVnfC5sVRYQhkY4Y5/2eGonMDt5pLXHpZFUy7ezHhg12rRgh3Ug9ZcUt0rPx8 MT9+dD0T7OyZ08I74kh0N/+Xi3qSitZUo9/HJdcHKgTE/CoUEubDn0f647l5UzXBCe/q DcZUWdJj1FpbKtSYIuqddta6JvPzPae2MTKWUEQhCzNhYQfuQOEtPmqQXoucHhSIU+wI i1USmRbfoa2ZbwQWASkkfsaHu/MJ++3hIQJP+pEDAi7a1tqu8u3U7msxThP4VtRYDuW8 GWrlpJ0mrl0TzDtCellOuvP2ajFOvINkdY4wOhsQnSaOYtJ06BMRFHO9k6Xig4BDm9Lm 9yyw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=WpI6nlhF; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=fail (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 e12-v6si12023098pgn.171.2018.06.25.07.33.53; Mon, 25 Jun 2018 07:33:53 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=WpI6nlhF; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934385AbeFYOdv (ORCPT + 5 others); Mon, 25 Jun 2018 10:33:51 -0400 Received: from mail-wr0-f194.google.com ([209.85.128.194]:43029 "EHLO mail-wr0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934362AbeFYOdt (ORCPT ); Mon, 25 Jun 2018 10:33:49 -0400 Received: by mail-wr0-f194.google.com with SMTP id c5-v6so2767341wrs.10 for ; Mon, 25 Jun 2018 07:33:49 -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=evIhKKRQceMNeJ1V9kIzcsnSVfnqyI5/KtTUdpVuMFw=; b=WpI6nlhF//xYr705Akw9q+71ffAYXzVw9jOe4PPrSetkQEtaLgbKQI92SyKj+7XD92 4LvXUiIRxEsj4kgccKH+2V1M7OlBUJ5agQAST7wcy0P7E9gasj9MWVKu3ug0cTLkom9e S7vEk2P/usZOPlmYnkdeMsWNBPbcgPQiFvTyI= 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=evIhKKRQceMNeJ1V9kIzcsnSVfnqyI5/KtTUdpVuMFw=; b=cJ5PDK1jYTHZzeoZIn/fOodvWvHSoCtDEObo64BH64FTDaSFWdihT2N1f8KGe+9pCV FoogXNLMFCBIqmcKsx2I4mylBKNXok50o1tGpbn4LlSMhHy0VKYstQf5qfJuPX03Pilz UuXWHXiXcHPqRf8NE6EIait7JcX9YgwtgkVyPVrm7rDFkCopZss+hrfgeaXTdnciEHeY t+quB6jA8sLzwh99NeWqtQf/dY86uwcNJC/Lu+xWibxeGW+2YHTWHwInMscaIyuyhOVA mlVBOBQZC/IH4YrBoCEQUDA0nhAZrxi835MwTlkFLVkHzVu2ema0ffaq6a4WSTrlGCZ0 HTrQ== X-Gm-Message-State: APt69E0kv61DyCONQwfc5Ipd4upF7LRN3KSF8PrPYfjnCp7Y9862EDYe w0Aht/Ct8pg43VvnpOLNiY+dWQ== X-Received: by 2002:adf:c70e:: with SMTP id k14-v6mr9588766wrg.16.1529937228705; Mon, 25 Jun 2018 07:33:48 -0700 (PDT) Received: from localhost.localdomain (cpc90716-aztw32-2-0-cust92.18-1.cable.virginm.net. [86.26.100.93]) by smtp.gmail.com with ESMTPSA id s12-v6sm1321193wrr.43.2018.06.25.07.33.47 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 25 Jun 2018 07:33:48 -0700 (PDT) From: Srinivas Kandagatla To: broonie@kernel.org, linux-arm-msm@vger.kernel.org, alsa-devel@alsa-project.org, robh+dt@kernel.org, bgoswami@codeaurora.org Cc: lgirdwood@gmail.com, plai@codeaurora.org, tiwai@suse.com, perex@perex.cz, devicetree@vger.kernel.org, rohkumar@qti.qualcomm.com, linux-arm-kernel@lists.infradead.org, srinivas.kandagatla@linaro.org, niklas.cassel@linaro.org Subject: [PATCH 02/11] ASoC: q6asm: dt-bindings: add compatible string to dais Date: Mon, 25 Jun 2018 15:31:06 +0100 Message-Id: <20180625143115.8346-3-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180625143115.8346-1-srinivas.kandagatla@linaro.org> References: <20180625143115.8346-1-srinivas.kandagatla@linaro.org> Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Add compatible string to dais so that it can support DT based module autoloading. Signed-off-by: Srinivas Kandagatla --- Documentation/devicetree/bindings/sound/qcom,q6asm.txt | 6 ++++++ 1 file changed, 6 insertions(+) -- 2.16.2 -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Acked-by: Niklas Cassel diff --git a/Documentation/devicetree/bindings/sound/qcom,q6asm.txt b/Documentation/devicetree/bindings/sound/qcom,q6asm.txt index 2178eb91146f..f9c7bd8c1bc0 100644 --- a/Documentation/devicetree/bindings/sound/qcom,q6asm.txt +++ b/Documentation/devicetree/bindings/sound/qcom,q6asm.txt @@ -17,6 +17,11 @@ used by the apr service device. = ASM DAIs (Digial Audio Interface) "dais" subnode of the ASM node represents dai specific configuration +- compatible: + Usage: required + Value type: + Definition: must be "qcom,q6asm-dais". + - #sound-dai-cells Usage: required Value type: @@ -28,6 +33,7 @@ q6asm@7 { compatible = "qcom,q6asm"; reg = ; q6asmdai: dais { + compatible = "qcom,q6asm-dais"; #sound-dai-cells = <1>; }; }; From patchwork Mon Jun 25 14:31:07 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivas Kandagatla X-Patchwork-Id: 139850 Delivered-To: patch@linaro.org Received: by 2002:a2e:970d:0:0:0:0:0 with SMTP id r13-v6csp4065491lji; Mon, 25 Jun 2018 07:33:55 -0700 (PDT) X-Google-Smtp-Source: ADUXVKKya9PE5CkJo3JkAk3e4TyLQfkMsNwlSd/kG5DCOGrY80XtyMxAbu3dZY9PqqPDmDgHuQ9l X-Received: by 2002:a62:51c4:: with SMTP id f187-v6mr1536666pfb.88.1529937235331; Mon, 25 Jun 2018 07:33:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529937235; cv=none; d=google.com; s=arc-20160816; b=j1IgkWs0enoe+jqL+rjZVZ8AK56FpDN/stqsTPs5ClReJUTJ7TzZnBLaBd21MA/Gqa eKtg6fqyxBbKffiW2xW0aqQWKGeQ3uWw29rt5oXHnOl1Lbn+jCzzLY9jcEQA+YmwBBZg x5ej1wHSqd455JfwzRJCbKrON4Sug6UJqo1lZdDlm3gzGhaXFDoJtJ4qFLp8pS5NFa6E jOJkC9GXAKZiJHzM5vPC8hF0LleO08JQmqgE7U32Kdoax92M1vQ22O4Laq2hKGmj2O4Q JrNQDJpLAEL+lwWasmqxFISICd8lvWiBvG4zqQeovsjeJ6LaRr7oVp2qnGEQaDva2JAQ 2FpQ== 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=bKrGlU0QbhsmoUjTvVhKuHyE4RhV255qvdSCPGpXwqg=; b=WaXePFNpvEzkLBjmdYJM0weCuB60tdvI4qK5vVpzh55vXjJSzOqKYtkAsYrZNHb1Wy zZU2kICJ9XD+5W8K8E3sIkvZFIL1xroY1/EApfzOsc/Oj0tk6ndyH/+U2DzWyleGM6tf nZ6XiCO94WuqYjxmERxuT837iurpC4/dJZuE2qcetwQWAkuV8lHBZOsvi/JsnmxYAa3N QScvgJ9NO7yH9Kn2eEeU+wMvr5Xl98Q/ks2jnzvcnyIOQAvK1sDaKmmdsE/ij8B21LQc 0HkVCfbjd/7wEdWJtagX5WBXODaKxt0BKHh8to+4Ccjg8AeFB3Ls0nydGpiD2KmnbSek uUJw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b="jPDc/hks"; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=fail (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 e12-v6si12023098pgn.171.2018.06.25.07.33.55; Mon, 25 Jun 2018 07:33:55 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b="jPDc/hks"; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934390AbeFYOdx (ORCPT + 5 others); Mon, 25 Jun 2018 10:33:53 -0400 Received: from mail-wm0-f68.google.com ([74.125.82.68]:51108 "EHLO mail-wm0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934354AbeFYOdu (ORCPT ); Mon, 25 Jun 2018 10:33:50 -0400 Received: by mail-wm0-f68.google.com with SMTP id e16-v6so9541757wmd.0 for ; Mon, 25 Jun 2018 07:33: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; bh=HrQSUWeNwtmB0mA19fUgGndKXRUz4Sz/pMSrPHda/QY=; b=jPDc/hkslnPbLvDsBcRw5BnA2wSI9S2dVDKVa9HrZkcVWj5lA7lHUSnbYOwZhiY9Iw OM5e037cvdDQpHXLMLXuLioBmtSIRWsV9gxwp4ANBmUipdkRHEXOT4IzyGIWrdX/C0Ed QE5NpfmjgIG5TwvH2peR95D3gX1TVjYa23+Q4= 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=HrQSUWeNwtmB0mA19fUgGndKXRUz4Sz/pMSrPHda/QY=; b=PZWg95mmL+L5t/aCadbzrVGDBSAAn69/DQTwfWfu/2eLDbRkA1NEZ1xHIEX4f5LyuK ImjL1Kbf/8mIxfdlr7cYGNdnIGKmeX28ypuK2a54TIsdJlQSj6ljmKMf2coiI2PR5gnJ i32TcWXrWRq/yh1W/tA9U453OCd/eAZ/+3+yKndRt1nZzUjZMjp8ks3w+SiBYEJIjpFC ACoZJIHzP4IUBZ5Ovx5iNgkpcaBnhCh46D6R6XqakGm9j/JT5znD970/h+X79+hT5SqV oYi/XkulVw232TAFHmphCFEo6Az0XAao7wW9ps2QBd0YWFfnmZuCfQRFinVBrMp6rzPX nYPw== X-Gm-Message-State: APt69E0tbyLQDUm/FKoZXhsqbEmwrdEqX68umOovDNVW4EugrcK1SAMg 8lu2/5yJbtliTdVz7Lh5UkWvXg== X-Received: by 2002:a1c:e8c:: with SMTP id 134-v6mr1275160wmo.51.1529937229767; Mon, 25 Jun 2018 07:33:49 -0700 (PDT) Received: from localhost.localdomain (cpc90716-aztw32-2-0-cust92.18-1.cable.virginm.net. [86.26.100.93]) by smtp.gmail.com with ESMTPSA id s12-v6sm1321193wrr.43.2018.06.25.07.33.48 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 25 Jun 2018 07:33:49 -0700 (PDT) From: Srinivas Kandagatla To: broonie@kernel.org, linux-arm-msm@vger.kernel.org, alsa-devel@alsa-project.org, robh+dt@kernel.org, bgoswami@codeaurora.org Cc: lgirdwood@gmail.com, plai@codeaurora.org, tiwai@suse.com, perex@perex.cz, devicetree@vger.kernel.org, rohkumar@qti.qualcomm.com, linux-arm-kernel@lists.infradead.org, srinivas.kandagatla@linaro.org, niklas.cassel@linaro.org Subject: [PATCH 03/11] ASoC: q6afe: dt-bindings: add compatible string to dais Date: Mon, 25 Jun 2018 15:31:07 +0100 Message-Id: <20180625143115.8346-4-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180625143115.8346-1-srinivas.kandagatla@linaro.org> References: <20180625143115.8346-1-srinivas.kandagatla@linaro.org> Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Add compatible string to dais so that it can support DT based module autoloading. Signed-off-by: Srinivas Kandagatla --- Documentation/devicetree/bindings/sound/qcom,q6afe.txt | 6 ++++++ 1 file changed, 6 insertions(+) -- 2.16.2 -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/Documentation/devicetree/bindings/sound/qcom,q6afe.txt b/Documentation/devicetree/bindings/sound/qcom,q6afe.txt index bdbf87df8c0b..f7ea77ba7947 100644 --- a/Documentation/devicetree/bindings/sound/qcom,q6afe.txt +++ b/Documentation/devicetree/bindings/sound/qcom,q6afe.txt @@ -17,6 +17,11 @@ used by all apr services. Must contain the following properties. subnode of "dais" representing board specific dai setup. "dais" node should have following properties followed by dai children. +- compatible: + Usage: required + Value type: + Definition: must be "qcom,q6afe-dais" + - #sound-dai-cells Usage: required Value type: @@ -103,6 +108,7 @@ q6afe@4 { #sound-dai-cells = <1>; #address-cells = <1>; #size-cells = <0>; + compatible = "qcom,q6afe-dais"; hdmi@1 { reg = <1>; From patchwork Mon Jun 25 14:31:09 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivas Kandagatla X-Patchwork-Id: 139851 Delivered-To: patch@linaro.org Received: by 2002:a2e:970d:0:0:0:0:0 with SMTP id r13-v6csp4065523lji; Mon, 25 Jun 2018 07:33:56 -0700 (PDT) X-Google-Smtp-Source: ADUXVKIsCb2KMCNO4J3I0VI02o/3G1lvv/xLHVrf4v6leBFl0PwvhiNSLvlT3+0evMc5IRPgSxsB X-Received: by 2002:a62:506:: with SMTP id 6-v6mr2091341pff.47.1529937236474; Mon, 25 Jun 2018 07:33:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529937236; cv=none; d=google.com; s=arc-20160816; b=f7vlaT+JtfilH/Q/iaVw3cYtNaoIZl4YC2zy6rvnbMsJLOIv53mJ3/JqDgO5FngMk0 TMeyoIP7NQQjZ2JwRocRP+WiSyDDE0iofZxvZkkSIivH9N56EASCZhYxzUvhR/gODqYn ePnb/2YUoTbElFGRlBdTrS98Yz+54KRrMqsd4sNgE3A48DolXVV54oJGTQNlNxdRAJY0 MtLNCknN4CBA6ROxpXMeT17eP7SpjHmXm0GpgkxKfS/TNtE/LlLuPPWPOkknnefEMj0E C3xQrHZxwWHwxZWiWqmSgJWyy9Sx/w6I6B7nhX6vrbWQuXLRXr0L4hF72tuT4Vx+RwBQ TBDQ== 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=qfRBvFURos0W2PcERzz9Yiv1rONrH25ZW0MRBlxEZKg=; b=zGsacg0WfRhQO4MTqg6XGH5ZASNFu+Xh1+0Nb1se8cOuIlCPZT7JK9j5fxgvYRZMjX PVyK/7PXodJzcS/+/Qt3dXD9ywlBuhDUz3gqAwuMqPhLMSodzQqBx8IYtmsIMp/piSxH n/19bfGE8st7xZRCyFmMZJMGDNOJ1YBfO1MtmORWC/S1g8kSq7oIYOjKUsK73Y5F+BxM 9EvBm40UK39rNZ8aBydsWJcTr6MNVqwER/weiWGtV0ul4rAkobXyc6bIsK6jWq+VDGZx qqSUcXzH9gvdTZufYbYF6bCHDel1pOY8BEBwUaydK514BBRZf+5S5f11WMzRe7db5rEr 9F+A== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=Ia5uQDye; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=fail (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 e12-v6si12023098pgn.171.2018.06.25.07.33.56; Mon, 25 Jun 2018 07:33:56 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=Ia5uQDye; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934394AbeFYOdy (ORCPT + 5 others); Mon, 25 Jun 2018 10:33:54 -0400 Received: from mail-wr0-f196.google.com ([209.85.128.196]:35961 "EHLO mail-wr0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934350AbeFYOdx (ORCPT ); Mon, 25 Jun 2018 10:33:53 -0400 Received: by mail-wr0-f196.google.com with SMTP id f16-v6so13946946wrm.3 for ; Mon, 25 Jun 2018 07:33:52 -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=zeigN2rFjXHvJK3Jeu+ik7aelP61Hx9dVViaQbsLrsc=; b=Ia5uQDyeALxs5UPR7IAZtB05R5zd3VtuNqEsPIyPr3sRtbrPKcmNmZlVf8duq5Krfh a4Rp5EiJXaeMdx0/QAPqPdqBA2EPq1D1k3lux5OJa6wMjax+0drGA6lA8CQJtlqp2eQN OgJkIGumnxzMTg/Q8Lp0Sf7u1sN50zqD7ml6s= 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=zeigN2rFjXHvJK3Jeu+ik7aelP61Hx9dVViaQbsLrsc=; b=l/FM+Ki3/VvPjcGbxmeocEegPdX8Y6PiegZDw8U4QrYJuDFlXwNGzPJtciyAPlXnkW fMv6nQaBUCfAd5nZQmo9NCdWIxB8e4wwFx2kbxS3jIgNeljA1QN4IskfBQW9tE2ufL5Z 2UnYImlMCJAFBe6ZkW4Ndfl7UMhKk3Z7NMkxVBlsz1Sdh50hdJ3npk1eJszRvU6Z62N/ uvatnWM7RbkhfUN7qNvIzPuajd4B9M34+t1G6taKjJ4/4wl0XFyFVhIcQLIN8mkLg9X7 CURmVwwHPYITcptm6pgygBHc08Wu39RfQfz4wsk9hYzdsvR3p6fCN2Rr/UTQOHCB797S 8ZHg== X-Gm-Message-State: APt69E0fYzyKe0/XyF4AKtdOP1ANLhNnD3ULekMVAEbWA56ypMT07EJq QpY1s/4PzTu8URYtRl3x7fay+w== X-Received: by 2002:a5d:44ca:: with SMTP id z10-v6mr10803329wrr.210.1529937231990; Mon, 25 Jun 2018 07:33:51 -0700 (PDT) Received: from localhost.localdomain (cpc90716-aztw32-2-0-cust92.18-1.cable.virginm.net. [86.26.100.93]) by smtp.gmail.com with ESMTPSA id s12-v6sm1321193wrr.43.2018.06.25.07.33.50 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 25 Jun 2018 07:33:51 -0700 (PDT) From: Srinivas Kandagatla To: broonie@kernel.org, linux-arm-msm@vger.kernel.org, alsa-devel@alsa-project.org, robh+dt@kernel.org, bgoswami@codeaurora.org Cc: lgirdwood@gmail.com, plai@codeaurora.org, tiwai@suse.com, perex@perex.cz, devicetree@vger.kernel.org, rohkumar@qti.qualcomm.com, linux-arm-kernel@lists.infradead.org, srinivas.kandagatla@linaro.org, niklas.cassel@linaro.org Subject: [PATCH 05/11] ASoC: qdsp6: q6asm: use of_platform_populate/depopulate() Date: Mon, 25 Jun 2018 15:31:09 +0100 Message-Id: <20180625143115.8346-6-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180625143115.8346-1-srinivas.kandagatla@linaro.org> References: <20180625143115.8346-1-srinivas.kandagatla@linaro.org> Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Now that the child nodes have there own compatible strings, Use of_platform_populate/depopulate() instead of less common of_platform_device_create()/destroy(). Signed-off-by: Srinivas Kandagatla --- sound/soc/qcom/qdsp6/q6asm.c | 17 ++--------------- 1 file changed, 2 insertions(+), 15 deletions(-) -- 2.16.2 -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/sound/soc/qcom/qdsp6/q6asm.c b/sound/soc/qcom/qdsp6/q6asm.c index 530852385cad..2b2c7233bb5f 100644 --- a/sound/soc/qcom/qdsp6/q6asm.c +++ b/sound/soc/qcom/qdsp6/q6asm.c @@ -174,10 +174,8 @@ struct q6asm { struct device *dev; struct q6core_svc_api_info ainfo; wait_queue_head_t mem_wait; - struct platform_device *pcmdev; spinlock_t slock; struct audio_client *session[MAX_SESSIONS + 1]; - struct platform_device *pdev_dais; }; struct audio_client { @@ -1344,7 +1342,6 @@ EXPORT_SYMBOL_GPL(q6asm_cmd_nowait); static int q6asm_probe(struct apr_device *adev) { struct device *dev = &adev->dev; - struct device_node *dais_np; struct q6asm *q6asm; q6asm = devm_kzalloc(dev, sizeof(*q6asm), GFP_KERNEL); @@ -1359,22 +1356,12 @@ static int q6asm_probe(struct apr_device *adev) spin_lock_init(&q6asm->slock); dev_set_drvdata(dev, q6asm); - dais_np = of_get_child_by_name(dev->of_node, "dais"); - if (dais_np) { - q6asm->pdev_dais = of_platform_device_create(dais_np, - "q6asm-dai", dev); - of_node_put(dais_np); - } - - return 0; + return of_platform_populate(dev->of_node, NULL, NULL, dev); } static int q6asm_remove(struct apr_device *adev) { - struct q6asm *q6asm = dev_get_drvdata(&adev->dev); - - if (q6asm->pdev_dais) - of_platform_device_destroy(&q6asm->pdev_dais->dev, NULL); + of_platform_depopulate(&adev->dev); return 0; } From patchwork Mon Jun 25 14:31:10 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivas Kandagatla X-Patchwork-Id: 139853 Delivered-To: patch@linaro.org Received: by 2002:a2e:970d:0:0:0:0:0 with SMTP id r13-v6csp4065603lji; Mon, 25 Jun 2018 07:34:00 -0700 (PDT) X-Google-Smtp-Source: ADUXVKIdCEKcGJddBRElwBVSf5wh0gXpTeOETEYYkgj30gnXmA/CIxnWdVw6TSCY6490r6gah85m X-Received: by 2002:a65:6292:: with SMTP id f18-v6mr4951944pgv.85.1529937240779; Mon, 25 Jun 2018 07:34:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529937240; cv=none; d=google.com; s=arc-20160816; b=oKrbVrD8i7xXj+6T92BLbGFeeGg1HUbyxe0V7fBmZjh0qBYEL7caeJL6FOoVAOCyK5 r+WsWAm8YeWSvLggefGELB/3e674YsthTITTHfYPYHB0f5BNevzoDHIGdcBc219XMK1a 9Ujs/jvIZK5/14ItwzU/v5Qtxr1JUe1JaBSvH5gwh2IV3epKRupXvtloBJEB8LAgbyZZ +Cs0hxxG3W6o4dXf9hozUTC8oVam8n13rbAfDAEi9Ut8rh+t+9H1/jjCw88HBNXXQmjz CUbI72eXGbsfFFYMxNkhcj+4IXLB9dkzW/Qj4Be9L24FH7LrlyM3Rvh+VlTV+Q4jI7+3 QYQw== 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=pVheAfpbgXsiTavEES3KqOHFUPnh1WUPhYmcNbR+XaE=; b=PwtjWKGoDViZ0p7qP3xwp15B4J9tpHTgO0JXrRF7yUFfK2srbqcA0UDEastWjLpCOT yLDje7jkqVpnpWoM+b19feMA4R0tnI05aKVrQyqWPCwVLK+dJJYcBhxrTB9hRMxP3gBI EaMGZO7xVHHbUWGNQS8CdTMAMLvmIT09Gg7mdUt0tk8AyilmybTRQ5kG30SGHrpJXWRn 2zwQ9oI0yGjIU3H/YiGTTmiFbK4LhQtLpBw2jhf29Sq+SQQIAqFWhGtJyA/jMtl9sZBM yQM/V5+ErKP/r1f5bFhigHSZVy24wgg77B8zyHQKLsVw0Lb9ioGKGvoxWXUu7tPT/Y0e tA3Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=B3cQufyN; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=fail (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 e12-v6si12023098pgn.171.2018.06.25.07.34.00; Mon, 25 Jun 2018 07:34:00 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=B3cQufyN; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934362AbeFYOd6 (ORCPT + 5 others); Mon, 25 Jun 2018 10:33:58 -0400 Received: from mail-wm0-f68.google.com ([74.125.82.68]:55222 "EHLO mail-wm0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934384AbeFYOdy (ORCPT ); Mon, 25 Jun 2018 10:33:54 -0400 Received: by mail-wm0-f68.google.com with SMTP id i139-v6so2584992wmf.4 for ; Mon, 25 Jun 2018 07:33:53 -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=V9fItdkIf9/Eje17AqtFgZkCUqq9lCnLmyPrZxXcchE=; b=B3cQufyNHBwLpVjoG2hkrhpK/j+9RLnYUcsPT7BCgT8wM4gNfnx9ogUgd1Dpd2Qwjk zSXzuyqmp7ucDZnUSouh2oR8qAo9sl07be+xwUn/rpw9fIVAHhSnxoy6JFAphBwtK/sG oEuJLsGWpjwLOyHU5gnc0lt8jaeTSzEl/50PA= 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=V9fItdkIf9/Eje17AqtFgZkCUqq9lCnLmyPrZxXcchE=; b=sdUZJNVJaGDD/RACNE48PdavU19aqT/gU/2zd9Ur5I+ke0pdDKlcfU+SxTeugO/7iY Ymdl778LOEPssO7FxmOxUAWKIFBtZ6TYZGUU/38YV2yg0maPN9MrmK9I43mQ73tx3EeK 0vTPDEYPnsWAoq4nVtSOhRlA4dYXN2rDNIyNYAwp/o4wfu38p3LX38emFH0tVSsX30yC ztX1vmKtaFNE/XBwAECkvD9gcMa1XeKpvyimDKfMG2jh8Jkp8Uwkc9Wb3LhCxW9v0Su3 U7GoqvuKrcvcW4nU+l+uiWy+KZkoCO3HjuB1U4VYb04yrMADoUvV/KAB0/AXkL2UVLCR Q27Q== X-Gm-Message-State: APt69E0bnZBZxi1ka+zRqp3B7La3qbyM+H3t8YZ1dyeblBlPk+ISf+I8 7mV91p+S29n/LMJHxCQ+KhNCLg== X-Received: by 2002:a1c:c3c6:: with SMTP id t189-v6mr1296015wmf.41.1529937233093; Mon, 25 Jun 2018 07:33:53 -0700 (PDT) Received: from localhost.localdomain (cpc90716-aztw32-2-0-cust92.18-1.cable.virginm.net. [86.26.100.93]) by smtp.gmail.com with ESMTPSA id s12-v6sm1321193wrr.43.2018.06.25.07.33.52 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 25 Jun 2018 07:33:52 -0700 (PDT) From: Srinivas Kandagatla To: broonie@kernel.org, linux-arm-msm@vger.kernel.org, alsa-devel@alsa-project.org, robh+dt@kernel.org, bgoswami@codeaurora.org Cc: lgirdwood@gmail.com, plai@codeaurora.org, tiwai@suse.com, perex@perex.cz, devicetree@vger.kernel.org, rohkumar@qti.qualcomm.com, linux-arm-kernel@lists.infradead.org, srinivas.kandagatla@linaro.org, niklas.cassel@linaro.org Subject: [PATCH 06/11] ASoC: qdsp6: q6afe: use of_platform_populate/depopulate() Date: Mon, 25 Jun 2018 15:31:10 +0100 Message-Id: <20180625143115.8346-7-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180625143115.8346-1-srinivas.kandagatla@linaro.org> References: <20180625143115.8346-1-srinivas.kandagatla@linaro.org> Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Now that the child nodes have there own compatible strings, Use of_platform_populate/depopulate() instead of less common of_platform_device_create()/destroy(). Signed-off-by: Srinivas Kandagatla --- sound/soc/qcom/qdsp6/q6afe.c | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) -- 2.16.2 -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Acked-by: Niklas Cassel diff --git a/sound/soc/qcom/qdsp6/q6afe.c b/sound/soc/qcom/qdsp6/q6afe.c index 01f43218984b..621b67b34db9 100644 --- a/sound/soc/qcom/qdsp6/q6afe.c +++ b/sound/soc/qcom/qdsp6/q6afe.c @@ -316,7 +316,6 @@ struct q6afe { struct mutex lock; struct list_head port_list; spinlock_t port_list_lock; - struct platform_device *pdev_dais; }; struct afe_port_cmd_device_start { @@ -1438,7 +1437,6 @@ static int q6afe_probe(struct apr_device *adev) { struct q6afe *afe; struct device *dev = &adev->dev; - struct device_node *dais_np; afe = devm_kzalloc(dev, sizeof(*afe), GFP_KERNEL); if (!afe) @@ -1453,22 +1451,12 @@ static int q6afe_probe(struct apr_device *adev) dev_set_drvdata(dev, afe); - dais_np = of_get_child_by_name(dev->of_node, "dais"); - if (dais_np) { - afe->pdev_dais = of_platform_device_create(dais_np, - "q6afe-dai", dev); - of_node_put(dais_np); - } - - return 0; + return of_platform_populate(dev->of_node, NULL, NULL, dev); } static int q6afe_remove(struct apr_device *adev) { - struct q6afe *afe = dev_get_drvdata(&adev->dev); - - if (afe->pdev_dais) - of_platform_device_destroy(&afe->pdev_dais->dev, NULL); + of_platform_depopulate(&adev->dev); return 0; } From patchwork Mon Jun 25 14:31:11 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivas Kandagatla X-Patchwork-Id: 139852 Delivered-To: patch@linaro.org Received: by 2002:a2e:970d:0:0:0:0:0 with SMTP id r13-v6csp4065574lji; Mon, 25 Jun 2018 07:33:59 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJS4GGZg0w09D8TLBalRRUoSoHF85tAdT89tJhmlMHptuiXqmvK14SrURd7NtvxsdpxFdPv X-Received: by 2002:a63:9f1a:: with SMTP id g26-v6mr10662626pge.178.1529937238958; Mon, 25 Jun 2018 07:33:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529937238; cv=none; d=google.com; s=arc-20160816; b=I2jVeU652uuYDAtfXIxJDJPBp0F0/bFIYY0C/T/8f0cGyCn41YOkR83HVl5NneqG7y uDE9Iw36JfxQLfk6aDvGjzmd+JqBs5vPf5rtVKbYyZTIuOdtaX2hZZEKdUAGdNID3jf/ hNBylThFm/KjJZo/2pDBqE6sMI7sDB7nWHFBVX1ZdJnTV9wDnGjkVXoooYJLP+pmbnho 5PjDDPKDKZgkipULEwE+5xT1YmjiqFBF0piFzcP8pjp7Ume8062+eVJRQ5iarm22F6q6 7X83l1ZLnQHoRtdK7yt2qMuzpUdhaxFByG0rWUkUH6Yjf//Z325Ne5AZv8XUCL4BmS7k DfNQ== 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=bGw/2eKPpGYoJA3WXMnVb3gszyUYpUcYCDItYyehcoo=; b=Rl0wmE8FVLjD/WXLrBpRdtWJCG9Rjbbb43yw9MdSWfa636RbW2rwYdp8gpolL54fpB Lk0Lc7eZHFbJ4e9aPjoCcin0F6vA+fSkUZ1X+7HEqOpacKCe/Xe7iiyOapugKZPbyPGs 06t46dqogjEj79KDtQ3pOHbAw1DNAAma6Sgl0ICjL4d5JUDy1nvugm/gHK4BTXgnPcPr C0F09gsz1PnOgqyn91bG6Dx6nzXRT/JzdYIh3DZJdeED98lEXTS7mSLhxT3j/V/QlJ9w sUBXgeCg/oPYrAe2NV7OdazXmi3Vk4Y2U8RIiNAapwBi1nb+8tdhKNQiaO//TnWkmbTe WOYw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=LnbdgASW; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=fail (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 e12-v6si12023098pgn.171.2018.06.25.07.33.58; Mon, 25 Jun 2018 07:33:58 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=LnbdgASW; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934401AbeFYOd5 (ORCPT + 5 others); Mon, 25 Jun 2018 10:33:57 -0400 Received: from mail-wr0-f194.google.com ([209.85.128.194]:39397 "EHLO mail-wr0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934362AbeFYOdz (ORCPT ); Mon, 25 Jun 2018 10:33:55 -0400 Received: by mail-wr0-f194.google.com with SMTP id b8-v6so8498439wro.6 for ; Mon, 25 Jun 2018 07:33:55 -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=rkkFJzMwUaC4ayLW9mzkgpwbfpEpmgya6G5Oc2Futpw=; b=LnbdgASWRp0ITWyxdCuJmigkYV3U8U7f1W7J5JL8oVfdixtjs+eDY1gVS8hkHZWpAL 80Bw+5lFfpPWsuSmi7HhSCbsGRdc2BnPPPF6GlqkGssaFrSo7yOZKNmJsK1GYs6Z08/j SkF6MjeKO8t6JiqAIj1rZa8nwbRQkqWNeT46s= 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=rkkFJzMwUaC4ayLW9mzkgpwbfpEpmgya6G5Oc2Futpw=; b=m6AE9rDQEsrdxVHdTBjvIJCZ1CfTQZvyHAAocbgF+YryB2AFR6af4ITQkjwmULcJNj zOo1mRg4KpA596Maq4AXXTzCbyuUIV5KyrJTomeQs7MVIkckyxF7Xy3r7n2mTciUUiJc vt3ZDXfhMo/Q3njbmLtiS++quYmQiYsu/Frjpgbr2AFSKw8MIHivhi2lYEq/KcifM0HU XevaLRr8K135OawmMBzhDQx3XYobC2nI+RMPCUi0sJgud7jmg05B3ARy9fZx0rz79eCw nyOLsr52hTyNxQWD/C0+lGp18JVDnRSKgisjLa9EsUZJmYv3n7prjBVyxtG1osYurYTX wBbw== X-Gm-Message-State: APt69E1mWlaWYt3+tkcO1A4WtSA0nbynW2WC4V4bLAFdIenJqXQyf82K LyrypFBFw/ckGcnZA/uH9FUamw== X-Received: by 2002:a5d:4806:: with SMTP id l6-v6mr755303wrq.24.1529937234400; Mon, 25 Jun 2018 07:33:54 -0700 (PDT) Received: from localhost.localdomain (cpc90716-aztw32-2-0-cust92.18-1.cable.virginm.net. [86.26.100.93]) by smtp.gmail.com with ESMTPSA id s12-v6sm1321193wrr.43.2018.06.25.07.33.53 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 25 Jun 2018 07:33:53 -0700 (PDT) From: Srinivas Kandagatla To: broonie@kernel.org, linux-arm-msm@vger.kernel.org, alsa-devel@alsa-project.org, robh+dt@kernel.org, bgoswami@codeaurora.org Cc: lgirdwood@gmail.com, plai@codeaurora.org, tiwai@suse.com, perex@perex.cz, devicetree@vger.kernel.org, rohkumar@qti.qualcomm.com, linux-arm-kernel@lists.infradead.org, srinivas.kandagatla@linaro.org, niklas.cassel@linaro.org Subject: [PATCH 07/11] ASoC: qdsp6: q6afe-dai: support dt based module loading Date: Mon, 25 Jun 2018 15:31:11 +0100 Message-Id: <20180625143115.8346-8-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180625143115.8346-1-srinivas.kandagatla@linaro.org> References: <20180625143115.8346-1-srinivas.kandagatla@linaro.org> Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org This patch uses new compatible string to make DT based module loading work. Signed-off-by: Srinivas Kandagatla --- sound/soc/qcom/qdsp6/q6afe-dai.c | 8 ++++++++ 1 file changed, 8 insertions(+) -- 2.16.2 -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/sound/soc/qcom/qdsp6/q6afe-dai.c b/sound/soc/qcom/qdsp6/q6afe-dai.c index 5002dd05bf27..7fbf762a45ac 100644 --- a/sound/soc/qcom/qdsp6/q6afe-dai.c +++ b/sound/soc/qcom/qdsp6/q6afe-dai.c @@ -1290,9 +1290,17 @@ static int q6afe_dai_dev_remove(struct platform_device *pdev) return 0; } +static const struct of_device_id q6afe_dai_device_id[] = { + { .compatible = "qcom,q6afe-dais" }, + {}, +}; + +MODULE_DEVICE_TABLE(of, q6afe_dai_device_id); + static struct platform_driver q6afe_dai_platform_driver = { .driver = { .name = "q6afe-dai", + .of_match_table = of_match_ptr(q6afe_dai_device_id), }, .probe = q6afe_dai_dev_probe, .remove = q6afe_dai_dev_remove, From patchwork Mon Jun 25 14:31:12 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivas Kandagatla X-Patchwork-Id: 139855 Delivered-To: patch@linaro.org Received: by 2002:a2e:970d:0:0:0:0:0 with SMTP id r13-v6csp4065631lji; Mon, 25 Jun 2018 07:34:02 -0700 (PDT) X-Google-Smtp-Source: ADUXVKKw8X1IKQIB15fHeq+5u0BSmRt5/IFQoVcSZre0SP+m1JvDdIdVp30FXIT4h0PPaBFJlG+S X-Received: by 2002:a62:591a:: with SMTP id n26-v6mr13320443pfb.162.1529937242132; Mon, 25 Jun 2018 07:34:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529937242; cv=none; d=google.com; s=arc-20160816; b=ioyjwFYk/ZTPnxzFs91VdPFcxTH7815IZ+7GTJNmqU9I1gXx9ZAZ3eZcEK1JpZe8jF T5z3KScqokXNBEPixvlpjtGcTPjlWnZUxxusufExcyQ3tKW4I5X3ocXllez3wbX56fuO dmov/BBJ675L0AcZ5zm6Qt69aS9UGEx/9i1BPdAFRMBdEhGChb1ifhPSDrPhEk9uf96D gqNh07YXNF3LX+VLEwKWXuIus93w1QpSdw+uadY3ZBOnd87Pyu6SJHwbXYisbczm4n/4 1VTHFZhD2fmFmZ0LMMGBRyoodzoOna2Tjnzh4xcIYjGVQAp9qYcqT2acfkX2hj1mKZ8S Sd8w== 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=HlGTRq+E7PmkkIH0t3BK1s+soJImCKY7jNdJg1NEXBA=; b=STh8YN7dyIXqwFM4FyZeqfn9U5E4uLpM3B5zJzp09+CRC87hXs2piR5bUd5MxP/TQS CNizYw+MlVDduIgHJTMRIwg5URMg/1JTx82XpcddwTj+LaSLm5wP4ZNmpKGjJVU6WIEH Rr8+SW6Fs3+xeaw9Xcfuax5TTsfVOWaZng35WbRXE6r9gg6xFjDk/mJloiYrNshqmfj8 VFyYOUq/u38PXL3jl6RfXToagWia+cQzgSds+nJtZpWeh7sdgxiXim/Fb9tPJkSyft3s 2oqrMc6hQ+JW9qJZp2X5gWpcRNQ3xbrDgsQIcoFUePNDceKjl+Ms0COaYhSKdhNcO6XX l2YA== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b="jl/pXgGB"; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=fail (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 e12-v6si12023098pgn.171.2018.06.25.07.34.01; Mon, 25 Jun 2018 07:34:02 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b="jl/pXgGB"; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934411AbeFYOeA (ORCPT + 5 others); Mon, 25 Jun 2018 10:34:00 -0400 Received: from mail-wm0-f66.google.com ([74.125.82.66]:51120 "EHLO mail-wm0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934397AbeFYOd4 (ORCPT ); Mon, 25 Jun 2018 10:33:56 -0400 Received: by mail-wm0-f66.google.com with SMTP id e16-v6so9542169wmd.0 for ; Mon, 25 Jun 2018 07:33:56 -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=+qvRbItA/G7OeOIq25CY9K/qaZ31ljwfkPtSCMBwAww=; b=jl/pXgGBaA8qApDuTiq1fFnt6s6lxMdKtAICH/fhEPDiXInhz+ywtYdTOmjlGuL41k zFbAqYXnOutwQVh8FpaAYWmdVpaLAOGyOfbAq7ZpSqk2Frsf1/v9A7/Ea+6RVDkcyFZY co+cDUMgRBtwqIsG3UzmM/AVWqgBGhDZgy+vk= 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=+qvRbItA/G7OeOIq25CY9K/qaZ31ljwfkPtSCMBwAww=; b=S/ybE78F7ICz+G6q3vOxmbX7Zw5DDzhJZqF6awsmehMTavF/Cf8JN7W5bpNqXDqcf5 XMwntUcTURcfdo9QY+POCdPe3o8bUo9T/Sg7YQYNsZBXCFw3s292NvQcVAowYTPiXhtT CYyjNLP07n7ziRPjoI5vQOpSTvhnDVt0q8mkQ04MN59cLeSTqrlpiqnJz5+s52DLFdKv 8QvicQUv9NKK7NzNEGL5z1GPq7vMwj/Lsxe4xzzgCdewRIADb7hh9+bn9xXrSmog/XMk eJ4i8Qtp+fPrDAXQGPddKZkODqdnyG/Ttpw+h1NW967kUtDzoSSoxRuKg0qF0LsWfaNh BeEw== X-Gm-Message-State: APt69E390W15ZElW1HL3k5dul9EpW0Z1NbtQ8O/m1R5KBNEl8SjLS9a2 JDpKFp2tvomvHVzawKHBDxyp4w== X-Received: by 2002:a1c:e8c:: with SMTP id 134-v6mr1275457wmo.51.1529937235556; Mon, 25 Jun 2018 07:33:55 -0700 (PDT) Received: from localhost.localdomain (cpc90716-aztw32-2-0-cust92.18-1.cable.virginm.net. [86.26.100.93]) by smtp.gmail.com with ESMTPSA id s12-v6sm1321193wrr.43.2018.06.25.07.33.54 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 25 Jun 2018 07:33:55 -0700 (PDT) From: Srinivas Kandagatla To: broonie@kernel.org, linux-arm-msm@vger.kernel.org, alsa-devel@alsa-project.org, robh+dt@kernel.org, bgoswami@codeaurora.org Cc: lgirdwood@gmail.com, plai@codeaurora.org, tiwai@suse.com, perex@perex.cz, devicetree@vger.kernel.org, rohkumar@qti.qualcomm.com, linux-arm-kernel@lists.infradead.org, srinivas.kandagatla@linaro.org, niklas.cassel@linaro.org Subject: [PATCH 08/11] ASoC: qdsp6: q6asm-dai: support dt based module loading Date: Mon, 25 Jun 2018 15:31:12 +0100 Message-Id: <20180625143115.8346-9-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180625143115.8346-1-srinivas.kandagatla@linaro.org> References: <20180625143115.8346-1-srinivas.kandagatla@linaro.org> Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org This patch uses new compatible string to make DT based module loading work. Signed-off-by: Srinivas Kandagatla --- sound/soc/qcom/qdsp6/q6asm-dai.c | 8 ++++++++ 1 file changed, 8 insertions(+) -- 2.16.2 -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/sound/soc/qcom/qdsp6/q6asm-dai.c b/sound/soc/qcom/qdsp6/q6asm-dai.c index 349c6a883c63..4ac9c66b2262 100644 --- a/sound/soc/qcom/qdsp6/q6asm-dai.c +++ b/sound/soc/qcom/qdsp6/q6asm-dai.c @@ -611,9 +611,17 @@ static int q6asm_dai_dev_remove(struct platform_device *pdev) return 0; } +static const struct of_device_id q6asm_dai_device_id[] = { + { .compatible = "qcom,q6asm-dais" }, + {}, +}; + +MODULE_DEVICE_TABLE(of, q6asm_dai_device_id); + static struct platform_driver q6asm_dai_platform_driver = { .driver = { .name = "q6asm-dai", + .of_match_table = of_match_ptr(q6asm_dai_device_id), }, .probe = q6asm_dai_probe, .remove = q6asm_dai_dev_remove, From patchwork Mon Jun 25 14:31:13 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivas Kandagatla X-Patchwork-Id: 139858 Delivered-To: patch@linaro.org Received: by 2002:a2e:970d:0:0:0:0:0 with SMTP id r13-v6csp4065756lji; Mon, 25 Jun 2018 07:34:08 -0700 (PDT) X-Google-Smtp-Source: ADUXVKI3v9kryYsGBKYiwAQ0aZ3YGC+O7d1C9i8YsujXhh2OheX/QlfNr07Y0X7u1xDRkPy9bmpK X-Received: by 2002:a63:686:: with SMTP id 128-v6mr7715710pgg.338.1529937248117; Mon, 25 Jun 2018 07:34:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529937248; cv=none; d=google.com; s=arc-20160816; b=YnBneK8Kcl6HpkobI0BZDSpw7CGeSEyLsrb1fS3iL+se1UCUvwwPdxNTb4XIJXeCus XCdnXu+QXDp+EweY9jHnb6GjmEcwIB0k/lxuy3AszChJrplVsRc8muSthm+v1aw1hLq6 Wo1yuJ3Sv+jxt9FdaL6+XDnkZGHJgr9SmtIogaHE+hEqiTyYd0ULk5l26l50qxEzYRSA +nTf3lyXUmAj68iOBQrDIZLLcXBnOkuvg0ygyKI3Q0J5wJQoUh6gi7lNnZtzcxBijYdg W1MjeImaGvC/Dz9z6qW7WiRTi6xlDfo/IrFg03SxZRJkTLecvCxJYUZx7wIq2hG61TVJ YH8w== 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=6Uw6Wa1cWM8nDlKlLGf0buZ5XZESZGogiXyU57RkyNQ=; b=CKmL0IQVgfL6j8aXwkY/4h+JQsZ39NKYjG5LeZiQX3B8DZx/jm620FIQBQIiCh8sRU 2AYDeCHQ11LlnBpRt6Qr1v3W+dBfjsM5svlyRflq6KgQWITwVjzrT2cqbF+Yc81R+i2Q 9lSJEJTlc/BTX6BTjOW6W027AbJVX28E8FPZF6VgTQ6CQLPdwnv7NxLU22o2GquyEhLz jRXYuZHO9/hr0a6976+HRqmwYzb58+MJXBhc/FuGHd6pfiMWSY8gwTJW9J0LybJ0cgcT 4jNSexFrLIPZU++JiLB+Az4cHgXMPtD8P59OQxyETakEBMlhDokU0dlIE/9pbK5veMXa gLOw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=cDplwqdn; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=fail (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 e12-v6si12023098pgn.171.2018.06.25.07.34.07; Mon, 25 Jun 2018 07:34:08 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=cDplwqdn; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934354AbeFYOeG (ORCPT + 5 others); Mon, 25 Jun 2018 10:34:06 -0400 Received: from mail-wm0-f66.google.com ([74.125.82.66]:39887 "EHLO mail-wm0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934404AbeFYOd5 (ORCPT ); Mon, 25 Jun 2018 10:33:57 -0400 Received: by mail-wm0-f66.google.com with SMTP id p11-v6so10257837wmc.4 for ; Mon, 25 Jun 2018 07:33:57 -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=bSiiyoWCO9K0VPh8OocYt9ngdl9pTHkmhGt9bl/h054=; b=cDplwqdnV3ESGe2O1bsCs3o05pBTlvA2pFm0WThAfgKg3mJ/Vg5rSfE5spSxb+u985 Acb9OVjNINrScxX4U1WT32QGnj47H724o1C5R0DM2OiJzE6vY4c5ypFYhhy9I7ktR5S/ RSR2zLU2ClOP5N0Qql6/viYY8IE5Od7Yvz9eo= 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=bSiiyoWCO9K0VPh8OocYt9ngdl9pTHkmhGt9bl/h054=; b=lh4fSj9xd44ZjE3akLE/iDJbpGEQVlcOWaFcoEUQv4blgBdCT2500qaIdqBZmypSDA m2BPp3X4Ni0WBd61FKsBAF+ueEMo3Uk6iErWHhyYeo8s6+PuJDT9i3wU++nZMY9AmHaB UEACDgb2XnE2K7Y3Cp2mmhdNkuoDGgQ0q19DSN+l9d44nFwKTq6PJDcPSnJIFcUXzwYG uuJcI7m83RtjFNIow8K0Eu1Kh1XQgeZ8x7JQhEJN4yw7YlC/oRFSRYWqgnk/QGE70u5b 3Ch7hMx1XmHIaiLEXc9hLQZebOu1U4G0HN+Py2CSGm4VPIU6JvfdZLWUrAo0HdFSyDxT Cvkw== X-Gm-Message-State: APt69E1eC2fa2B3jpZAYnA992cRix9AQf8cSfzbYoqysb05KboLMycVn qzPOcN6v4bUyuM7QXRGNQpU0LA== X-Received: by 2002:a1c:d748:: with SMTP id o69-v6mr1155719wmg.71.1529937236614; Mon, 25 Jun 2018 07:33:56 -0700 (PDT) Received: from localhost.localdomain (cpc90716-aztw32-2-0-cust92.18-1.cable.virginm.net. [86.26.100.93]) by smtp.gmail.com with ESMTPSA id s12-v6sm1321193wrr.43.2018.06.25.07.33.55 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 25 Jun 2018 07:33:56 -0700 (PDT) From: Srinivas Kandagatla To: broonie@kernel.org, linux-arm-msm@vger.kernel.org, alsa-devel@alsa-project.org, robh+dt@kernel.org, bgoswami@codeaurora.org Cc: lgirdwood@gmail.com, plai@codeaurora.org, tiwai@suse.com, perex@perex.cz, devicetree@vger.kernel.org, rohkumar@qti.qualcomm.com, linux-arm-kernel@lists.infradead.org, srinivas.kandagatla@linaro.org, niklas.cassel@linaro.org Subject: [PATCH 09/11] ASoC: qdsp6: q6routing: support dt based module loading Date: Mon, 25 Jun 2018 15:31:13 +0100 Message-Id: <20180625143115.8346-10-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180625143115.8346-1-srinivas.kandagatla@linaro.org> References: <20180625143115.8346-1-srinivas.kandagatla@linaro.org> Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org This patch uses new compatible string to make DT based module loading work. Signed-off-by: Srinivas Kandagatla --- sound/soc/qcom/qdsp6/q6routing.c | 8 ++++++++ 1 file changed, 8 insertions(+) -- 2.16.2 -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/sound/soc/qcom/qdsp6/q6routing.c b/sound/soc/qcom/qdsp6/q6routing.c index 593f66b8622f..caf2f847a886 100644 --- a/sound/soc/qcom/qdsp6/q6routing.c +++ b/sound/soc/qcom/qdsp6/q6routing.c @@ -993,9 +993,17 @@ static int q6pcm_routing_remove(struct platform_device *pdev) return 0; } +static const struct of_device_id q6pcm_routing_device_id[] = { + { .compatible = "qcom,q6adm-routing" }, + {}, +}; + +MODULE_DEVICE_TABLE(of, q6pcm_routing_device_id); + static struct platform_driver q6pcm_routing_platform_driver = { .driver = { .name = "q6routing", + .of_match_table = of_match_ptr(q6pcm_routing_device_id), }, .probe = q6pcm_routing_probe, .remove = q6pcm_routing_remove,