From patchwork Tue Apr 11 23:06:50 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pranav Prasad X-Patchwork-Id: 82211 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp2918686vqo; Tue, 11 Apr 2023 16:19:27 -0700 (PDT) X-Google-Smtp-Source: AKy350ZSJzwBBQaHznpf02wi+uPSBRRmoXLsiPfihrAxhecP4NDEgTdiKh+/tAfw+qESOZJ+6rT3 X-Received: by 2002:a05:6a20:4f29:b0:db:2739:883c with SMTP id gi41-20020a056a204f2900b000db2739883cmr3978927pzb.26.1681255166794; Tue, 11 Apr 2023 16:19:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681255166; cv=none; d=google.com; s=arc-20160816; b=EpnQip0sNUcn3F2pA0lm+gMY0f6LclvT7zwIlYafIPVVwHaXMHzzsOppVtXZSDnCNI HI5ocuIDzxnseou+42AJYfWmV5RbGXDezS/YKENSpEZ35Ew5Xpv3HTedj5f9tJEZSsNF ZlhQHUw5kSJiRszGUBLri4dJ4Cv7lu0BSP0rJni2EWo3pZleLgBgBtPZ+6rFHP2PItrz 6+LQk9sAy+KDHpHHFYIpW6cl4YPL+edcwAgG63qOXxuYSd0KF17tYn9PPqBNAWwP5TFT 8axM/LoqPjfHoaeKBn9MAIJBEArji7pIFA9bQ0VwskOJSTMPp9PNqi1PEKVjcnVFDDcd kHMA== 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:mime-version:date :dkim-signature; bh=vOZGDB1tEns0ICitKu53mE4nvsxHCRDQzBuBh0aiQXo=; b=dW/DiWVmu73Ch1vUyzxKrrUiW9mZOrJYw0BmCqcI/MrTvfjWSijzanOMfiqYvMTTeY 74iAOKo5Ym04/diPt1ytNwfixERrS1rtKGTKWP0XxYAlOaKOdzPBP2VBbj61qd5Ru09b b39QKsy3heC8WqMny773pfxIyzCBmDdMRlvdu2BSdPZd4kJDHJxa9eoKq33AoL3d9ZLh kL9OS2+5OmPFunxkYPHveXgyCMFgyFzNIMNuaFP24V7Pf8YRgSmZTiGqTH9dQptyKpBw /fC/pVoPXphsRCUvqwCg14Bpz2IdbyFmyjEtFd2GsTvEjcqrRjA37YNjsf2cXt6Gy92x w2wA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20221208 header.b=lgZi8ugl; 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 m9-20020a63fd49000000b00508eeafc9ecsi14899756pgj.176.2023.04.11.16.19.14; Tue, 11 Apr 2023 16:19:26 -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=lgZi8ugl; 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 S229546AbjDKXJd (ORCPT + 99 others); Tue, 11 Apr 2023 19:09:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53114 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229491AbjDKXJb (ORCPT ); Tue, 11 Apr 2023 19:09:31 -0400 Received: from mail-yw1-x1149.google.com (mail-yw1-x1149.google.com [IPv6:2607:f8b0:4864:20::1149]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 189C91FE0 for ; Tue, 11 Apr 2023 16:09:30 -0700 (PDT) Received: by mail-yw1-x1149.google.com with SMTP id 00721157ae682-54ee397553eso101612847b3.19 for ; Tue, 11 Apr 2023 16:09:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20221208; t=1681254569; x=1683846569; h=cc:to:from:subject:message-id:mime-version:date:from:to:cc:subject :date:message-id:reply-to; bh=vOZGDB1tEns0ICitKu53mE4nvsxHCRDQzBuBh0aiQXo=; b=lgZi8uglWKHWhlXre4/ek2jQLOH6P1XWQav0/oTO33kn6oS/pGGIErN4evvKuwF0Vd Hr1TwkJDwSytn+K0vjw44D9QWqzU1QsWosxJXsWRy06T3WWUhm90RUJL0Fdn6D07Z8hQ 1F5FTm7ycHRinDKxnMKO6SaaXE2OrXtRgSZKTQV4gxphwvJoHMqqf8+nAKv0IJQ3UaIG FLPoCUSCT4Y03iYtS237wvRS1kv3Z9w2BG8jiiPFop/H3VSr73ElY+MNbVIDflvxweby JKt7hpqChemH9QHLcVFo8EV5hEufC+Z2cUVQ4bMAezsoomraxAm++s22xFy9mZfZ8v7+ XF5A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1681254569; x=1683846569; h=cc:to:from:subject:message-id:mime-version:date:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=vOZGDB1tEns0ICitKu53mE4nvsxHCRDQzBuBh0aiQXo=; b=nwXV9CJqyVYywRrlOiWl0OBsaEp2QVt1eUKnivheSpdqlrSszF7onD4EH82rN+ZFws 4QInJTfKA0O5TipkZBuE5bPCKqW2bMZ1BTDSAFDiH9UuhpdABrlBqTzdHKDjxHPI80fD 9sk4fZanGUxLV2ZxXARqv4nl/Bcg8zTRbzYEilNZcvX3PEApcy5uk7jh9chsOikNRzyB apdj2wW5pTVqRsoTTsBivJJesPj7vRB34yOO6f6FhhjK7okx9QrzsAYs+sB5Awf0ouiF R5TIyiYIM7N/Xip8EBCztV7yNU/Mh7meZ6p61JCwoc5HxfQFs+4iqBY1wH3TwKbOeem2 Jouw== X-Gm-Message-State: AAQBX9cH5APeUD8C0mRVhtm4xr/dnPu1+hzPwipH/kYfjrcX00ZJPxIf UMFqFLTOKJtk25QrgZIPtddySRNg2yRFHw== X-Received: from pranav-first.c.googlers.com ([fda3:e722:ac3:cc00:24:72f4:c0a8:390b]) (user=pranavpp job=sendgmr) by 2002:a25:6c41:0:b0:b75:3fd4:1b31 with SMTP id h62-20020a256c41000000b00b753fd41b31mr384659ybc.1.1681254569324; Tue, 11 Apr 2023 16:09:29 -0700 (PDT) Date: Tue, 11 Apr 2023 23:06:50 +0000 Mime-Version: 1.0 X-Mailer: git-send-email 2.40.0.577.gac1e443424-goog Message-ID: <20230411230650.1760757-1-pranavpp@google.com> Subject: [PATCH] scsi: pm80xx: Log device registration 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,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?1762923817775496311?= X-GMAIL-MSGID: =?utf-8?q?1762923817775496311?= From: Akshat Jain Log combination of phy_id and device_id in device registration response. Signed-off-by: Akshat Jain Signed-off-by: Pranav Prasad Acked-by: Jack Wang --- drivers/scsi/pm8001/pm8001_hwi.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/drivers/scsi/pm8001/pm8001_hwi.c b/drivers/scsi/pm8001/pm8001_hwi.c index ec1a9ab61814..73cd25f30ca5 100644 --- a/drivers/scsi/pm8001/pm8001_hwi.c +++ b/drivers/scsi/pm8001/pm8001_hwi.c @@ -3362,8 +3362,9 @@ int pm8001_mpi_reg_resp(struct pm8001_hba_info *pm8001_ha, void *piomb) pm8001_dev = ccb->device; status = le32_to_cpu(registerRespPayload->status); device_id = le32_to_cpu(registerRespPayload->device_id); - pm8001_dbg(pm8001_ha, MSG, " register device is status = %d\n", - status); + pm8001_dbg(pm8001_ha, INIT, + "register device status %d phy_id 0x%x device_id %d\n", + status, pm8001_dev->attached_phy, device_id); switch (status) { case DEVREG_SUCCESS: pm8001_dbg(pm8001_ha, MSG, "DEVREG_SUCCESS\n"); @@ -4278,7 +4279,7 @@ int pm8001_chip_dereg_dev_req(struct pm8001_hba_info *pm8001_ha, memset(&payload, 0, sizeof(payload)); payload.tag = cpu_to_le32(1); payload.device_id = cpu_to_le32(device_id); - pm8001_dbg(pm8001_ha, MSG, "unregister device device_id = %d\n", + pm8001_dbg(pm8001_ha, INIT, "unregister device device_id %d\n", device_id); return pm8001_mpi_build_cmd(pm8001_ha, 0, opc, &payload,