From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <5450B545.1050905@ti.com> Date: Wed, 29 Oct 2014 11:37:09 +0200 From: Roger Quadros MIME-Version: 1.0 To: Frans Klaver , Rostislav Lisovy Subject: Re: [PATCH v3 2/2] mtd: nand: omap: Synchronize the access to the ECC engine References: <542D46A1.9090905@ti.com> <1412259404-5202-1-git-send-email-lisovy@merica.cz> In-Reply-To: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Cc: Rostislav Lisovy , Tony Lindgren , "linux-kernel@vger.kernel.org" , linux-mtd@lists.infradead.org, michal.vokac@comap.cz, Brian Norris , David Woodhouse , sojkam1@fel.cvut.cz List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Hi Rostislav, Sorry to miss this one. On 10/29/2014 11:24 AM, Frans Klaver wrote: > On Thu, Oct 2, 2014 at 4:16 PM, Rostislav Lisovy wrote: >> >> diff --git a/drivers/mtd/nand/omap2.c b/drivers/mtd/nand/omap2.c >> index f0dcdb6..dfae46f 100644 >> --- a/drivers/mtd/nand/omap2.c >> +++ b/drivers/mtd/nand/omap2.c >> @@ -144,8 +144,13 @@ static u_char bch8_vector[] = {0xf3, 0xdb, 0x14, 0x16, 0x8b, 0xd2, 0xbe, 0xcc, >> 0xac, 0x6b, 0xff, 0x99, 0x7b}; >> static u_char bch4_vector[] = {0x00, 0x6b, 0x31, 0xdd, 0x41, 0xbc, 0x10}; >> >> +/* Shared among all NAND instances to synchronize the access to the ECC Engine */ >> +struct nand_hw_control omap_gpmc_controller = { >> + .lock = __SPIN_LOCK_UNLOCKED(omap_gpmc_controller.lock), >> + .wq = __WAIT_QUEUE_HEAD_INITIALIZER(omap_gpmc_controller.wq), >> +}; >> + > > Any reason not to make this one static? > Right. Apart from that, this patch looks good for me. So after that change you can add my Acked-by: Roger Quadros cheers, -roger