From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753396AbdJULdB (ORCPT ); Sat, 21 Oct 2017 07:33:01 -0400 Received: from mga07.intel.com ([134.134.136.100]:30693 "EHLO mga07.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753344AbdJULdA (ORCPT ); Sat, 21 Oct 2017 07:33:00 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.43,410,1503385200"; d="scan'208";a="165826321" Date: Sat, 21 Oct 2017 17:07:18 +0530 From: Vinod Koul To: Mark Brown Cc: Greg Kroah-Hartman , LKML , ALSA , Takashi , Pierre , Sanyog Kale , Shreyas NC , patches.audio@intel.com, alan@linux.intel.com, Charles Keepax , Sagar Dharia , srinivas.kandagatla@linaro.org, plai@codeaurora.org, Sudheer Papothi Subject: Re: [PATCH 04/14] soundwire: Add MIPI DisCo property helpers Message-ID: <20171021113718.GG30097@localhost> References: <1508382211-3154-1-git-send-email-vinod.koul@intel.com> <1508382211-3154-5-git-send-email-vinod.koul@intel.com> <20171021092046.p6wsssjkonjjdidt@sirena.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20171021092046.p6wsssjkonjjdidt@sirena.org.uk> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Oct 21, 2017 at 10:20:46AM +0100, Mark Brown wrote: > On Thu, Oct 19, 2017 at 08:33:20AM +0530, Vinod Koul wrote: > > > + /* device is probed so let's read the properties now */ > > + if (slave->ops && slave->ops->read_prop) > > + slave->ops->read_prop(slave); > > Is it valid for us to not be able to read the properties? Practically no. Without the values bus wont work > > > + fwnode_property_read_u32(node, "mipi-sdw-port-max-wordlength", > > + &dpn[i].max_word); > > + fwnode_property_read_u32(node, "mipi-sdw-port-min-wordlength", > > + &dpn[i].min_word); > > Don't we know this stuff simply by virtue of knowing what device we're > talking to (given that there aren't class devices)? Well I think the spec is midway to device class so they added it to make it generic :) -- ~Vinod