Received: by 2002:a25:86ce:0:0:0:0:0 with SMTP id y14csp1134222ybm; Wed, 22 May 2019 18:11:45 -0700 (PDT) X-Google-Smtp-Source: APXvYqwq2F7QnSi5njmLe+D2E4UGe+SJyiHngNxtoiqvQybgr0syplK+YzvgQn0XU/z4fkerkhyL X-Received: by 2002:a62:b40a:: with SMTP id h10mr92361901pfn.216.1558573905332; Wed, 22 May 2019 18:11:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558573905; cv=none; d=google.com; s=arc-20160816; b=OKBXPhadmrxMcqKauivbOJ4tNtL30zWfsRQo/mxjCsCUMM9EWhURmyirPBQtCvWaZM fCOJNtMxtrRqQGWmWps8RE8fpeN3fpYYpbS1Y+lh5pxBzg7JPMTcG5nn6p41j//ySJqx l6DNwO0H8J7nMlx8govfUVriZ8gYNm8X4Z8HJL5Is/sAB5cXsxT8PWmsGklekDY/k3Vu PI3xu/mET3dh1Ikt9BGBGZ27sCjqVsSs9s6V7kzyN7FnBiZwKA7WjoDBeCk2yIcwYYCw 7ATpfsoEi1x+eunmPuxNFqUuSwoNgJhGUr14dwaRekAj+zDjGir+yA9zwjpiwmVJV2Eh vfqQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:dkim-signature:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=Om5qRlJmMYDBd6pppDmWgx6ImBSGofLGq85gMS4fwrM=; b=fBR0uX0dKc0He8omc3rlGUVCSXWliPXoLbfwDzrRPJg5WDyGruI5z49/59vAzsozE1 MB2Cy8zirpq5+ECY6F50X1xRfFvK8e8GrKIaxyrCy8OJ4rXLdT/8BeXcHzPBCUtoh2oK XqVKBCok/7OAGKgsTVYHle96s4FDvpkEJaxKhE3jCAg3lX/ldk8yD+Z6z3Ze6czBANOK tTj405qlVoEhruaPskNunSVX+W8y+LYJTzYPyoNdpD+zyYK/He37lKcZwumxRp0sWHm+ tvWNfpXyJ9JSAGooig9RezMPi6YNPPbQNRliRTfImopEF/hTVWQ6/333jlLI3w76PmkQ waBA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nvidia.com header.s=n1 header.b=BLjbFIif; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nvidia.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f5si16651606pgg.19.2019.05.22.18.11.27; Wed, 22 May 2019 18:11:45 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@nvidia.com header.s=n1 header.b=BLjbFIif; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nvidia.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728620AbfEWBKS (ORCPT + 99 others); Wed, 22 May 2019 21:10:18 -0400 Received: from hqemgate15.nvidia.com ([216.228.121.64]:18878 "EHLO hqemgate15.nvidia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727305AbfEWBKS (ORCPT ); Wed, 22 May 2019 21:10:18 -0400 Received: from hqpgpgate101.nvidia.com (Not Verified[216.228.121.13]) by hqemgate15.nvidia.com (using TLS: TLSv1.2, DES-CBC3-SHA) id ; Wed, 22 May 2019 18:10:13 -0700 Received: from hqmail.nvidia.com ([172.20.161.6]) by hqpgpgate101.nvidia.com (PGP Universal service); Wed, 22 May 2019 18:10:17 -0700 X-PGP-Universal: processed; by hqpgpgate101.nvidia.com on Wed, 22 May 2019 18:10:17 -0700 Received: from [10.2.170.210] (10.124.1.5) by HQMAIL107.nvidia.com (172.20.187.13) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Thu, 23 May 2019 01:10:15 +0000 Subject: Re: [PATCH V5 4/4] spi: tegra114: add support for TX and RX trimmers To: Nathan Chancellor CC: , , , , , , References: <1557810235-16401-1-git-send-email-skomatineni@nvidia.com> <1557810235-16401-5-git-send-email-skomatineni@nvidia.com> <20190523010235.GA105588@archlinux-epyc> From: Sowjanya Komatineni Message-ID: <09040f7e-537c-4dd4-19d3-faa1aa45f0cf@nvidia.com> Date: Wed, 22 May 2019 18:10:14 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 MIME-Version: 1.0 In-Reply-To: <20190523010235.GA105588@archlinux-epyc> X-Originating-IP: [10.124.1.5] X-ClientProxiedBy: HQMAIL104.nvidia.com (172.18.146.11) To HQMAIL107.nvidia.com (172.20.187.13) Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nvidia.com; s=n1; t=1558573813; bh=Om5qRlJmMYDBd6pppDmWgx6ImBSGofLGq85gMS4fwrM=; h=X-PGP-Universal:Subject:To:CC:References:From:Message-ID:Date: User-Agent:MIME-Version:In-Reply-To:X-Originating-IP: X-ClientProxiedBy:Content-Type:Content-Transfer-Encoding: Content-Language; b=BLjbFIif7hT9p1KI8FRv5TSWQ1J7rvWDZjWHTwHZcrAnlITLUSXho4350pqTaaSyF T4+C0cIbC6o6jR5H5WaKfRaWqIWPijfUMouI9Fnvf9UUTWm/qixDL9Q3DsytLADKE+ nignHV7jK1QLoLe2tQ0FS3oVJOpeowDcWk6kJaHGF9zaoSATOLZ/ZR5rvTrD5GOilp ux4QZ+cUV5g4YvgCuLWNGHLSERhxt2yCXbh82qBZjwD4wz895mcd6EAAQvDnWnpCm5 VuRDEaJr2syqvpvJuqCRbFL7aRipVwWiOyqZSnxfZQCQUXGFj2S7Qfo+xNo09MnfMb 8o4e1NbcqbdIw== Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Nathan Thanks for finding it. I missed to set it to master cleanup when I updated the patch. Will send the patch fixing this. Thanks Sowjanya On 5/22/19 6:02 PM, Nathan Chancellor wrote: > Hi Sowjanya, > > On Mon, May 13, 2019 at 10:03:55PM -0700, Sowjanya Komatineni wrote: >> Tegra SPI master controller has programmable trimmers to adjust the >> data with respect to the clock. >> >> These trimmers are programmed in TX_CLK_TAP_DELAY and RX_CLK_TAP_DELAY >> fields of COMMAND2 register. >> >> SPI TX trimmer is to adjust the outgoing data with respect to the >> outgoing clock and SPI RX trimmer is to adjust the loopback clock with >> respect to the incoming data from the slave device. >> >> These trimmers vary based on trace lengths of the platform design for >> each of the slaves on the SPI bus and optimal value programmed is from >> the platform validation across PVT. >> >> This patch adds support for configuring TX and RX clock delay trimmers >> through the device tree properties. >> >> Signed-off-by: Sowjanya Komatineni >> --- >> drivers/spi/spi-tegra114.c | 67 ++++++++++++++++++++++++++++++++++++++++++++-- >> 1 file changed, 65 insertions(+), 2 deletions(-) >> >> diff --git a/drivers/spi/spi-tegra114.c b/drivers/spi/spi-tegra114.c >> index e59ff7c1cee6..253a7f182fc9 100644 >> --- a/drivers/spi/spi-tegra114.c >> +++ b/drivers/spi/spi-tegra114.c > > >> +static void tegra_spi_cleanup(struct spi_device *spi) >> +{ >> + struct tegra_spi_client_data *cdata = spi->controller_data; >> + >> + spi->controller_data = NULL; >> + if (spi->dev.of_node) >> + kfree(cdata); >> +} >> + > This function is not called anywhere and it is marked as static so it > triggers an unused function warning. Was that intentional? > > drivers/spi/spi-tegra114.c:938:13: warning: unused function 'tegra_spi_cleanup' [-Wunused-function] > static void tegra_spi_cleanup(struct spi_device *spi) > ^ > 1 warning generated. > > Cheers, > Nathan