From mboxrd@z Thu Jan 1 00:00:00 1970 From: zhangfei Subject: Re: [PATCH 09/25] scsi: hisi_sas: add phy SAS ADDR initialization Date: Thu, 15 Oct 2015 11:36:53 +0800 Message-ID: <561F1F55.9070606@linaro.org> References: <1444663237-238302-1-git-send-email-john.garry@huawei.com> <561E1501.2070507@suse.de> <561E6F31.9050804@huawei.com> <5841294.bjnFQrbOU2@wuerfel> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <5841294.bjnFQrbOU2@wuerfel> Sender: linux-scsi-owner@vger.kernel.org To: Arnd Bergmann , John Garry Cc: Hannes Reinecke , James.Bottomley@hansenpartnership.com, devicetree@vger.kernel.org, linuxarm@huawei.com, linux-scsi@vger.kernel.org, xuwei5@hisilicon.com, john.garry2@mail.dcu.ie List-Id: devicetree@vger.kernel.org On 10/14/2015 11:18 PM, Arnd Bergmann wrote: > On Wednesday 14 October 2015 16:05:21 John Garry wrote: >> >> OK, we can look at adding the ability to read the SAS HBA address from a >> FW image or EFI variables. >> > > The easiest way is usually to have a DT property that gets updated > by the firmware. > Yes In net subsystem, there is mac-address. In dts, we set default mac-address, which will be modified by boot-loader, if all 0 random address will be used. mac-address = [00 00 00 00 00 00]; In driver, mac-address can be get via of_get_mac_address. Can we use the similar method here? Thanks