Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp1041561ybe; Wed, 4 Sep 2019 11:36:30 -0700 (PDT) X-Google-Smtp-Source: APXvYqyi5K3hcOwxLZaWZqi0Q7hl0qtWXW86pdpzaVyxX246zHd+E8BfPqMWWHs5IIFNoGGYf1HJ X-Received: by 2002:a62:8745:: with SMTP id i66mr47045105pfe.259.1567622190775; Wed, 04 Sep 2019 11:36:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567622190; cv=none; d=google.com; s=arc-20160816; b=NYGwkfVyGKGeiLymTa23SjEAVz4Ds4PkZoPMMvBNVmkZDlQHA9/Iv1PdzwI+m5Talp SUs6fDw41fCNqTqnOSea3oTNTmO+lYiYTVEB44b89tL2dvLDOYA1Uy2Hl90sq3QTCXQ1 TjxADkwJuCc4KZ2Ze3It/PUYemBnbuCDmH8Crm7Grn+nmTIVHquymIKb0+e8U/BcpPfT KIXM1vYM8OqwYKmpHiaVcHZTUWRmNLgzQPhESYbN5tx+68EzsE0914MQcwZzwKgwAXF2 PZAaOfivAe76KUcnwNZqanYTtw9KJMdvbrqlAtmQVJ24tlzh3BljLKvFBuGT0dhYrzCt hVLQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=YYvy5JDq8wduxQvbZiHxp3SZAOhECKg/qQw/mqdhCPs=; b=Nqwtd/wiPZD7vIMCiMakYQo2ozExOfaF70kUkjIKpra1u6cEedlEXjkNyyXPmQlYiv kKdRtiu//5LCSO/jrXMlAlLFPGpiDgO1zXt1hYNKRR3QnTeN3hYavrzaAVms/VdJjXox UD0YMMPWdjQOcaSpPPIYhlPv0foHd0sYiF1pLTKj22y/E/jy8WFiMSC3i3PEmipXLE1w HQFnymcbrrMAtfGb+t5LAj5aYF470L+2l7bizeRKwHyGQGzBNIaqwNPQAtYtD1cv4+62 Zy2VyLTY8bTbwS+m1YfTvmk7sGWRK5iSY3NN+bALJpu0XT3ii+8c7LjqhqMy2NCpXU2A OkLA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w188si21294677pfb.175.2019.09.04.11.36.14; Wed, 04 Sep 2019 11:36:30 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732885AbfIDSfR (ORCPT + 99 others); Wed, 4 Sep 2019 14:35:17 -0400 Received: from mail-wr1-f65.google.com ([209.85.221.65]:38511 "EHLO mail-wr1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732542AbfIDSfR (ORCPT ); Wed, 4 Sep 2019 14:35:17 -0400 Received: by mail-wr1-f65.google.com with SMTP id l11so13523104wrx.5; Wed, 04 Sep 2019 11:35:15 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=YYvy5JDq8wduxQvbZiHxp3SZAOhECKg/qQw/mqdhCPs=; b=JDB5r4Sa8nWSbjbo7NyBk0PLy0ws0affbjEsTbz5ACI6jcEfA2OZ8hr3e6SecYMI5A PMi0D3o6fGXrj+L8DwRdGWSRoXOlMX17rHFBMgHjRZtgCozR6fNT4omXzrUjeF7SK+Co gW/qnAu7MC5otLaQNGVqf/qoM0B6FDygMd6cT6JvFgdyg5bhMH1GBUiPLQ8tIDzRm9ak UvdS+LMGYXKrB5Nhf4/ZCYy4SckrALjvf1MFHTAo3yQzAJzmL6ReuhSOKnwraVryGCKc xK8icNrxUbhLztE/7tKhZ1kzP6/akF+5xFfbFBOF5pvBYIWySu5uzibYtrjPy8ciQNDP tMMw== X-Gm-Message-State: APjAAAUchTpmzH8A1fuHhe8xoMqbty3CADO3S20B9HSgWKJ7N8rIZ8FV g9RJU080mxITQvzSSb815Vg= X-Received: by 2002:adf:f18c:: with SMTP id h12mr46945525wro.47.1567622114456; Wed, 04 Sep 2019 11:35:14 -0700 (PDT) Received: from kozik-lap ([194.230.155.145]) by smtp.googlemail.com with ESMTPSA id u10sm733191wmm.43.2019.09.04.11.35.12 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 04 Sep 2019 11:35:13 -0700 (PDT) Date: Wed, 4 Sep 2019 20:35:10 +0200 From: Krzysztof Kozlowski To: Lukasz Luba Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, linux-samsung-soc@vger.kernel.org, linux-clk@vger.kernel.org, mturquette@baylibre.com, sboyd@kernel.org, b.zolnierkie@samsung.com, kgene@kernel.org, mark.rutland@arm.com, robh+dt@kernel.org, cw00.choi@samsung.com, kyungmin.park@samsung.com, m.szyprowski@samsung.com, s.nawrocki@samsung.com, myungjoo.ham@samsung.com, keescook@chromium.org, tony@atomide.com, jroedel@suse.de, treding@nvidia.com, digetx@gmail.com, gregkh@linuxfoundation.org, willy.mh.wolff.ml@gmail.com Subject: Re: [PATCH v13 5/8] drivers: memory: add DMC driver for Exynos5422 Message-ID: <20190904183510.GC12918@kozik-lap> References: <20190821104303.32079-1-l.luba@partner.samsung.com> <20190821104303.32079-6-l.luba@partner.samsung.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20190821104303.32079-6-l.luba@partner.samsung.com> User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Aug 21, 2019 at 12:43:00PM +0200, Lukasz Luba wrote: > This patch adds driver for Exynos5422 Dynamic Memory Controller. > The driver provides support for dynamic frequency and voltage scaling > for DMC and DRAM. It supports changing timings of DRAM running with > different frequency. There is also an algorithm to calculate timigns > based on memory description provided in DT. > The patch also contains needed MAINTAINERS file update. > > Signed-off-by: Lukasz Luba > --- > MAINTAINERS | 8 + > drivers/memory/samsung/Kconfig | 13 + > drivers/memory/samsung/Makefile | 1 + > drivers/memory/samsung/exynos5422-dmc.c | 1257 +++++++++++++++++++++++ > 4 files changed, 1279 insertions(+) > create mode 100644 drivers/memory/samsung/exynos5422-dmc.c Thanks, applied... or almost. Let's fix it incrementally. You have two smatch warnings: CHECK ../drivers/memory/samsung/exynos5422-dmc.c drivers/memory/samsung/exynos5422-dmc.c:272 exynos5_init_freq_table() warn: passing devm_ allocated variable to kfree. 'dmc->opp' CHECK ../drivers/memory/jedec_ddr_data.c drivers/memory/samsung/exynos5422-dmc.c:565 exynos5_dmc_get_volt_freq() warn: passing zero to 'PTR_ERR' The second looks like false positive, but first seems to be real. You have also sparse warning to fix: ../drivers/memory/samsung/exynos5422-dmc.c:736:1: warning: symbol 'exynos5_dmc_align_init_freq' was not declared. Should it be static? Best regards, Krzysztof