From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759745AbbCDMY6 (ORCPT ); Wed, 4 Mar 2015 07:24:58 -0500 Received: from comal.ext.ti.com ([198.47.26.152]:59619 "EHLO comal.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758472AbbCDMY4 (ORCPT ); Wed, 4 Mar 2015 07:24:56 -0500 Message-ID: <54F6F98E.2000709@ti.com> Date: Wed, 4 Mar 2015 17:54:46 +0530 From: Kishon Vijay Abraham I User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.0 MIME-Version: 1.0 To: Sylwester Nawrocki , Axel Lin CC: Sylwester Nawrocki , Kyungmin Park , "linux-samsung-soc@vger.kernel.org" , "linux-kernel@vger.kernel.org" Subject: Re: [PATCH RFT] phy: exynos-mipi-video: Use spin_lock to protct state->regmap rmw operations References: <1425009057.12126.1.camel@phoenix> <54F070D0.2050504@samsung.com> In-Reply-To: <54F070D0.2050504@samsung.com> Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On Friday 27 February 2015 06:57 PM, Sylwester Nawrocki wrote: > On 27/02/15 04:50, Axel Lin wrote: >> he state->regmap is initialized by devm_regmap_init_mmio(). >> So it's fine to use spin_lock rather than mutex to protct state->regmap rmw >> operations. >> >> Signed-off-by: Axel Lin >> --- >> Hi Sylwester, >> I don't have this hardware handy, so can you test if this patch works. >> This patch is on top of my previous patch (phy: exynos-mipi-video: Fixup >> the test for state->regmap) > > Thanks for the patch, it looks good to me. I somehow missed the syscon > already uses a spinlock for regmap protection. > > v4.0-rc1 seems devastated as far as exynos4 is concerned, it may take > some time until I get around and fix all the issues so I tested your > patch on v3.19. It all works well as expected. > > Acked-by: Sylwester Nawrocki > Tested-by: Sylwester Nawrocki This patch doesn't apply on 4.0-rc1. Can to refresh it to mainline latest? Cheers Kishon