From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753179AbcGSHIN (ORCPT ); Tue, 19 Jul 2016 03:08:13 -0400 Received: from mga09.intel.com ([134.134.136.24]:51248 "EHLO mga09.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753069AbcGSHIK (ORCPT ); Tue, 19 Jul 2016 03:08:10 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.28,388,1464678000"; d="scan'208";a="1024580865" Date: Tue, 19 Jul 2016 10:08:02 +0300 From: Mika Westerberg To: "Rafael J. Wysocki" Cc: Crestez Dan Leonard , ACPI Devel Maling List , "Rafael J. Wysocki" , Jarkko Nikula , Len Brown , linux-i2c , Wolfram Sang , linux-spi , Mark Brown , Linux Kernel Mailing List , Octavian Purdila Subject: Re: [PATCH v2 3/3] acpi spi: Initialize modalias from of_compatible Message-ID: <20160719070802.GO14693@lahna.fi.intel.com> References: <1d26e956f12fcd86ad915659adeb86e242b96ac7.1468409668.git.leonard.crestez@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo User-Agent: Mutt/1.6.1 (2016-04-27) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jul 13, 2016 at 02:22:02PM +0200, Rafael J. Wysocki wrote: > On Wed, Jul 13, 2016 at 1:53 PM, Crestez Dan Leonard > wrote: > > When using devicetree spi_device.modalias is set to the compatible > > string with the vendor prefix removed. For SPI devices described via > > ACPI the i2c_board_info.type string is initialized by acpi_device_hid. > > When using ACPI and DT ids this string ends up something like "PRP0001". > > > > Change acpi_register_spi_device to use the of_compatible property if > > present. This makes it easier to instantiate spi drivers through ACPI > > with DT ids. > > > > Signed-off-by: Crestez Dan Leonard > > Same as for the i2c patch: it looks good to me, but I'd prefer to get > a word from Mika on it too. Reviewed-by: Mika Westerberg