From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752783AbcAUUOd (ORCPT ); Thu, 21 Jan 2016 15:14:33 -0500 Received: from mezzanine.sirena.org.uk ([106.187.55.193]:38955 "EHLO mezzanine.sirena.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751103AbcAUUOa (ORCPT ); Thu, 21 Jan 2016 15:14:30 -0500 Date: Thu, 21 Jan 2016 20:14:22 +0000 From: Mark Brown To: Srinivas Kandagatla Cc: Andy Gross , linux-spi@vger.kernel.org, David Brown , linux-arm-msm@vger.kernel.org, linux-soc@vger.kernel.org, linux-kernel@vger.kernel.org Message-ID: <20160121201422.GS6588@sirena.org.uk> References: <1453401227-27135-1-git-send-email-srinivas.kandagatla@linaro.org> <20160121183810.GN6588@sirena.org.uk> <56A127C6.9000409@linaro.org> <20160121190357.GO6588@sirena.org.uk> <56A130DB.4080202@linaro.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="6W/vd+xQRxZFP9Eu" Content-Disposition: inline In-Reply-To: <56A130DB.4080202@linaro.org> X-Cookie: APL hackers do it in the quad. User-Agent: Mutt/1.5.24 (2015-08-30) X-SA-Exim-Connect-IP: 2a01:348:6:8808:fab::3 X-SA-Exim-Mail-From: broonie@sirena.org.uk Subject: Re: [PATCH] spi: qup: provide proper bus numbers X-SA-Exim-Version: 4.2.1 (built Mon, 26 Dec 2011 16:24:06 +0000) X-SA-Exim-Scanned: Yes (on mezzanine.sirena.org.uk) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --6W/vd+xQRxZFP9Eu Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Thu, Jan 21, 2016 at 07:26:19PM +0000, Srinivas Kandagatla wrote: > On 21/01/16 19:03, Mark Brown wrote: > >That doesn't help explain why it is a good idea to open code this in > >individual drivers. I was asking why it's a good idea to do this in a > >single driver rather than at a higher level. > Oops!!, I should have looked at spi.c which already does exactly same thing. > I think the logic did not get triggered because (int)-1 overflowed into s16 > busnum. Ah, that sounds like a bug... I'd actually forgotten that we did that, it should work though since the code is there and it (hopefully) worked at some point. --6W/vd+xQRxZFP9Eu Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQEcBAEBCAAGBQJWoTwdAAoJECTWi3JdVIfQ8FEIAIWBmZyYe2UWePH41436OR8Q DDOGhgoDMnBH/TobV7jGQf2v46z0ACwNrLcj9vlTPqhyEpoKFmyP0X2/2vguKymF /W4sDCpXiov6IyTj/TdRZi7cdTpMNJj3tY9p6AEsfy1xWAMXPDJ+APNZcorXkstm g8uCXx9r3uBfcNuANSTiwJVvdBVsQWEnfYMzbjcDdeww4FHosGn5nNorIDW+B0ej lUqrBEniUkpd1fTJNb58YLApbPnTI9P4jB+Np+0rHMYzmIyzN/sb49WG95uROxrt WWaA43E7hWf0fyJ2zcqnaYVMqhGm6XhqmV4yrlheuz5wYOTuYDoGUx0ayRxoMjI= =mXiR -----END PGP SIGNATURE----- --6W/vd+xQRxZFP9Eu--