Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754038AbaGOR3k (ORCPT ); Tue, 15 Jul 2014 13:29:40 -0400 Received: from mailout3.w2.samsung.com ([211.189.100.13]:53197 "EHLO usmailout3.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751279AbaGOR3f (ORCPT ); Tue, 15 Jul 2014 13:29:35 -0400 X-AuditID: cbfec37d-b7fbf6d000005712-da-53c564fd01bf Message-id: <53C564F4.8010002@samsung.com> Date: Tue, 15 Jul 2014 11:29:24 -0600 From: Shuah Khan Reply-to: shuah.kh@samsung.com User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 MIME-version: 1.0 To: Antti Palosaari , m.chehab@samsung.com Cc: linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, Shuah Khan Subject: Re: [PATCH] media: em28xx-dvb unregister i2c tuner and demod after fe detach References: <1405093525-8745-1-git-send-email-shuah.kh@samsung.com> <53C1971E.3020200@iki.fi> In-reply-to: <53C1971E.3020200@iki.fi> Content-type: text/plain; charset=ISO-8859-15; format=flowed Content-transfer-encoding: 7bit X-Originating-IP: [105.144.134.243] X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrJLMWRmVeSWpSXmKPExsVy+t9hX92/KUeDDXr+aVt8b37PZnF51xw2 i54NW1kdmD0Of13I4vF5k1wAUxSXTUpqTmZZapG+XQJXxpoL51kLHnNWzOkUb2B8xt7FyMkh IWAicXTGPTYIW0ziwr31QDYXh5DAMkaJrucrmUASQgK9TBIfrgtDJLYxSlxa9hKsg1dAS2LF 3snMIDaLgKpE37JLrCA2m4C6xOfXO9ghmuUkmpasBqsRFYiQOND3jBWiV1Dix+R7LCC2iICF xMkb/8CWMQskSVzp/MYIYgsLhEvcaFzFAjEnXuL796tgNZwCahK9ty8A2RxA9TYSB+enQbTK S2xe85YZolxZ4s/lU0wQjylLHDhzjXkCo8gsJJtnIXTPQtK9gJF5FaNYaXFyQXFSemqFiV5x Ym5xaV66XnJ+7iZGSPDX7mC8/9XmEKMAB6MSD++GkKPBQqyJZcWVuYcYJTiYlUR4ZeOBQrwp iZVVqUX58UWlOanFhxiZODilGhgjXZsDtBn+hE5/wLhe/cz/es/74q9d2GbKKseuiXr9OLbD YOLyZ5FBMtvC/j2rrlF723ArI3Ojw6rFf+pmmxndTWRawqS3LGKS6IefOb9rxJrbb1kwTSz6 fDOSs8r9xoQGnrk8+9YzCMerKrYu3bfir+FFzoPx/4PtNm1MV2aJ3O96a/H0vodKLMUZiYZa zEXFiQBz6EwuXAIAAA== Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 07/12/2014 02:14 PM, Antti Palosaari wrote: > Moikka Shuah! > I suspect that patch makes no sense. On DVB there is runtime PM > controlled by DVB frontend. It wakes up all FE sub-devices when frontend > device is opened and sleeps when closed. > > FE release() is not relevant at all for those sub-devices which are > implemented as a proper I2C client. I2C client has own remove() for that. > > em28xx_dvb_init and em28xx_dvb_fini are counterparts. Those I2C drivers > are load on em28xx_dvb_init so logical place for unload is em28xx_dvb_fini. > > Is there some real use case you need that change? > > regards > Antti > Hi Antti, The reason I made this change is because dvb_frontend_detach() calls release interfaces for fe as well as tuner. So it made sense to move the remove after that is all done. Are you saying fe and tuner release calls aren't relevant when sub-devices implement a proper i2c client? If that is the case then, and there is no chance for these release calls to be invoked when a proper i2c is present, then my patch isn't needed. -- Shuah -- Shuah Khan Senior Linux Kernel Developer - Open Source Group Samsung Research America(Silicon Valley) shuah.kh@samsung.com | (970) 672-0658 -- 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/