From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: From: Crestez Dan Leonard Subject: Re: [PATCH v7 00/24] i2c mux cleanup and locking update To: Peter Rosin , linux-kernel@vger.kernel.org References: <1461165484-2314-1-git-send-email-peda@axentia.se> Cc: Wolfram Sang , Jonathan Corbet , Peter Korsgaard , Guenter Roeck , Jonathan Cameron , Hartmut Knaack , Lars-Peter Clausen , Peter Meerwald , Antti Palosaari , Mauro Carvalho Chehab , Rob Herring , Frank Rowand , Grant Likely , Andrew Morton , "David S. Miller" , Greg Kroah-Hartman , Kalle Valo , Jiri Slaby , Daniel Baluta , Lucas De Marchi , Adriana Reus , Matt Ranostay , Krzysztof Kozlowski , Hans Verkuil , Terry Heo , Arnd Bergmann , Tommi Rantala , linux-i2c@vger.kernel.org, linux-doc@vger.kernel.org, linux-iio@vger.kernel.org, linux-media@vger.kernel.org, devicetree@vger.kernel.org, Peter Rosin Message-ID: <5718C896.9070302@intel.com> Date: Thu, 21 Apr 2016 15:33:26 +0300 MIME-Version: 1.0 In-Reply-To: <1461165484-2314-1-git-send-email-peda@axentia.se> Content-Type: text/plain; charset=windows-1252 List-ID: On 04/20/2016 06:17 PM, Peter Rosin wrote: > v7 compared to v6: > - Removed i2c_mux_reserve_adapters, and all realloc attempts in > i2c_mux_add_adapter. Supply a maximum number of adapters in i2c_mux_alloc > instead. > - Removed i2c_mux_one_adapter since it is was hard to use correctly, which > was evident from the crash in the mpu6050 driver (on a mpu9150 chip) reported > by Crestez Dan Leonard. Also, it didn't make things all that much simpler > anyway (even if used correctly). > - Rename i2c_mux_core:adapters into i2c_mux_core:num_adapters. > - Some grammar and spelling fixes. I tested this new version on mpu9150 and there are no more obvious deadlocks or crashes. The magnetometer and accel/gyro can be used at the same time without issues.