From patchwork Tue Dec 3 22:34:13 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greg KH X-Patchwork-Id: 180740 Delivered-To: patch@linaro.org Received: by 2002:a92:3001:0:0:0:0:0 with SMTP id x1csp2146336ile; Tue, 3 Dec 2019 14:39:41 -0800 (PST) X-Google-Smtp-Source: APXvYqxcXk4PbYVGnOpAP9pm+dy4z8P1oSFR/oXE41Ej3sPB8+54Eg4MBNmw5tdf35BLTRGL3Gce X-Received: by 2002:aca:d5d3:: with SMTP id m202mr257980oig.161.1575412781316; Tue, 03 Dec 2019 14:39:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575412781; cv=none; d=google.com; s=arc-20160816; b=zUvsCTAVOEC731rwiMnr6VRoaUy8lzSyUelUG6SqWgOSVhs9DxR8WqDc9ATXLixTnH oJb8t+SPm6iDFoBDC0DzDxKV762aSjQkRIQsN9HKAbYOlo4iQhYyjL40medW53o4LZtv +TAew27bV8YcUod/SJjztq3gjf/sDacyP8coeTKIZCFPphJAhiDaiq+IvoqYehdi8J+z YnYsbHR3JIUdcUd63bOtCF3WiM1QdU4yj2uKSDFO1DCM7OAV+3O+g+sivKgh45MCYo9Y G0+kaM0arsb/Btd0v7+gmma9i+Q+irXt5LmqyGK6uIaXieihct3kTJxLzfSd/YxMkxfR 7xVQ== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=NJgMDLYIyMVY/yTl/xxPTXR/2NeTugaScE1r8PsfGcE=; b=nQ4VS7pjGDlYvBHnd8PBQqVB8Zce6UVrr2v7v/wKZJO8tdbornJyFYI2PdTPOhbNhp LMgLJzOYs4DgZZkbU7QAxL4cb60R5KVwlNheJgyZ/JZqjS/oC+em0dw6SXmyZRHJ4/Uc u4USO8YJ7lqEpGAyRc1kQtjz26iwfgb8Bk4LMV6rijFJbocvGJfetMG4qKgaOVww2ej4 iHxUPjtiMhrHGUJRfAiwjgeBtv4qlyRqREuv6JwfPFUgZrQWbe8wxmX82M0UJa5d3CS3 Ynyy+Yo6LzBNDTnJhRC3XMPH+SNl/GnMVUTOTNXGAiyu8Tp87D0nb8OfBrryeexm2ac/ qTew== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=NqbeLXwP; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v2si2538130otf.58.2019.12.03.14.39.41; Tue, 03 Dec 2019 14:39:41 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=NqbeLXwP; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728265AbfLCWjj (ORCPT + 27 others); Tue, 3 Dec 2019 17:39:39 -0500 Received: from mail.kernel.org ([198.145.29.99]:50100 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727780AbfLCWjh (ORCPT ); Tue, 3 Dec 2019 17:39:37 -0500 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id DC3ED2073C; Tue, 3 Dec 2019 22:39:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1575412776; bh=evPbkcsov7YSCiEHsYu8yJYE3b6iC/HezEAed6gzsj0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=NqbeLXwP05GDyCoTcgmJxopnn75XZcVzdx245oua4ZVX+Xm916Vx8NtVpUwdztKYq Owa9XRsPJ8viD3l1CelPOuVSop3rUy4y2B5EcvwBwL9zuu2cob2kXZH3ATWvNY8Vxz nRJ92YpoSHlQhsMNVAtnHRhan/5kID83V6anwCXc= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Kishon Vijay Abraham I , Philipp Zabel , Sasha Levin Subject: [PATCH 5.3 013/135] reset: Fix memory leak in reset_control_array_put() Date: Tue, 3 Dec 2019 23:34:13 +0100 Message-Id: <20191203213008.064783486@linuxfoundation.org> X-Mailer: git-send-email 2.24.0 In-Reply-To: <20191203213005.828543156@linuxfoundation.org> References: <20191203213005.828543156@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Kishon Vijay Abraham I [ Upstream commit 532f9cd6ee994ed10403e856ca27501428048597 ] Memory allocated for 'struct reset_control_array' in of_reset_control_array_get() is never freed in reset_control_array_put() resulting in kmemleak showing the following backtrace. backtrace: [<00000000c5f17595>] __kmalloc+0x1b0/0x2b0 [<00000000bd499e13>] of_reset_control_array_get+0xa4/0x180 [<000000004cc02754>] 0xffff800008c669e4 [<0000000050a83b24>] platform_drv_probe+0x50/0xa0 [<00000000d3a0b0bc>] really_probe+0x108/0x348 [<000000005aa458ac>] driver_probe_device+0x58/0x100 [<000000008853626c>] device_driver_attach+0x6c/0x90 [<0000000085308d19>] __driver_attach+0x84/0xc8 [<00000000080d35f2>] bus_for_each_dev+0x74/0xc8 [<00000000dd7f015b>] driver_attach+0x20/0x28 [<00000000923ba6e6>] bus_add_driver+0x148/0x1f0 [<0000000061473b66>] driver_register+0x60/0x110 [<00000000c5bec167>] __platform_driver_register+0x40/0x48 [<000000007c764b4f>] 0xffff800008c6c020 [<0000000047ec2e8c>] do_one_initcall+0x5c/0x1b0 [<0000000093d4b50d>] do_init_module+0x54/0x1d0 Fixes: 17c82e206d2a ("reset: Add APIs to manage array of resets") Signed-off-by: Kishon Vijay Abraham I Signed-off-by: Philipp Zabel Signed-off-by: Sasha Levin --- drivers/reset/core.c | 1 + 1 file changed, 1 insertion(+) -- 2.20.1 diff --git a/drivers/reset/core.c b/drivers/reset/core.c index 213ff40dda110..36b1ff69b1e2a 100644 --- a/drivers/reset/core.c +++ b/drivers/reset/core.c @@ -748,6 +748,7 @@ static void reset_control_array_put(struct reset_control_array *resets) for (i = 0; i < resets->num_rstcs; i++) __reset_control_put_internal(resets->rstc[i]); mutex_unlock(&reset_list_mutex); + kfree(resets); } /** From patchwork Tue Dec 3 22:34:14 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greg KH X-Patchwork-Id: 180741 Delivered-To: patch@linaro.org Received: by 2002:a92:3001:0:0:0:0:0 with SMTP id x1csp2146372ile; Tue, 3 Dec 2019 14:39:43 -0800 (PST) X-Google-Smtp-Source: APXvYqyugVa+jT2638l6FS9XRlX0qbIWQueRp7PafwSN6s+U6ZrFOCFSv11hRYnkD262YnvyUmoX X-Received: by 2002:a54:4407:: with SMTP id k7mr1559oiw.56.1575412783745; Tue, 03 Dec 2019 14:39:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575412783; cv=none; d=google.com; s=arc-20160816; b=JKY1RwBT2CPW6QmuuDeTl+fRznLOAfdfnOgSUHezKGKpvdQj5MVpzJC06SHoyrVKMa Iapl7wYbfXK0cRzWcRFplQMlk04Ya6o/3Zplt2xp2ka84L+kwKszgfW8xtsX3AX9cXyK s2SqE3+CbhjB+xt/OzhfTdMZBK6EQ+7MK6YPN+PEbWVUZJi0fmYXF9BUzxjPhC1JGM/4 ym2GDCO5faB1SYyMp1+izCkAL2UKb9pD0ekrcyyzij/htqsmxk3Qgi3QMQ9t3nDyjPGB TUv3R6DBhuV7LjsHsVXd/Z83ZiIB72xOVwGKjy3Q0R6KkX4p1AKyuKK0EHylMmjgP9sM Ujrg== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=MpYpKoER+nEwa98/IMDJV2lvw/wCzf18PtNKJUxDbgM=; b=jP37Ir0/2vKt1Vg3pIZD0Bik1eqFFzV2e0C2uFvskUxjxZWzVGQPTjmR3KsiTjFdyR GYhUkHhrcI9I/MOEFgPWt8TolzzoYonxjd4+vvB60PU9Y8XLvQwDj6ceuH5Q3wLRlsP7 8Yw6VEfhCPk4hEwBW+Zr6rVvvv20WmQqVW/GAv8nuSfPuy+Ns7VJ+CR4OHWxjXa5rayU +zQKdWmk6doG2ayL5YK2tD+XHqFSyKgY6nqsw9iYonJdXoqEZs4Qok7xGAlrPDnJ5PO2 SaYHLInMp6wqXx0K/ekge1AbJ8XfieDwkgR+LPTZsx9n93Cvo5CiK29NVcib/nW9ozSu OMBA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=mej2Hppy; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v2si2538130otf.58.2019.12.03.14.39.43; Tue, 03 Dec 2019 14:39:43 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=mej2Hppy; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728275AbfLCWjm (ORCPT + 27 others); Tue, 3 Dec 2019 17:39:42 -0500 Received: from mail.kernel.org ([198.145.29.99]:50200 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728266AbfLCWjk (ORCPT ); Tue, 3 Dec 2019 17:39:40 -0500 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 1AECC20684; Tue, 3 Dec 2019 22:39:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1575412779; bh=agtIT+Fb/8Aqb7w95t51UZyWZdd2rx3ZbCQuZGwZNb4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=mej2HppyD1vhLBzvdmWJES6igAH/QLAjclpL9sc3FaQ+PV/BuCfNVH2mmFDJi+/5B 4LfU5ciWjb0yEVFv6HzlCGxDbyGPyUmeE0300/zk3v5QSCrm2fIh3VVlALEL5TgVYr /ALYqfxbFkziMjpUgbsAQdPTg8UMiNvR8uCqTd5c= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Marek Szyprowski , Krzysztof Kozlowski , Chanwoo Choi , kbuild test robot , Sylwester Nawrocki , Sasha Levin Subject: [PATCH 5.3 014/135] clk: samsung: exynos5433: Fix error paths Date: Tue, 3 Dec 2019 23:34:14 +0100 Message-Id: <20191203213008.174948129@linuxfoundation.org> X-Mailer: git-send-email 2.24.0 In-Reply-To: <20191203213005.828543156@linuxfoundation.org> References: <20191203213005.828543156@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Marek Szyprowski [ Upstream commit faac3604d05e8015567124e5ee79edc3f1568a89 ] Add checking the value returned by samsung_clk_alloc_reg_dump() and devm_kcalloc(). While fixing this, also release all gathered clocks. Fixes: 523d3de41f02 ("clk: samsung: exynos5433: Add support for runtime PM") Signed-off-by: Marek Szyprowski Reviewed-by: Krzysztof Kozlowski Acked-by: Chanwoo Choi [s.nawrocki: squashed patch from K. Kozlowski adding missing slab.h header] Reported-by: kbuild test robot Signed-off-by: Krzysztof Kozlowski Signed-off-by: Sylwester Nawrocki Signed-off-by: Sasha Levin --- drivers/clk/samsung/clk-exynos5433.c | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) -- 2.20.1 diff --git a/drivers/clk/samsung/clk-exynos5433.c b/drivers/clk/samsung/clk-exynos5433.c index 7824c2ba3d8e6..4b1aa9382ad28 100644 --- a/drivers/clk/samsung/clk-exynos5433.c +++ b/drivers/clk/samsung/clk-exynos5433.c @@ -13,6 +13,7 @@ #include #include #include +#include #include @@ -5584,6 +5585,8 @@ static int __init exynos5433_cmu_probe(struct platform_device *pdev) data->clk_save = samsung_clk_alloc_reg_dump(info->clk_regs, info->nr_clk_regs); + if (!data->clk_save) + return -ENOMEM; data->nr_clk_save = info->nr_clk_regs; data->clk_suspend = info->suspend_regs; data->nr_clk_suspend = info->nr_suspend_regs; @@ -5592,12 +5595,19 @@ static int __init exynos5433_cmu_probe(struct platform_device *pdev) if (data->nr_pclks > 0) { data->pclks = devm_kcalloc(dev, sizeof(struct clk *), data->nr_pclks, GFP_KERNEL); - + if (!data->pclks) { + kfree(data->clk_save); + return -ENOMEM; + } for (i = 0; i < data->nr_pclks; i++) { struct clk *clk = of_clk_get(dev->of_node, i); - if (IS_ERR(clk)) + if (IS_ERR(clk)) { + kfree(data->clk_save); + while (--i >= 0) + clk_put(data->pclks[i]); return PTR_ERR(clk); + } data->pclks[i] = clk; } } From patchwork Tue Dec 3 22:34:19 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greg KH X-Patchwork-Id: 180743 Delivered-To: patch@linaro.org Received: by 2002:a92:3001:0:0:0:0:0 with SMTP id x1csp2146544ile; Tue, 3 Dec 2019 14:39:57 -0800 (PST) X-Google-Smtp-Source: APXvYqyYS5TJBwyqfvpJtqIJ9vujxWr6PdtR19HjObkEjOOs8YoD3rKH7LwRLmHYAsG2KcyQmo5n X-Received: by 2002:aca:4b93:: with SMTP id y141mr329451oia.132.1575412797272; Tue, 03 Dec 2019 14:39:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575412797; cv=none; d=google.com; s=arc-20160816; b=NQyYuOuIGUYUAcds6P26UsQR2AReqP54QuDJTjlE1QLhPf42lEGV5nlNLOw+0Nup+4 lMvHM+TuOBSGAA4hBuvxi0qhwY0JJzSUAyHCymb1Qw1f/cOaJXqZ7DWkWLMY/23E/djJ xwCHroBUwMcm/Ng/sdAGxiMyBVGG2q9ii0GuLWEc/n0fr3EBsvsRmmr/R9xV70cfU7BZ JboqR+e06Iun5lZYXW2/Z4TUsLoViyvRaCijvqR2nIB5ENurgodUe9WaWT7sMLJwXlio PvrWuEEZrNIICfJQ4acFuJzDpUbgpuU8iGoQEn8413YK8m+KYkZtrnejqI/1KoR826Fs GpGg== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=KfegSuHDb/zdCvVqZn7PuL0HKE2xvBjADlOIXXqTQlE=; b=tXDbC+xxhsViEN7q+4qAhPz7djuZpiYlSC6509m4/lO4vPxCBUFD8pflDwGPlggdti Mj2H4mYHnNbQnIqEgLzLCsIKempMWN9SDxW7yxX0rqKb16QO08qKgWob6Nw1WfVVupKE aHZJEwDa0IfEns7nZZ8UXReAcEwPVxzdt3UPmWHQdpIaOQw1QTIX/wUxoPpqeEiuuhuC xR8L7ngewF66jurrSMH2V278RHkRWDOEFYFtTh8jBZGt5GJyhPjJZlwVmE0imcj6VHcm e9SVlgphOhqw8p6ndVww3UMJBprIp0pcHrmoOWeKqwi9ug7tviyB3gI6yePGMKI4lj0s hGUw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=MSPNWdEd; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l9si1559832otn.301.2019.12.03.14.39.57; Tue, 03 Dec 2019 14:39:57 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=MSPNWdEd; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727741AbfLCWjz (ORCPT + 27 others); Tue, 3 Dec 2019 17:39:55 -0500 Received: from mail.kernel.org ([198.145.29.99]:50876 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727963AbfLCWjw (ORCPT ); Tue, 3 Dec 2019 17:39:52 -0500 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 8B39D20862; Tue, 3 Dec 2019 22:39:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1575412792; bh=6xyK8o/gOgI9IfBK/zYzjcmDxtLo1/v0Rv2IftUjTrg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=MSPNWdEdUADByHjRADBvQjVs6zURtZxb8EiNfU5mw/SOM375y/dxAjuuBYUaT0yQs N1yEpLiAqIJxSq5MDsEHZ4U8zhrc0anutmFzCBRJFLY3WMKt9eeWrxrV7v5CCXK0RB 7BUdyHI0sn9Fczz98UEshzQidFXKhoAzbF8i+NAw= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, "Reported-by: Marian Mihailescu" , Marek Szyprowski , Sylwester Nawrocki , Sasha Levin Subject: [PATCH 5.3 019/135] clk: samsung: exynos5420: Preserve PLL configuration during suspend/resume Date: Tue, 3 Dec 2019 23:34:19 +0100 Message-Id: <20191203213009.670464810@linuxfoundation.org> X-Mailer: git-send-email 2.24.0 In-Reply-To: <20191203213005.828543156@linuxfoundation.org> References: <20191203213005.828543156@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Marek Szyprowski [ Upstream commit e9323b664ce29547d996195e8a6129a351c39108 ] Properly save and restore all top PLL related configuration registers during suspend/resume cycle. So far driver only handled EPLL and RPLL clocks, all other were reset to default values after suspend/resume cycle. This caused for example lower G3D (MALI Panfrost) performance after system resume, even if performance governor has been selected. Reported-by: Reported-by: Marian Mihailescu Fixes: 773424326b51 ("clk: samsung: exynos5420: add more registers to restore list") Signed-off-by: Marek Szyprowski Signed-off-by: Sylwester Nawrocki Signed-off-by: Sasha Levin --- drivers/clk/samsung/clk-exynos5420.c | 6 ++++++ 1 file changed, 6 insertions(+) -- 2.20.1 diff --git a/drivers/clk/samsung/clk-exynos5420.c b/drivers/clk/samsung/clk-exynos5420.c index dfa862d55246e..31466cd1842f8 100644 --- a/drivers/clk/samsung/clk-exynos5420.c +++ b/drivers/clk/samsung/clk-exynos5420.c @@ -165,12 +165,18 @@ static const unsigned long exynos5x_clk_regs[] __initconst = { GATE_BUS_CPU, GATE_SCLK_CPU, CLKOUT_CMU_CPU, + CPLL_CON0, + DPLL_CON0, EPLL_CON0, EPLL_CON1, EPLL_CON2, RPLL_CON0, RPLL_CON1, RPLL_CON2, + IPLL_CON0, + SPLL_CON0, + VPLL_CON0, + MPLL_CON0, SRC_TOP0, SRC_TOP1, SRC_TOP2, From patchwork Tue Dec 3 22:34:26 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greg KH X-Patchwork-Id: 180745 Delivered-To: patch@linaro.org Received: by 2002:a92:3001:0:0:0:0:0 with SMTP id x1csp2146960ile; Tue, 3 Dec 2019 14:40:24 -0800 (PST) X-Google-Smtp-Source: APXvYqxCeQqZXNZWOwg2FAsfvmJFj7wO44f2jpi4J7mi+cLxBEV5p5frahYsqY8JIuJt3wAgwUP4 X-Received: by 2002:a9d:a2f:: with SMTP id 44mr195388otg.264.1575412824027; Tue, 03 Dec 2019 14:40:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575412824; cv=none; d=google.com; s=arc-20160816; b=jg6l8rCVxjZ+q+Ivt2cOqxWnwjvHNCFUmtd3UENpiy8osvfKEtXWYv2CKlseiWPbBW n25+fURDA6o1JzjBMk3E3Bp5SlEbVwcJ+R1VsRtZeJ2xTfLItdOHx8EfaStTk0kiBgUw evfS/Z4tgGLUi3daQu7hve0Qa0B3o7cXKpCFoYMmWkOvzq9jevsFf8bvVm7632FgG7tH PidWABwa9ahQF90pzFm24h8/iJ9DTkPBbWUV8a6Vi7MfHwyNWNWRAeAGllbhVxFHrndC INsdBt+TBjmRGtMNIfAvHJzUB1ZFX/6dswXy1e9boG6KgUTuJrX1R/odcSUbdwB/2jn1 mWDg== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=flbReifQdR7X9S4tl/viB8Br0Vc0b1dkZfNXWyXtUm0=; b=keBK7woCfEuYrrqT+gOKtjQY/nA5Kd+Ax7tzuutMAU6mLJUqfVdTyYDuweRwyrE1w9 QdNj8dQF/5x/FDxNc5mA9kadVYbpj98RsTrFzC7JbCpj2fYqY+6xd/wLt0yEpLjsFuDY a4Cr3tqlzxlZVJry0fE0F4kPuPlbM7AFFhhisNtyr5iGKo14U6TWNPbio4GV+s5yCUnq VleKmgW8/s/HBVf/Y2YUBFjZTlhRGeHQtXfsvLkUBP57F9JtYFDD8bdSdEDyZ+YAui0s YINy7kN7XsCniHHVNOExu88XLD/R0ec3mUFp9z5htfaCrermbthiX6F+KP8bm6/Q6dlt IOTQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=s9nGsemO; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d68si2181414oib.194.2019.12.03.14.40.23; Tue, 03 Dec 2019 14:40:24 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=s9nGsemO; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728385AbfLCWkW (ORCPT + 27 others); Tue, 3 Dec 2019 17:40:22 -0500 Received: from mail.kernel.org ([198.145.29.99]:52272 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728369AbfLCWkN (ORCPT ); Tue, 3 Dec 2019 17:40:13 -0500 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 0A1FE20684; Tue, 3 Dec 2019 22:40:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1575412813; bh=Y1eV9BGmJlwzfgq2f4elwfN8nxcAwz5R2WINNQ6BsAc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=s9nGsemOrYd1/VsW2+wQp4yiMzV7ibbFKZqSZZK3cDzdtB/QWLnkHifWuNdqj0FxK 8Toestr1/1vPnqpQaqa0uYqvermI9r70LW6bRX1HArb+gt8MCjYYkAsD6ppcawaBBi EXCFqrGcBMObQ2uTzu60OUBwg1ecXS6v4L87j2M4= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Peter Ujfalusi , Mark Brown , Sasha Levin Subject: [PATCH 5.3 026/135] ASoC: ti: sdma-pcm: Add back the flags parameter for non standard dma names Date: Tue, 3 Dec 2019 23:34:26 +0100 Message-Id: <20191203213010.769114594@linuxfoundation.org> X-Mailer: git-send-email 2.24.0 In-Reply-To: <20191203213005.828543156@linuxfoundation.org> References: <20191203213005.828543156@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Peter Ujfalusi [ Upstream commit dd7e8d903e1eef5a9234a2d69663dcbfeab79571 ] When non standard names are used it is possible that one of the directions are not provided, thus the flags needs to be present to tell the core that we have half duplex setup. Fixes: 642aafea8889 ("ASoC: ti: remove compat dma probing") Signed-off-by: Peter Ujfalusi Link: https://lore.kernel.org/r/20191028115207.5142-1-peter.ujfalusi@ti.com Signed-off-by: Mark Brown Signed-off-by: Sasha Levin --- sound/soc/ti/sdma-pcm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.20.1 diff --git a/sound/soc/ti/sdma-pcm.c b/sound/soc/ti/sdma-pcm.c index a236350beb102..2b0bc234e1b69 100644 --- a/sound/soc/ti/sdma-pcm.c +++ b/sound/soc/ti/sdma-pcm.c @@ -62,7 +62,7 @@ int sdma_pcm_platform_register(struct device *dev, config->chan_names[0] = txdmachan; config->chan_names[1] = rxdmachan; - return devm_snd_dmaengine_pcm_register(dev, config, 0); + return devm_snd_dmaengine_pcm_register(dev, config, flags); } EXPORT_SYMBOL_GPL(sdma_pcm_platform_register);