From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753651AbcBEOs3 (ORCPT ); Fri, 5 Feb 2016 09:48:29 -0500 Received: from hqemgate14.nvidia.com ([216.228.121.143]:13342 "EHLO hqemgate14.nvidia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753436AbcBEOs0 (ORCPT ); Fri, 5 Feb 2016 09:48:26 -0500 X-PGP-Universal: processed; by hqnvupgp08.nvidia.com on Fri, 05 Feb 2016 06:49:01 -0800 Message-ID: <56B4B38C.3030805@nvidia.com> Date: Fri, 5 Feb 2016 20:07:00 +0530 From: Laxman Dewangan User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.4.0 MIME-Version: 1.0 To: Krzysztof Kozlowski , , , CC: , , Subject: Re: [PATCH V3 5/5] rtc: max77686: move initialisation of rtc regmap, irq chip locally References: <1454507233-9959-1-git-send-email-ldewangan@nvidia.com> <1454507233-9959-6-git-send-email-ldewangan@nvidia.com> <56B296F6.3060002@samsung.com> <56B2B17A.1000509@nvidia.com> <56B2F6A2.5060103@samsung.com> <56B314F4.6010605@samsung.com> In-Reply-To: <56B314F4.6010605@samsung.com> X-Originating-IP: [10.19.65.30] X-ClientProxiedBy: DRUKMAIL101.nvidia.com (10.25.59.19) To bgmail102.nvidia.com (10.25.59.11) Content-Type: text/plain; charset="windows-1252"; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Krzysztof, Javier, On Thursday 04 February 2016 02:38 PM, Krzysztof Kozlowski wrote: > On 04.02.2016 15:58, Krzysztof Kozlowski wrote: >>> 3. Can you try locally to not use devm_regmap_init_i2c() and just use >>> the regmap_init_i2c() and proper removal of this from error path and >>> remove callback? >> I'll try to find some time for that. Maybe tomorrow. > regmap_init_i2c does not help. However helps commenting out the: > regmap_del_irq_chip(info->rtc_irq, info->rtc_irq_data); > from remove() callback. > > I am trying to reproduce this in my system but I am ending up with different issue as it need to enable the suspend. can you please help on following experiment: 1. In probe/init, do regmap_add_irq_chip() regmap_del_irq_chip() and then regmap_add_irq_chip() and then without unbind()/bind(), working or not? This is to make sure that it is universal issue rather than calling from remove callback only. 2. Do regmap_add_irq_chip() but dont do any interrupt registration i.e. comment regmap_irq_get_virq() and request_threaded_irq() and hence free_irq(). Then do unbind/bind and then suspend. To make sure that this happen when only we have client registered interrupt. 3. Extension of 2 Do regmap_add_irq_chip(), call regmap_irq_get_virq() for creating irq mapping but dont do any interrupt registration i.e. comment request_threaded_irq() and hence free_irq(). Then do unbind/bind and then suspend. To make sure that this happen when only we have client registered interrupt or with mapping also. Thanks for help in advance.