From mboxrd@z Thu Jan 1 00:00:00 1970 From: Laxman Dewangan Subject: Re: [PATCH 4/6] i2c: tegra: Simplify I2C resume Date: Thu, 11 Aug 2016 20:30:21 +0530 Message-ID: <57AC9305.7040001@nvidia.com> References: <1470910620-9898-1-git-send-email-jonathanh@nvidia.com> <1470910620-9898-5-git-send-email-jonathanh@nvidia.com> Mime-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1"; format=flowed Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1470910620-9898-5-git-send-email-jonathanh-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org> Sender: linux-tegra-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: Jon Hunter , Wolfram Sang , Stephen Warren , Thierry Reding , Alexandre Courbot Cc: linux-i2c-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-tegra-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org List-Id: linux-i2c@vger.kernel.org On Thursday 11 August 2016 03:46 PM, Jon Hunter wrote: > The I2C adapter is unlocked regardless of whether the tegra_i2c_init() > called during the resume is successful or not. However, if the > tegra_i2c_init() is not successful, then ->is_suspended is not set to > false. Simplify the resume code by only setting ->is_suspended to false > if tegra_i2c_init() is successful and return the error code from > tegra_i2c_init(). > > Signed-off-by: Jon Hunter > Acked-by: Laxman Dewangan