From patchwork Tue Apr 18 19:00:59 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pranav Prasad X-Patchwork-Id: 85025 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp3071272vqo; Tue, 18 Apr 2023 12:13:51 -0700 (PDT) X-Google-Smtp-Source: AKy350az4ulzuKOFgAfjqIWM8o9NZu3ghDrO+Z0RwzFhGBbrFrZs8vr1/QK3oZud0swmTkgKVj/x X-Received: by 2002:a17:902:cf52:b0:1a6:639e:887e with SMTP id e18-20020a170902cf5200b001a6639e887emr2741718plg.13.1681845231636; Tue, 18 Apr 2023 12:13:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681845231; cv=none; d=google.com; s=arc-20160816; b=iwrkPUwUrdsZxoStJSC5l7Fi6FQeHSsAQxopW+Px0cJH7UP68WqXb8IT/oDyUV4CrN elZxmxg1Mj8g0WwQsWjK59Wthc6e0ghXcy5dF5jwdZEKl7mxWtW6JVZMGDvJOvDaVhHz gZ7lAI4i7wbXMoY7LirX9fWPwJ4Zd8ofeMZi+WqalTIYhPtiYzxA8vYzZR0ZuZDxEY1t YtPlQUBuIDRkDMl3ro6GHdgy0oJ45LUJ+qfoB9WyXpG/fJntEod/zL9JH82Tm+j30OgJ HLJZHS6dmvjYcIV0uTckixJNEeYN0C+yO7PvjfawdPie59oCszJZbYfnQ4KsmjM4t1kn F0qA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:from:subject:message-id:references :mime-version:in-reply-to:date:dkim-signature; bh=Q705pkA7pRJMTNZuDFlVqTXdHPjT6mc0BG+foW8FYi0=; b=ZpDouYQRwyCg20q1eolR5ZJFFkUMnGr9Wj6gb8R8QQhoa7jpFHjWekWKoxml2YuIR1 B64nXKkG6h26ZzgYI46u1pEcdr2wuEiZQPug67fmGJzA9T2JHCKKlGcOph5p8qryjVor 32wGGpL/HG4YG+ZAYP+bj40KpY/up+mTWnClDXCqqZ6Tf+RAyJqtPC5A+0FHMeGkYTKG gHrXH335xjvgddmzY/i1KD6FBy80p6AqumRODaipPaL+bsfPfX9UjBsDD4tXmFTCiB9v yMomxjrwGGuAq9jesjXrce9OA86ORAZ9P19nEdZlrM1intsx036P1nf83uFeixrJqvOd Kbvw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20221208 header.b=GqaVpB2z; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k9-20020a170902c40900b001a1a9a1d336si16013192plk.206.2023.04.18.12.13.11; Tue, 18 Apr 2023 12:13:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20221208 header.b=GqaVpB2z; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231168AbjDRTCO (ORCPT + 99 others); Tue, 18 Apr 2023 15:02:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45982 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232239AbjDRTBz (ORCPT ); Tue, 18 Apr 2023 15:01:55 -0400 Received: from mail-pj1-x104a.google.com (mail-pj1-x104a.google.com [IPv6:2607:f8b0:4864:20::104a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3AB4EAF1E for ; Tue, 18 Apr 2023 12:01:54 -0700 (PDT) Received: by mail-pj1-x104a.google.com with SMTP id 98e67ed59e1d1-246f13f35f1so1304791a91.3 for ; Tue, 18 Apr 2023 12:01:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20221208; t=1681844513; x=1684436513; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:from:to:cc:subject:date:message-id:reply-to; bh=Q705pkA7pRJMTNZuDFlVqTXdHPjT6mc0BG+foW8FYi0=; b=GqaVpB2zVNhyjotwG0yVhTUD2FgvGT2em4z75cUO2Etv9n/147+YOqB1E8CyE4fiv3 JEf8JAbdkea0iZPmSHSc15ndLOJ2IkC4Sj6HeYSJdQpMsdA78+IA0GK/IKQA0r9nncfo bXcfgRJkYIJuIlbUNqa2N8hn3g3CWMlgBLhbNelz093pW51MxIt4CGWlAhGz2OtZX43h TcjF0s+XJQYHIgn75hlKWOQhCzDd3pN5zXhBXhWHoqrc2U9lC+qvgvrQeyD4dAmbJHrE LP1INYSdOeVG/U2wmrnEflyUDg8+aZwcaTznM3pehyzxkLgbWsyrxgPH5e78ZwEaBeSA hAqQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1681844513; x=1684436513; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=Q705pkA7pRJMTNZuDFlVqTXdHPjT6mc0BG+foW8FYi0=; b=BYD0WAHFAPesJN8pZuRa22IY8xckS2O7H6E1aM01lAggT8ozQmlDAiQfqSicP+vteY RrZbbSL6WkWbjj5L3bAF3cVBOvwIryp+23C3oRkz+p3Se2oeN/bhjiRo5ZCcbNohFiHK TD3vxRUbMDCPQ2WLGdCdYvOv8xwsjuwpo41VEBJevshnJgKcEECmQNS9YppUNUvjLaIx /hkLyCLGNEPqu7/RmFkT7FPdY4M/W2Wy1mYSgXsLIx7WlX4GOhvo1CFib8dYUsZRCR3c 6ePYovS8aNBKoBOsosGTWSk6GnVmB85UhXweEJk06cDZ96MCyQOhp6hya1rBnDAntISf OG9w== X-Gm-Message-State: AAQBX9fI8fBBQ0cIjwfh+TF9VMlh8m3L1LQ9JszYBu9kmIc9Ynv/ZewU MnLDsExTN02/LYZk6M/nfItU8mtXELHR+g== X-Received: from pranav-first.c.googlers.com ([fda3:e722:ac3:cc00:24:72f4:c0a8:390b]) (user=pranavpp job=sendgmr) by 2002:a17:90a:3182:b0:247:11e6:f6ff with SMTP id j2-20020a17090a318200b0024711e6f6ffmr260224pjb.3.1681844513734; Tue, 18 Apr 2023 12:01:53 -0700 (PDT) Date: Tue, 18 Apr 2023 19:00:59 +0000 In-Reply-To: <20230418190101.696345-1-pranavpp@google.com> Mime-Version: 1.0 References: <20230418190101.696345-1-pranavpp@google.com> X-Mailer: git-send-email 2.40.0.634.g4ca3ef3211-goog Message-ID: <20230418190101.696345-5-pranavpp@google.com> Subject: [PATCH 4/6] scsi: pm80xx: Log phy_id and port_id in the device registration request From: Pranav Prasad To: Jack Wang , "James E . J . Bottomley" , "Martin K . Petersen" Cc: linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org, Akshat Jain , Pranav Prasad X-Spam-Status: No, score=-9.6 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,USER_IN_DEF_DKIM_WL autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1763542545488510436?= X-GMAIL-MSGID: =?utf-8?q?1763542545488510436?= From: Akshat Jain Print phy_id and port_id sent as part of device registration request. Signed-off-by: Akshat Jain Signed-off-by: Pranav Prasad Acked-by: Jack Wang --- drivers/scsi/pm8001/pm80xx_hwi.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/scsi/pm8001/pm80xx_hwi.c b/drivers/scsi/pm8001/pm80xx_hwi.c index c5bf65d0ad14..8571f6222eb8 100644 --- a/drivers/scsi/pm8001/pm80xx_hwi.c +++ b/drivers/scsi/pm8001/pm80xx_hwi.c @@ -4756,6 +4756,9 @@ static int pm80xx_chip_reg_dev_req(struct pm8001_hba_info *pm8001_ha, memcpy(payload.sas_addr, pm8001_dev->sas_device->sas_addr, SAS_ADDR_SIZE); + pm8001_dbg(pm8001_ha, INIT, + "register device req phy_id 0x%x port_id 0x%x\n", phy_id, + (port->port_id & 0xFF)); rc = pm8001_mpi_build_cmd(pm8001_ha, 0, opc, &payload, sizeof(payload), 0); if (rc)