Received: by 2002:a05:6358:5282:b0:b5:90e7:25cb with SMTP id g2csp3888887rwa; Tue, 23 Aug 2022 11:57:40 -0700 (PDT) X-Google-Smtp-Source: AA6agR6sMzoTdRK8fYZufO+l8XTDgkPFcQGpYzmjC9ELqyhli+/UjEcS9oGh3dySrQFbQAHDGhV6 X-Received: by 2002:a17:906:668b:b0:730:a5b7:8985 with SMTP id z11-20020a170906668b00b00730a5b78985mr606818ejo.548.1661281060458; Tue, 23 Aug 2022 11:57:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661281060; cv=none; d=google.com; s=arc-20160816; b=fIcMwltxvOa8Yq3R1UDd18aOf5U81IZm/+v2W3o3JNhKFv9DCWPjLpp5lh/1ovYq/W WauoDZr9eapTYzcPBIkVi2kKFwfo42QsOTYaD2kcQtueCzVQYmVuMc/im7Pu3U8pQTYf veQ5tBILBnOfRhvynb86ArOyxMd4HnAOq3y3oNOBrBIXgk+UZ1DYtYLUyQgjmu3fNuHZ d6/VuFA+xR3yMCd8i+YYVOTHoyQR0bmMVtr46NBT+cxXm59heeUh+4c4uzqQshv7DQHX fYeEXLaLZEACzrMoVHvH2+O0ByLCP7pj7wGM8L9Uko22taAgyHpxWTiIyygjJB3pZzxd q2lA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=ddG6ndvGewan4a1brOqvWg0YK75e1ftXPNFmD6haxiI=; b=XN5/DCClyiUIUdxXtY2ACQb+uVa8PFVmvHZPo2tWYt/+5TQjalT+T9hwzZhAUhoNVF oQfe7wSsZZxiM3CkixLtsaWwK1wzuXAIyWUC3w+yLKAjqau/CYbTnErtUZXM145ZEnAK zMAJ0AsyzgiN98NQtaST/5ZpdX+86aDXSsUNqIG7wL0ighyRr480GE72xI+aD3x4tHRm 26wziJ5V8T5sSIVkVQVqnFOjdAo/Kl8uTW94ep7IGMf3YdSmOLhdtX8WUeYT8yXczANt CnC429R6OTtHyCS9djqBZS8Keos9ZPl9a/5TELS1dvgCJ7cnlCcUtTQeMJi7cBqegUIq A19Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=dWGbMRp6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id r20-20020a05640251d400b004462414a0a2si2825778edd.139.2022.08.23.11.57.12; Tue, 23 Aug 2022 11:57:40 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=dWGbMRp6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229600AbiHWSiD (ORCPT + 99 others); Tue, 23 Aug 2022 14:38:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45016 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232798AbiHWShi (ORCPT ); Tue, 23 Aug 2022 14:37:38 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 09920112C5F for ; Tue, 23 Aug 2022 10:00:29 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 701BBB81E97 for ; Tue, 23 Aug 2022 17:00:28 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id A3BCCC433D6; Tue, 23 Aug 2022 17:00:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1661274027; bh=d+UO5JCLB6pOQQecPBJTnPqg/phJ8oDfkjxDgPpU78M=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=dWGbMRp6InFfgbZqiXs/vb/mHcDhH1LHqnOYHw8dNY3Xl58QBc8nSYOZQm4YYnMVo nkaL7e2XtTTDlRkLD5ZB4LUX/SoNPCNdmfbnF4ZLVf3ug7pmzTByhfDAgnoPfhrbrx Rij1uPC7arGaxcC6UOLMLyrluOHs6QVHY/F9YHiijb12ayaqo/SnMdztWZjZvv8ucP Zg/1Oe34+GrYSgXc8yEYaHpNhK7TEZR6tVJW9EYagtRc8c3k2csTnCQfutdHb1WuQy Pi8c/zgzjqQH8TTxkG/8Mx2d5Pcvt1AGiBTvPvH/5/+yfVoO27TpsSXGb5IECpj19u h7C5Z7OiCU+rw== Date: Tue, 23 Aug 2022 22:30:23 +0530 From: Vinod Koul To: Bard Liao Cc: alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org, pierre-louis.bossart@linux.intel.com, bard.liao@intel.com Subject: Re: [PATCH 0/3] soundwire: allocate device_number with IDA Message-ID: References: <20220823045004.2670658-1-yung-chuan.liao@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220823045004.2670658-1-yung-chuan.liao@linux.intel.com> X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 23-08-22, 12:50, Bard Liao wrote: > The device_number is currently allocated in the scope of each bus and does > not need to be unique at the system level. > This leads e.g. on Dell devices with three or four Device1 on different > bus segments. And how is that an issue that should be fixed? > To make the device_number unique at the system level, and Why should we do that... > unified with the HDaudio/iDISP SDI values, this series allocates the > dev_number with an IDA restricted between 4 and 11 (inclusive). Does this not place an artificial restriction that a system can have only 12 devices if we have unique device Perhaps a better way would be to use dus:dev combination while dealing with a device always..?? -- ~Vinod