Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753145AbbKXE2f (ORCPT ); Mon, 23 Nov 2015 23:28:35 -0500 Received: from mail-qg0-f67.google.com ([209.85.192.67]:36209 "EHLO mail-qg0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751804AbbKXE2d convert rfc822-to-8bit (ORCPT ); Mon, 23 Nov 2015 23:28:33 -0500 MIME-Version: 1.0 In-Reply-To: <20151123184710.GH32017@xsjsorenbubuntu> References: <1446017200-30373-1-git-send-email-shubhraj@xilinx.com> <20151028161810.GB6436@xsjsorenbubuntu> <20151123184710.GH32017@xsjsorenbubuntu> Date: Tue, 24 Nov 2015 09:58:32 +0530 Message-ID: Subject: Re: [PATCH v2] i2c: cadence: Move to sensible power management From: Shubhrajyoti Datta To: =?UTF-8?Q?S=C3=B6ren_Brinkmann?= Cc: Shubhrajyoti Datta , linux-i2c@vger.kernel.org, Wolfram Sang , anirudh@xilinx.com, Michal Simek , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Shubhrajyoti Datta Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1702 Lines: 47 On Tue, Nov 24, 2015 at 12:17 AM, Sören Brinkmann wrote: > On Sat, 2015-11-21 at 07:00PM +0530, Shubhrajyoti Datta wrote: >> On Thu, Oct 29, 2015 at 8:27 PM, Shubhrajyoti Datta >> wrote: >> > On Wed, Oct 28, 2015 at 9:48 PM, Sören Brinkmann >> > wrote: >> >> Hi Shubhrajyoti, >> >> >> >> >> >> On Wed, 2015-10-28 at 12:56PM +0530, Shubhrajyoti Datta wrote: >> >>> Currently the clocks are enabled at probe and disabled at remove. >> >>> Which keeps the clocks enabled even if no transaction is going on. >> >>> This patch enables the clocks at the start of transfer and disables >> >>> after it. >> >>> >> >>> Also adapts to runtime pm. >> >>> Remove xi2c->suspended and use pm runtime status instead. >> >>> >> >>> converts dev pm to const to silence a checkpatch warning. >> >>> >> >>> Signed-off-by: Shubhrajyoti Datta >> >> >> >> To me, this looks all good. Just one small concern below. >> > >> > Thanks for the review. >> Soren , >> Do are you ok with the change or do you want me to resend without the >> suspended flag change. > > I'm always for removing code that is not needed. If things are tested > and well and work without throwing any warnings I'm OK with it. It should be also having a suspended book-keeping in the driver is not needed the pm does that for us. I will spilt the patch and resend. Thanks, > > Sören -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/