Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp8037498ybi; Thu, 6 Jun 2019 05:48:02 -0700 (PDT) X-Google-Smtp-Source: APXvYqzD1u3Gg6j7cj7p2ZlH8bQYr9zQKmxod/gLUNyNLbG3plkH7hx0Zx/shnlbK2jcM2zB9fqN X-Received: by 2002:a17:902:3341:: with SMTP id a59mr21454774plc.186.1559825282315; Thu, 06 Jun 2019 05:48:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559825282; cv=none; d=google.com; s=arc-20160816; b=k2+imqvtwbDUl+JGHMhXDaQwghF23i/FlW3S3QE4UUUB+CdVQyRFzs+ZtJXQ5b9L+H VTa1XuuIr4gxjVjgA0+5ftJYSHAe5XXZTJoV1/q4vxJiW81iVW2WmAzRJoEygkbUnII7 6zh1cxOh45uCoNixFVjfsyLcmNsM/OQ02M0BorS4QP739PXSpg5hmrCT7otjtrdeG3Fa b5XBoMFOis1bqq3kelkH1HRVSsO/Y5xKfrKYlwZWByrvreZ4Yf0c1x26IApD+4NeOlJO F6yTgKe29y02nVc6ubIoOMTvJAN+nXtLoLnme03SlyZ/TVNlLScDz+jS3qIoLkTAI/q2 v/kA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=VvMAoYB96Ne6gNiw7p4GFcBlSUcy3tQ2OsEurFpYOpk=; b=o0c4d+b6U7Zi1CfghqXvmn+rBGknr6wHA6oyW6ndGZqPs2ZTiOc8R1Zy/d41hl8D51 6Clw/wmhJwtgb7dDYoov/llezbgBoKY1Wuc7flOrIhcYy7bFSb2iZQ5VYP6bn1bbmotH Laz3nFE7Yi/0HllsbRiqEogYcx3/kF8VJTjQomRmsN2o4ciXU64WdVoX6y3dRhXtrjKi 6IW9zNVYZPU4mYgtwEqKD8Gp9ESoKFyZDreJRaK9GXq8u7gKofRZPGYgA0CGlrH3PbMw 9mGzPIyCLOjUvAsam/TKhKYklbJU1Ay9fvNExtw2wM1Ovh+3ggY/Qef0W9elAxfKIThj XJfA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cloud.ionos.com header.s=google header.b=GdLHRxhx; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o4si1963121pgg.49.2019.06.06.05.47.45; Thu, 06 Jun 2019 05:48:02 -0700 (PDT) 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=@cloud.ionos.com header.s=google header.b=GdLHRxhx; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728684AbfFFL5c (ORCPT + 99 others); Thu, 6 Jun 2019 07:57:32 -0400 Received: from mail-wm1-f67.google.com ([209.85.128.67]:38128 "EHLO mail-wm1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727290AbfFFL5b (ORCPT ); Thu, 6 Jun 2019 07:57:31 -0400 Received: by mail-wm1-f67.google.com with SMTP id t5so2123421wmh.3 for ; Thu, 06 Jun 2019 04:57:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cloud.ionos.com; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=VvMAoYB96Ne6gNiw7p4GFcBlSUcy3tQ2OsEurFpYOpk=; b=GdLHRxhx1Eu+J3NK1DpIviyVH+JsheaELn3+MZJvUpurQ7ZbpnhuXpC98K777RsjtZ Ur0j4Bq8CVjlMS01NwZh+H91f9E6zGSmWvoOhDoE6UZ5w/HSwnwM9yKARE9w96fkBwjD M7QoOMIYuwT23+B/IzP2d22c2QtofMPh61bSS3AEXKDZJgHwtO/mo5BRHDStfYb5F+8Y xxYCNpLUck7plVgsMT0yAVLkh704eDLhMqpNJRxofjGuniSOhR1RspZPAGN5+vD8NAhE gajHo5nNnB4NS/LLe5CDX989n5WFdK31oJuJaK4s5mjlJZUzxUR/qIiU7zj07bvp5ufw SCDQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=VvMAoYB96Ne6gNiw7p4GFcBlSUcy3tQ2OsEurFpYOpk=; b=BJwaOayGAUM7q/OyWt5xUmeyNIPnmT1wOHHJq0uKeRmn5hC23rnFOOL+9dR/FzJ9dz Qq4cY4qO5DHIhU3PpiNi0NzCD55uRoHwz3q7puUicyFikCdvg43Y03UkGDfJpDNs5Q1L WdHH0yw0wOSzj/bzoxa+hm8R/XaGbBJ4RpLPg8mitdcI/X079uv/2R05fcZb/mDTcbH3 B+AR/EevCqKaDqWlVJeQobfWcJktf9Xy+sdDC02P0+k/ba/GYfmCS6Pz9jrih7W4ARTz fPPosccKVEa+Goi3UE/X9RMeUSWaWYfKR+A0ZpYtlLQvTtbm3ZH5hH+QOMPgiPkIwsui 5znQ== X-Gm-Message-State: APjAAAXqZuo6PY4kXOcLY4Q61zAZLtaozxuSqHSXe2kbkJoB5poMTXhT GoaXFf9+AgbPVRwUnPpqmrB0/GKMpI4aAdMPyCgkS9+h85w= X-Received: by 2002:a1c:c915:: with SMTP id f21mr24578674wmb.123.1559822249364; Thu, 06 Jun 2019 04:57:29 -0700 (PDT) MIME-Version: 1.0 References: <1559751143-168560-1-git-send-email-john.garry@huawei.com> In-Reply-To: From: Jinpu Wang Date: Thu, 6 Jun 2019 13:57:18 +0200 Message-ID: Subject: Re: [PATCH] scsi: libsas, lldds: Use dev_is_expander() To: Jason Yan Cc: John Garry , "James E.J. Bottomley" , "Martin K. Petersen" , intel-linux-scu@intel.com, artur.paszkiewicz@intel.com, Jack Wang , lindar_liu , Linux SCSI Mailinglist , linux-kernel@vger.kernel.org, Hannes Reinecke Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jun 6, 2019 at 3:35 AM Jason Yan wrote: > > > > On 2019/6/6 0:12, John Garry wrote: > > Many times in libsas, and in LLDDs which use libsas, the check for an > > expander device is re-implemented or open coded. > > > > Use dev_is_expander() instead. We rename this from > > sas_dev_type_is_expander() to not spill so many lines in referencing. > > > > Signed-off-by: John Garry > > Cannot agree more=EF=BC=8C > > Reviewed-by: Jason Yan > Looks good, thanks Jason! Reviewed-by: Jack Wang