Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753316AbdHKPjH (ORCPT ); Fri, 11 Aug 2017 11:39:07 -0400 Received: from mail.kernel.org ([198.145.29.99]:54490 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753238AbdHKPjG (ORCPT ); Fri, 11 Aug 2017 11:39:06 -0400 DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 37BCC22BCD Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=dinguyen@kernel.org Subject: Re: [PATCH v2 1/5] reset: add reset-simple to unify socfpga, stm32, sunxi, and zx2967 To: Philipp Zabel , linux-kernel@vger.kernel.org Cc: Alexandru Gagniuc , Andre Przywara , Maxime Coquelin , Alexandre Torgue , Maxime Ripard , Chen-Yu Tsai , Baoyou Xie , Eugeniy Paltsev , Steffen Trumtrar , linux-arm-kernel@lists.infradead.org, kernel@pengutronix.de References: <20170811130618.3676-1-p.zabel@pengutronix.de> <20170811130618.3676-2-p.zabel@pengutronix.de> From: Dinh Nguyen Message-ID: Date: Fri, 11 Aug 2017 10:39:03 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 MIME-Version: 1.0 In-Reply-To: <20170811130618.3676-2-p.zabel@pengutronix.de> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1505 Lines: 43 Hi Phillip, This patch is failing to apply on both v4.13-rc4 and linux-next: error: patch failed: drivers/reset/reset-sunxi.c:108 error: drivers/reset/reset-sunxi.c: patch does not apply Patch failed at 0001 reset: add reset-simple to unify socfpga, stm32, sunxi, and zx2967 On 08/11/2017 08:06 AM, Philipp Zabel wrote: > Split reusable parts out of the sunxi driver, to add a driver for simple > reset controllers with reset lines that can be controlled by toggling > bits in exclusive, contiguous register ranges using read-modify-write > cycles under a spinlock. The separate sunxi driver still remains to > register the early reset controllers, but it reuses the reset-simple > ops. > > The following patches will replace compatible reset drivers with > reset-simple, extending it where necessary. > > Signed-off-by: Philipp Zabel > --- > Changes since v1: > - Turn reset-simple into a complete platform driver. > - Move common code out of assert and deassert ops into a helper function. > - Add inverted flag to support both clear- and set-to-assert reset bits. > - Remove status readback, will be added in the next patch. > - Split out SoCFPGA and STM32 conversion into separate patches. > --- [snip] > @@ -108,8 +55,9 @@ static int sunxi_reset_init(struct device_node *np) > > data->rcdev.owner = THIS_MODULE; > data->rcdev.nr_resets = size * 8; I think the problem the above line. On both linux-next and v4.13-rc4: data->rcdev.nr_resets = size * 32; Dinh