lkml.org 
[lkml]   [2016]   [Jan]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 09/23] hisi_sas: add v2 hw init
On Fri, Jan 08, 2016 at 10:15:28PM +0800, John Garry wrote:

> + /* Global registers init*/
> + if (of_get_property(np, "am-max-trans", NULL)) {
> + hisi_sas_write32(hisi_hba, AM_CFG_MAX_TRANS, 0x2020);
> + hisi_sas_write32(hisi_hba, AM_CFG_SINGLE_PORT_MAX_TRANS,
> + 0x2020);
> + }

Use of_property_read_bool for boolean properties like this.

I still don't follow exactly what this property means, and why it is
necessary, but that's an issue for the binding document.

Thanks,
Mark.

\
 
 \ /
  Last update: 2016-01-08 16:41    [W:0.207 / U:0.968 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site