From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id C79E8E7B611 for ; Wed, 4 Oct 2023 13:38:23 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233255AbjJDNiZ (ORCPT ); Wed, 4 Oct 2023 09:38:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54878 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232786AbjJDNiZ (ORCPT ); Wed, 4 Oct 2023 09:38:25 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 89E94CC; Wed, 4 Oct 2023 06:38:21 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9C8D5C433C7; Wed, 4 Oct 2023 13:38:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1696426701; bh=Ss8s2/WlfLl0ZNk8aSgmRatjydRsXp0ZEDMGWEjLamU=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=bwLCv5yDlxxJhHZE0LC3IeQnmAG4csT8qF4YAjaQ0xcXLbUZK2c7uZyWHqop+cnEX Zf/JiwkHG7L4HCtePF4vhsCVI0mKaFVHkAUbMWhrk84bTCQ93eeIzHv8Bhz38rvpeR q7R7aUhEvjoySqsFswSQFfZwYfh/0oJaDoOepF3o= Date: Wed, 4 Oct 2023 15:38:18 +0200 From: Greg Kroah-Hartman To: Pierre-Louis Bossart Cc: Krzysztof Kozlowski , Vinod Koul , Bard Liao , Sanyog Kale , Philippe Ombredanne , Takashi Iwai , alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org, stable@vger.kernel.org Subject: Re: [PATCH] soundwire: fix initializing sysfs for same devices on different buses Message-ID: <2023100453-perfected-palm-3503@gregkh> References: <20231004130243.493617-1-krzysztof.kozlowski@linaro.org> <6628a5f6-ed22-4039-b5c2-2301c05c7e3e@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <6628a5f6-ed22-4039-b5c2-2301c05c7e3e@linux.intel.com> Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org On Wed, Oct 04, 2023 at 09:16:47AM -0400, Pierre-Louis Bossart wrote: > > > On 10/4/23 09:02, Krzysztof Kozlowski wrote: > > If same devices with same device IDs are present on different soundwire > > buses, the probe fails due to conflicting device names and sysfs > > entries: > > > > sysfs: cannot create duplicate filename '/bus/soundwire/devices/sdw:0:0217:0204:00:0' > > > > The link ID is 0 for both devices, so they should be differentiated by > > bus ID. Add the bus ID so, the device names and sysfs entries look > > like: > > I am pretty sure this will break Intel platforms by changing the device > names. > > sof_sdw.c: else if (is_unique_device(adr_link, sdw_version, mfg_id, > part_id, > sof_sdw.c: > "sdw:%01x:%04x:%04x:%02x", link_id, > sof_sdw.c: > "sdw:%01x:%04x:%04x:%02x:%01x", link_id, device id name changes shouldn't break things, what is requring them to look a specific way? thanks, greg k-h