Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755389AbaGQAyZ (ORCPT ); Wed, 16 Jul 2014 20:54:25 -0400 Received: from blu004-omc2s4.hotmail.com ([65.55.111.79]:57176 "EHLO BLU004-OMC2S4.hotmail.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755360AbaGQAyT convert rfc822-to-8bit (ORCPT ); Wed, 16 Jul 2014 20:54:19 -0400 X-TMN: [/IutaUPCv8fSXP0jXgV8TATfd9sjWlWQk7ylc2o/7x8=] X-Originating-Email: [beanhuo@outlook.com] Message-ID: From: Bean Huo To: Brian Norris CC: David Woodhouse , Huang Shijie , Artem Bityutskiy , Jingoo Han , "linux-kernel@vger.kernel.org" , Paul Gortmaker , "linux-mtd@lists.infradead.org" , "christian.riesch@omicron.at" Subject: RE: [PATCH v6] mtd:nor:timeout:fix do_write_buffer() timeout error Date: Thu, 17 Jul 2014 00:54:17 +0000 Importance: Normal In-Reply-To: <20140716180423.GV7537@ld-irv-0074> References: ,<20140716180423.GV7537@ld-irv-0074> Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 X-OriginalArrivalTime: 17 Jul 2014 00:54:18.0188 (UTC) FILETIME=[A35B88C0:01CFA159] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > Hi Bean, >> + cfi->chips[i].buffer_write_time_max = >> + ((cfi->chips[i].buffer_write_time_max>= 2000) >> + ? cfi->chips[i].buffer_write_time_max : 2000); > > This should just use the 'max()' macro, from . > I have just fixed up your patch myself, to use max() and to improve some > of the language. Let me know if the below works for you. hi,Brian ?Thanks once again.I test and it works Ok.It can be accepted now? -- 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/