Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp1931270ybx; Thu, 7 Nov 2019 20:06:51 -0800 (PST) X-Google-Smtp-Source: APXvYqyxBzC+zjW3pHAbiKKrAXKMANHcUdTCoIx7Ha1FwO0qy5znL9EgUobFhk51RrrZDtAoBju2 X-Received: by 2002:a17:906:1f44:: with SMTP id d4mr6721762ejk.16.1573186011511; Thu, 07 Nov 2019 20:06:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573186011; cv=none; d=google.com; s=arc-20160816; b=EpNn0XZJPGoRPyBJE+cwGFLGVE+OwW45iRNl3AFw53su+KDeD3Dov8kq84JmrJO5gv fXOfuQhuws9RE1NSBunpYhLIFs8THixpw2xGBQipcGqFLDSKFxXc9FaU+uFsvoEsBBak cIaJhbhD1zeAVv8CkwraZIkUo3+4DUTS9PmMHijTbmyJy8cq+Zw+ZhW4cfaGUkHqnUP+ OluYi9D6QGjJ9Omze6eNV25Kni2cRnSsYx3ZOYtPzrw65hHh30b/7cr43fUIH2IBU/Sc 6B/Bzgo9iD57N233WdXcYC47ioECQc/QrU9NE4WtwZgUWkDBd7oqe/sn7zqwVO+8tfvP A4Xw== 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; bh=+18dPYH2E6mreEz0f2zSTeQ5XCmB/gz8vqm6IsDOIMI=; b=I4gyoyHt3URqOAEAIO0xkfsjwveLhQ/PgBKpmdBNggQYDC3eti33qouspW30reHGzY iiZffpOPzLmaOPh88mWfvzJVXk2vpco8WuwdeeUw503coDuffNVC7sxfpjSDONHtBsA2 XtravXn6bypUw5oye72IeXeW6IdRaubeDcbvh+F0cnqVcKkFFTWGSfszbn0qa2JiyY87 rg8x/qlCVZNx9Fg8CDH0dmUn1CvPB2mtWRPTzWC3jneK+Q6eGSwjhBRjVjMxJa7Yb3bx ohy3e6N00yKjZUNul20BqZvi8VmWTnhc5mCJVq7kbRnegPMGAOZl06bCbB0ZQ2LqIJqY 6IoQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=Nw6TiCjg; 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=pass (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 ks14si2941185ejb.87.2019.11.07.20.06.27; Thu, 07 Nov 2019 20:06:51 -0800 (PST) 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=pass header.i=@kernel.org header.s=default header.b=Nw6TiCjg; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729443AbfKHEEc (ORCPT + 99 others); Thu, 7 Nov 2019 23:04:32 -0500 Received: from mail.kernel.org ([198.145.29.99]:47984 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726219AbfKHEEc (ORCPT ); Thu, 7 Nov 2019 23:04:32 -0500 Received: from localhost (unknown [106.200.194.165]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 1743020679; Fri, 8 Nov 2019 04:04:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1573185871; bh=SvuaRTCeiaXO1ulAR/hJt99i4giuW2xuFA2TDU0zp18=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Nw6TiCjgbXAYPw4/yuxeXN1VTfWQPOYCZ720Hd4sVm2Fjp2XqgmMEUPstd7kcpMD6 iLyGR/e0RXRctA8Vq+e+0xmMB8ZVpHLcn7/khJVx/yhcVG38OrKvyvgUm8Wh5LQIyp P8lIM256KMJw7TLMZOFSsv7yYu72KxT6iAu3R99M= Date: Fri, 8 Nov 2019 09:34:27 +0530 From: Vinod Koul To: Pierre-Louis Bossart Cc: alsa-devel@alsa-project.org, tiwai@suse.de, gregkh@linuxfoundation.org, linux-kernel@vger.kernel.org, Ranjani Sridharan , broonie@kernel.org, srinivas.kandagatla@linaro.org, jank@cadence.com, slawomir.blauciak@intel.com, Sanyog Kale , Bard liao , Rander Wang Subject: Re: [alsa-devel] [PATCH 07/14] soundwire: add initial definitions for sdw_master_device Message-ID: <20191108040427.GT952516@vkoul-mobl> References: <20191023212823.608-1-pierre-louis.bossart@linux.intel.com> <20191023212823.608-8-pierre-louis.bossart@linux.intel.com> <20191103063051.GJ2695@vkoul-mobl.Dlink> <9a8fb9ec-1ccb-4931-1ec6-bfae043e8c88@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <9a8fb9ec-1ccb-4931-1ec6-bfae043e8c88@linux.intel.com> User-Agent: Mutt/1.12.1 (2019-06-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 04-11-19, 08:42, Pierre-Louis Bossart wrote: > > > On 11/3/19 1:30 AM, Vinod Koul wrote: > > On 23-10-19, 16:28, Pierre-Louis Bossart wrote: > > > Since we want an explicit support for the SoundWire Master device, add > > > the definitions, following the Grey Bus example. > > > > > > Open: do we need to set a variable when dealing with the master uevent? > > > > I dont think we want that or we need that! > > In GreyBus there are events and variables set, not sure what they were used > for. The code works without setting an event, but we'd need to make a > conscious design decision, and I am not too sure what usersace would use the > informatio for. > > > > > And to prevent that rather than adding a variable, can you please > > modify the device_type and use separate ones for master_device and > > slave_device > > sorry, I don't get the comment. There is only already a different device > type > > > struct bus_type sdw_bus_type = { > .name = "soundwire", > .match = sdw_bus_match, > .uevent = sdw_uevent, We can remove this > }; > > struct device_type sdw_slave_type = { > .name = "sdw_slave", > .release = sdw_slave_release, Add here: uevent = sdw_uevent, > }; > > struct device_type sdw_md_type = { > .name = "soundwire_master", > .release = sdw_md_release, > }; And not have here! Problem solved! -- ~Vinod