Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753766AbcLLIed (ORCPT ); Mon, 12 Dec 2016 03:34:33 -0500 Received: from mail-wj0-f194.google.com ([209.85.210.194]:34313 "EHLO mail-wj0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752411AbcLLIeb (ORCPT ); Mon, 12 Dec 2016 03:34:31 -0500 MIME-Version: 1.0 In-Reply-To: <20161211214232.GA2552@katana> References: <1481185563-8735-1-git-send-email-cedric.madianga@gmail.com> <1481185563-8735-3-git-send-email-cedric.madianga@gmail.com> <20161211214232.GA2552@katana> From: "M'boumba Cedric Madianga" Date: Mon, 12 Dec 2016 09:34:29 +0100 Message-ID: Subject: Re: [PATCH v5 2/5] i2c: Add STM32F4 I2C driver To: Wolfram Sang Cc: Rob Herring , Maxime Coquelin , Alexandre Torgue , Linus Walleij , Patrice Chotard , linux@armlinux.org.uk, linux-i2c@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by mail.home.local id uBC8YcRE018385 Content-Length: 1260 Lines: 44 Hi Wolfram, Thanks for your comments. I will fix all of them + build errors reported by build-bot in the V6. Best regards, Cedric Madianga 2016-12-11 22:42 GMT+01:00 Wolfram Sang : > Hi, > >> +config I2C_STM32F4 >> + tristate "STMicroelectronics STM32F4 I2C support" >> + depends on ARCH_STM32 || COMPILE_TEST > > Double space. > >> +#define STM32F4_I2C_MIN_FREQ 2 >> +#define STM32F4_I2C_MAX_FREQ 42 > > Those two must be unsigned to fix the build error (e.g. 2U) reported by > build-bot. > > Also, I get the following build warnings: > > CC drivers/i2c/busses/i2c-stm32f4.o > drivers/i2c/busses/i2c-stm32f4.c: In function ‘stm32f4_i2c_handle_rx_addr’: > drivers/i2c/busses/i2c-stm32f4.c:445:6: warning: variable ‘sr2’ set but not used [-Wunused-but-set-variable] > u32 sr2; > ^~~ > drivers/i2c/busses/i2c-stm32f4.c: In function ‘stm32f4_i2c_isr_event’: > drivers/i2c/busses/i2c-stm32f4.c:496:41: warning: variable ‘sr2’ set but not used [-Wunused-but-set-variable] > u32 real_status, possible_status, ien, sr2; > > I assume those are reads to clear the register, so we really don't need > to save the value in a variable. > > Rest is looking good. > > Thanks, > > Wolfram >