Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp6845859pxv; Fri, 30 Jul 2021 04:01:05 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzoB0q31cN1tkDMe6L5cvHaXUQUtaJ1kBqStDFY3OQ5eV4RE+WY0zxrgLdD0DsUQW76OCSA X-Received: by 2002:a05:6602:218c:: with SMTP id b12mr2023643iob.82.1627642864855; Fri, 30 Jul 2021 04:01:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627642864; cv=none; d=google.com; s=arc-20160816; b=J4WIpXEkq7ATENFhj+bLNcxO29DEBJEa6YIqE4BpsezwkFfrlYc8KGKvAYdNkNJMp5 Zf9qxk0Qt9YeizEgL5dx7Y64+/CxCUpld2BH/31bPqPQg0vR5oZZdlHiNWfG/bXIeO/i i5bR0CiuZ3raETyZbUYu1lOW/mqadWHmZwjk89/AOpvLvhNaKDjxalmwFdvRzKt1cvrH W5b4FHJ8r4EkaEMt7XkXMhg6qPsvxYvUhhp71LuBOI0veDuoriiQNf2x1jOTKi6FGBTJ 3EmFrzbH30K3hn4JP8uru0dW/jCHTgB+hZFYgz2l5E+e0lPeEB3zjZrVGBgrHFdbAXww 9tMg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=vIzrk+KmOw20riTuctrEKZ2s/Y/vQwvd3JBEyR9+4PA=; b=mV7jF5U1F4tJpsA8AILbxLjdZ7eOfUDL7FAn1dfP9BnlGyNhf0L0Nrl1ID8KCVwp4a 28zDb0zGrho9d9Q1ZJrfmK5lgEGuewRgMjSe+ioW7hzWSjGHFAVbo/FP6wQb66WquoXl IwT3KHqyhAK32tx0Rbx79yWexuzU8vG/q6onnxyajw8LHwGtvbGSMdbsPTCaeL6Lvlag IlzgVA09iavJhMQDNMzB4mmfYY4/D0ReqPkQPgRbHq4GCSMlC0P4fe2hFDVwPxqpB+YJ ljRHodKrA/CKx2TV7eMrxca8Wgl/or8gDK3kp3CAayyEaXpLlvCoXOTaqN8K0D986b7P CUCA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=V4cT09UF; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id 7si1554797ilx.20.2021.07.30.04.00.47; Fri, 30 Jul 2021 04:01:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=V4cT09UF; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238586AbhG3K77 (ORCPT + 99 others); Fri, 30 Jul 2021 06:59:59 -0400 Received: from mail.kernel.org ([198.145.29.99]:57900 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238461AbhG3K76 (ORCPT ); Fri, 30 Jul 2021 06:59:58 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 57F8D60F9B; Fri, 30 Jul 2021 10:59:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1627642794; bh=7G8XPhtyHOsQOBrdu6AY5KW4NxFLaa/KplGrDdA8Mn8=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=V4cT09UFGn1FlQxEKbRS4g0/ToJp5VmSrNF2NBcUrJpZgFuB6x+wrlDk73aQFX1aK uSzGtv7M6HwSE+4z2lPDhm9fZvKKbI1KvT4905okIknu/QdDnocaE8jHio/WJEVWtO jMu95MNGUiapvvaSsO6IAWncaL4K57Lrp5l+SKjq/dftKGT7gDC4scniEVPz8i6T9S U/++szs+4hiKF27XBJGiRx8M1jyJQ5KQrPN6W15HGf3+9gSdo5r5oXjv9tRr2wDygt yCFr+mYPGHK4SQJ5DCmWDOGJ16/jad5/yVZgI5RPA5JcPU5aaasFPSAsZ3wPK7GcvM Eh5eT88/SwdZw== Subject: Re: [PATCH 1/2] memory: omap-gpmc: Clear GPMC_CS_CONFIG7 register on restore if unused To: Tony Lindgren , Krzysztof Kozlowski Cc: linux-kernel@vger.kernel.org, linux-omap@vger.kernel.org References: <20210727101034.32148-1-tony@atomide.com> From: Roger Quadros Message-ID: Date: Fri, 30 Jul 2021 13:59:51 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 MIME-Version: 1.0 In-Reply-To: <20210727101034.32148-1-tony@atomide.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 27/07/2021 13:10, Tony Lindgren wrote: > We want to clear any unused GPMC_CS_CONFIG7 register on restore to > ensure unused chip selects are not enabled. > > Cc: Roger Quadros > Signed-off-by: Tony Lindgren Acked-by: Roger Quadros Sorry if you got this twice. I got a bounce back on the previous Ack. cheers, -roger > --- > drivers/memory/omap-gpmc.c | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/drivers/memory/omap-gpmc.c b/drivers/memory/omap-gpmc.c > --- a/drivers/memory/omap-gpmc.c > +++ b/drivers/memory/omap-gpmc.c > @@ -2595,6 +2595,8 @@ void omap3_gpmc_restore_context(void) > gpmc_context.cs_context[i].config6); > gpmc_cs_write_reg(i, GPMC_CS_CONFIG7, > gpmc_context.cs_context[i].config7); > + } else { > + gpmc_cs_write_reg(i, GPMC_CS_CONFIG7, 0); > } > } > } >