Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp160670rwl; Tue, 11 Apr 2023 16:11:25 -0700 (PDT) X-Google-Smtp-Source: AKy350ZnVNfyCzWENfOJS9pCj7RDieyVhx4fYD8qM6aqsGtvrYA9tp+9++wAu8OQNn55gCqz7JL+ X-Received: by 2002:a05:6402:336:b0:4fe:38b1:e405 with SMTP id q22-20020a056402033600b004fe38b1e405mr10905354edw.34.1681254685381; Tue, 11 Apr 2023 16:11:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681254685; cv=none; d=google.com; s=arc-20160816; b=k6gErjnKCHbUDvKDDLzGJe0sb9aMoiEPRJAlP8jr0AIO/oMIT6/BY+9nwDvJChSLno 8oIfi1SXn4yiL4TPTw9z8acSwvyX87fugCsEa5H/kMj3AiqLzAHutPxyT/Gy/CpQCBXw 8y3mvVdugIbdNUSOKt5bK6jltUaMABFJEIz4GZ0aiSys2pP+yjpaUuXdyKk2ZYLoftja f5w8g2NBE+08ISnmyO1DHGwwbOcIAWAjnGRGHkfKFtU95LQrxzOSCDPTshgaXXU7uiOk eXhVmFk28fTetf7AnIHSe6Qeh5NYpKdC+hQ5djpLsm3Pc6LhdOl4O6hrIfDkd+7aknBU 8V9g== 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g12-20020aa7d1cc000000b00504941fa6adsi3824920edp.241.2023.04.11.16.11.00; Tue, 11 Apr 2023 16:11:25 -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 S229541AbjDKXJc (ORCPT + 99 others); Tue, 11 Apr 2023 19:09:32 -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 Content-Type: text/plain; charset="UTF-8" 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 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 --- 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, -- 2.40.0.577.gac1e443424-goog