Received: by 2002:a4a:311b:0:0:0:0:0 with SMTP id k27-v6csp4542608ooa; Tue, 14 Aug 2018 07:21:30 -0700 (PDT) X-Google-Smtp-Source: AA+uWPxkaKaUDWBG8EbM7tIEyPCm2t00xfcn5FEstOl4+p7unE6kzdgIdkMX6luiioNy1+FwPeJb X-Received: by 2002:a17:902:7b97:: with SMTP id w23-v6mr20889092pll.66.1534256490772; Tue, 14 Aug 2018 07:21:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1534256490; cv=none; d=google.com; s=arc-20160816; b=uzxyoNLywKSpaypLvJ+Y9kpm328Bb8RiTvA5PGk0LpqXDNcLcg0BVOrY+FXsjvjrEQ iSAB/yZtj+MrAIDbjFhXc5ZoL0l/4agsHWMJNDE0mM5V6paa6ujWDRH+UK2I5HNCQOoa Ae3+LmAPYr+Qzb/HHDJo2Wktr13emOXFba2uaMgrsyCAdI2Kc4+WWYp1nlSHZXtgvab+ 2N8c9zPB3P0dUFfLXBWr7SZvEmDgql+L95iVjZwFl7DHXD6Id7qvhjndvVgNrEV0oAIM pKXDIiAkOhP8x0C72m3rCsie0F7TQeQ2Pc0D74kKYJIVHeS2gSl8Mgel2rWF0QkaCWk/ wBSA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=sXwMjNq8QW2l2WGeOGKXF2ABAogUZ1Vbp49lPxMIR2M=; b=0tQ8OBbfVr8eKT82I1Ue+tcQwNpOPNuC9yNyqBVbd3OVkNvd3kyqKXPonojaQaHYFl ZFyHirvBs2G4MGbYIXzW/m9ukkg3yDlikcEewKed8wc+AfXrohcbq+1K7P+whaoOjNeY LTF0IxELoh4V0YiODyeEk8gzZhbao6SkOU6ZU9VIL/1qSqJseHodZm8nQfZDMjh0bxzK cAM+V5wYLnfy43T6X6F9KfaTgyjJvxSk2HRJd2VL7v00VGNnB/to8boLKvQoWeJ2rk/q GBKp9ADlaWXwKM41btfZGmOHzMfyRZyKg34Ad7VB2QeNVls/VKlmiA0tBB7sh4hATRR7 hm2Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@sirena.org.uk header.s=20170815-heliosphere header.b=ueVnUv1l; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b4-v6si3112827plb.215.2018.08.14.07.21.05; Tue, 14 Aug 2018 07:21:30 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@sirena.org.uk header.s=20170815-heliosphere header.b=ueVnUv1l; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732771AbeHNRGY (ORCPT + 99 others); Tue, 14 Aug 2018 13:06:24 -0400 Received: from heliosphere.sirena.org.uk ([172.104.155.198]:59672 "EHLO heliosphere.sirena.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730259AbeHNRGY (ORCPT ); Tue, 14 Aug 2018 13:06:24 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sirena.org.uk; s=20170815-heliosphere; h=In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=sXwMjNq8QW2l2WGeOGKXF2ABAogUZ1Vbp49lPxMIR2M=; b=ueVnUv1lBRBqdxpcw/nILBMNB UgCSiu29xb3kENPwpmTYe5G4ak+T/t1U36i/u+BnNNbDQhctjkEdJBXncymZBEvWHMoQHsjtE68cr +fKm1E5dq42skQXfdClSWmibGZ1caUjoC4SkXsn2bY7acEcXQy+u3mVsmknWm3OToWiUo=; Received: from cpc102320-sgyl38-2-0-cust46.18-2.cable.virginm.net ([82.37.168.47] helo=debutante.sirena.org.uk) by heliosphere.sirena.org.uk with esmtpa (Exim 4.89) (envelope-from ) id 1fpa9z-0000sE-SZ; Tue, 14 Aug 2018 14:18:59 +0000 Received: by debutante.sirena.org.uk (Postfix, from userid 1000) id 2E7CA1124449; Tue, 14 Aug 2018 15:18:59 +0100 (BST) Date: Tue, 14 Aug 2018 15:18:59 +0100 From: Mark Brown To: Kirill Kapranov Cc: linux-spi@vger.kernel.org, linux-kernel@vger.kernel.org, l.stach@pengutronix.de Subject: Re: [PATCH] spi:fix IDR collision on systems with both fixed and dynamic SPI bus numbers Message-ID: <20180814141859.GC5810@sirena.org.uk> References: <20180813164810.16769-1-kirill.kapranov@compulab.co.il> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="IpbVkmxF4tDyP/Kb" Content-Disposition: inline In-Reply-To: <20180813164810.16769-1-kirill.kapranov@compulab.co.il> X-Cookie: All true wisdom is found on T-shirts. User-Agent: Mutt/1.10.0 (2018-05-17) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --IpbVkmxF4tDyP/Kb Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Mon, Aug 13, 2018 at 07:48:10PM +0300, Kirill Kapranov wrote: > On systems where some controllers get a dynamic ID assigned and some have > a fixed number (e.g. from ACPI tables), the current implementation might > run into an IDR collision: in case of a fixed bus number is gotten by a > driver (but not marked busy in IDR tree) and a driver with dynamic bus > number gets the same ID and predictably fails. Is this something that's actually happened for you? > + } else { > + /* devices with a fixed bus num must check-in with the num */ > + mutex_lock(&board_lock); The indentation here is weird, the comment isn't aligned with the code it's commenting on. --IpbVkmxF4tDyP/Kb Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAlty5NIACgkQJNaLcl1U h9Cltgf6AoHkyc03ShpCTDuvl+u2bjgiiUx+V3abGWb0pEZkU0ZVVIj4+3v+dIZI Rv6pP6cY1bb2q9KYxbxJSP0h9d1ywrec1ynGvxbWswLQJrXH5KDV8s2AJhOmNoOr bOQJESJBEpfC7msE6yqYKcI7HGBNT3Vsf8T3PVIRea+mJL8690mhsopehWwUKoiy 6B2IZcwYmS+3fCitHQEMZ8z6G9pXYaVNWCoVe1PVDihW2NE3qI474nbqnM5KNmnx CfORtA1toS+a56QCR4baEWAyNAHbr/anRlnoqOic/qJQJflx1ZD5h1RoEmL3RgOV 6TmZUGdgvfbj2HeWgoN8HQ51zySPBw== =EdRp -----END PGP SIGNATURE----- --IpbVkmxF4tDyP/Kb--