Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp1067639imm; Wed, 23 May 2018 09:44:54 -0700 (PDT) X-Google-Smtp-Source: AB8JxZrt+XPjBbuHrL4Cz8+e/JlnYEfwPPL/RrGwPJPT2F22ayqgKQC10H4RxsPn/r8VOFX61i1b X-Received: by 2002:a17:902:7283:: with SMTP id d3-v6mr3761750pll.192.1527093894354; Wed, 23 May 2018 09:44:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527093894; cv=none; d=google.com; s=arc-20160816; b=LnLJMVJmth4UgErxiw5STEitkFBXLXr2B0ON4GjROfgxQhiHaQUQ7JbopkwdIPMsp4 ZNYKGP7wbgxDEiHGD7zO7ZnhH77hVT+oB8lXCb9bCHQTxDWdZGm9gae3w+ElOwkN71Vn lWCN6dCXqv/RbfpHY9ROGzlM4DZfkNi3PyzUsPwgVG/luajFl7IUeOz0B80s3VivLNa9 zOpZ9XPzRa1+g35je1fjgKd7Zj44+s5AZQvLJZE8U7j82vf/FthUsWAestwNwdcSNmTR yKa47i1gZ+UZP3uE4crkhgeCMcJ2EnmTfeaYgmeYV8zFUN6XRzDntv+C7gQemnF0Uui1 zVyg== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:organization:from:references:cc:to:subject :dkim-signature:arc-authentication-results; bh=/feE6u3GGLqQvanI3Fa8XqAbbQ+xczEAM+1OkAXXXL0=; b=EvhhSwRn0XZKYdxmKTuZLqVC+QYnCfiiIFQMMTomTf1MebV+AbfuUZ2p0AecLLEpqY cV19WV8VFwroTRP4+nTzuF4lo2tuo2qZsjnfkB+a+LPgQudKm1denamoiLBxwnBK4xvA RTsbl/LHvetXxuTCo0ZHzkAVKGgSmWyS+4ft6pQSxw4uJN2nawct6z0hmUFgES181Prs 2uv64ROwCrUxnID/wq8XnijvXTt0/4997J9Czj22krzQC3H7yhL9x1wGt+lgwsGgeTT0 +ZWGG9gw024SgYrNktQ3UiTYrubJwRHb0lCSfpn3DXs8SI101Iqc3ezPhuidIJqao4uq fW5w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2017-10-26 header.b=Z+4LcZ1B; 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=oracle.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m1-v6si18010503pls.70.2018.05.23.09.44.39; Wed, 23 May 2018 09:44:54 -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=@oracle.com header.s=corp-2017-10-26 header.b=Z+4LcZ1B; 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=oracle.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933590AbeEWQn3 (ORCPT + 99 others); Wed, 23 May 2018 12:43:29 -0400 Received: from userp2130.oracle.com ([156.151.31.86]:35822 "EHLO userp2130.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754623AbeEWQn0 (ORCPT ); Wed, 23 May 2018 12:43:26 -0400 Received: from pps.filterd (userp2130.oracle.com [127.0.0.1]) by userp2130.oracle.com (8.16.0.22/8.16.0.22) with SMTP id w4NGfMKn117353; Wed, 23 May 2018 16:43:00 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=subject : to : cc : references : from : message-id : date : mime-version : in-reply-to : content-type : content-transfer-encoding; s=corp-2017-10-26; bh=/feE6u3GGLqQvanI3Fa8XqAbbQ+xczEAM+1OkAXXXL0=; b=Z+4LcZ1BOFjrzQZCxICd9iz1DGCIgEMvk8p0T3EapftoMI6c/o74gLyFnaf0aRowDGv2 Z7ii9js2LLNy3n9sSbyLwdF97d7HzMUx69r+ZIHPCgc3qTdaepEtaKN/7mzaarJ9Vdoq aUrcR1QH7gLDYGAY2xEsRtBakxX9RVI3xMZocDx///qvyXyuT1znjpXgBMCYFv0jcggu jOh9e1R1xUo2CKD6TYVbjf9sYAIElRZjT2SXDDsOSvT8XL4TChW8O+pS+c/PaGz9B+Rd W8lOgGad1bqZ63jm3kU2oOwxBldmVRaHY5ou10Jkwr3hSAMuk2hZLA9fLVrVCNei+Vmr bA== Received: from userv0021.oracle.com (userv0021.oracle.com [156.151.31.71]) by userp2130.oracle.com with ESMTP id 2j4nh7mvyw-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 23 May 2018 16:43:00 +0000 Received: from aserv0122.oracle.com (aserv0122.oracle.com [141.146.126.236]) by userv0021.oracle.com (8.14.4/8.14.4) with ESMTP id w4NGgwU1023935 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 23 May 2018 16:42:59 GMT Received: from abhmp0007.oracle.com (abhmp0007.oracle.com [141.146.116.13]) by aserv0122.oracle.com (8.14.4/8.14.4) with ESMTP id w4NGgv87002739; Wed, 23 May 2018 16:42:58 GMT Received: from [10.209.243.127] (/10.209.243.127) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Wed, 23 May 2018 09:42:57 -0700 Subject: Re: [PATCH 01/14] memory: ti-emif-sram: Add resume function to recopy sram code To: Keerthy , linus.walleij@linaro.org, grygorii.strashko@ti.com, tony@atomide.com Cc: t-kristo@ti.com, Russ.Dill@ti.com, linux-omap@vger.kernel.org, linux-kernel@vger.kernel.org, ssantosh@kernel.org, haojian.zhuang@linaro.org, linux-arm-kernel@lists.infradead.org, d-gerlach@ti.com References: <1523505239-16229-1-git-send-email-j-keerthy@ti.com> <1523505239-16229-2-git-send-email-j-keerthy@ti.com> <31688cf4-b6ca-e7ce-3407-46262006b38f@oracle.com> <739d9bbf-2acc-9c90-db43-cf78f5b184e3@ti.com> From: Santosh Shilimkar Organization: Oracle Corporation Message-ID: <443e8bb5-91d8-8bd9-ed6a-cf78377eeef4@oracle.com> Date: Wed, 23 May 2018 09:42:54 -0700 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 In-Reply-To: <739d9bbf-2acc-9c90-db43-cf78f5b184e3@ti.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=8902 signatures=668700 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=946 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1711220000 definitions=main-1805230164 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 5/23/2018 1:47 AM, Keerthy wrote: > > > On Monday 16 April 2018 03:59 PM, Keerthy wrote: >> [..] >>> Instead of this indirect method , why can't just check the previous >>> deep sleep mode and based on that do copy or not. EMIF power status >>> register should have something like that ? >> >> I will check if we have a register that tells the previous state of sram. > > Unfortunately i do not see any such register for knowing SRAM previous > state in am43 TRM and hence this indirect way of knowing. > OK. > >> >>> >>> Another minor point is even though there is nothing to do in suspend, >>> might be good to have a callback with comment that nothing to do with >>> some explanation why not. Don't have strong preference but may for >>> better readability. > > I can add a blank suspend call with comment > > "The contents are already present in DDR hence no need to explicitly save" > > The comment in resume function pretty much explains the above. So let me > know if i need to add the suspend callback. > Please add the empty suspend callback with comment. Regards, Santosh