Received: by 2002:ab2:3319:0:b0:1ef:7a0f:c32d with SMTP id i25csp170951lqc; Thu, 7 Mar 2024 13:45:23 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVKH3TFBTFGNIWSecw7Oxw0h1oxXtRp1RKblTIb1AvkQScUU1PASFRCtY8u0bIo27hyVi60ARfsd/bRMRwXz/WG/9ujN7kRc8exxpS/mQ== X-Google-Smtp-Source: AGHT+IFVrJT8lPA+ro5D9taN8opl4KL//q3iNwBvRxm7Y9Y31UkKtV2WAdab5yh5BNyn72CuhF+4 X-Received: by 2002:a17:906:4888:b0:a45:b1cf:42f6 with SMTP id v8-20020a170906488800b00a45b1cf42f6mr5087377ejq.9.1709847922942; Thu, 07 Mar 2024 13:45:22 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709847922; cv=pass; d=google.com; s=arc-20160816; b=uBzj+h6qSq7IzDYU+nJdHuqNDGI0O+YbPLSG92EsZG9Nm2JcrOXq+QDJvOx4IiOkQU JgpIB8chN2pzQMsQz9hl78xAfvjottwuJqFyiRjYH/2/VU+vXMcrT3MNTeYStAutQeUo 39u1M9WZGFSPUdjCMnwcemYsc3FZiaR+aWOHzzvr6nV9JRwjeHFI7zQ3TrRvqyt4e1Oh l2aVDC7OWvNjL/FvGwBwuf0TbGqBi3TEUqcPq4tV4uZExmb+FJvd3iGLg0aEyFwdRn1D GzkSkjqzjEDKxFIDEYej83Ko1IdSvAgSb9moUgSXreQxlXdANcl9dMc+v2QyuHsTnnUQ utkg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:from:subject:message-id:references:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:in-reply-to:date :dkim-signature; bh=DmnC3uyU6x6FeNu8iM8omlazV5ryfMaj3jlXFhUGyaE=; fh=Qo7+Qj2qjx2jzFuz1AFeBC0BTbwnBFh079xvaAffhjc=; b=T5PfJjrrPWXR3dCvcG9DRRVDBHByVn8OA71TWQaY8fjHOtEaS4qH9HYBNtvvmS7fji 07x3TGmD/ypEtryB6igkJKel0Q60n/Gt2fJcQOUIwyToFEH7M6EORID0/w+A9cHZxn4d a35nu9f/f6uywvnkKZ42qBZO7UGf+sW7nCaUvtby1H1putZDFTymqUaQe3JZJuZvq/vv nPEvXMin28e+CHDvtuRZrxF/oZ2yvTY1QMcj1N1PADveNzIw75VYSxfrKT7xOmBMY+YI Sh9ss4sIJgaw9lrVYayp3ez8lwhtpMoUgeVWr6HurDQ0nacuOp78t0S3pFwqO+jINi7j rLJQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=D1DpE+ab; arc=pass (i=1 spf=pass spfdomain=flex--ipylypiv.bounces.google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-96280-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-96280-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id jt13-20020a170906ca0d00b00a3e9ea33373si7369276ejb.532.2024.03.07.13.45.22 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Mar 2024 13:45:22 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-96280-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=D1DpE+ab; arc=pass (i=1 spf=pass spfdomain=flex--ipylypiv.bounces.google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-96280-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-96280-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id A084D1F216E9 for ; Thu, 7 Mar 2024 21:45:22 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6A56C1420A2; Thu, 7 Mar 2024 21:44:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="D1DpE+ab" Received: from mail-yb1-f201.google.com (mail-yb1-f201.google.com [209.85.219.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 787BD13F45A for ; Thu, 7 Mar 2024 21:44:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.219.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709847873; cv=none; b=IR5v35qyKIx8ECeV8AjExNHDviOxkw1gIhrscwnqAJZ5RRjs9+eoY3jPY0Cw8HZR8xprrNhznoEpaVJPJdf3CbVSwajLO3bXWDlbDaJsFCmsHiCJeOHqBtpS50B84X5twq1wWYells/x1TZrTzm36SPLcodpgYUeAKlApJtCcuo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709847873; c=relaxed/simple; bh=kXKDe8j9cFkvG0Qo2NNWFPNOx8lWfLmANEVe8Lz+sfQ=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=fg7JFjR7QO5QR/MRUwmp9umGDRSTEnRTRBUODoWuFBbngy/6JVhCwVLgtjtjZQUQ253mBppDLoGWpzk1JerklzJqLgjNER+uSvBJ5rH9ak/oPqQJ6UWxUYF6Kjwt63rCLvNmUVet5OV8GpESKtypvtT0flVriUC2I2unxajzK3E= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=flex--ipylypiv.bounces.google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=D1DpE+ab; arc=none smtp.client-ip=209.85.219.201 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=flex--ipylypiv.bounces.google.com Received: by mail-yb1-f201.google.com with SMTP id 3f1490d57ef6-dce775fa8adso2442034276.1 for ; Thu, 07 Mar 2024 13:44:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1709847870; x=1710452670; darn=vger.kernel.org; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:from:to:cc:subject:date:message-id:reply-to; bh=DmnC3uyU6x6FeNu8iM8omlazV5ryfMaj3jlXFhUGyaE=; b=D1DpE+ab+naWXQGjUzfPh4S+YlIk9qcfq8LDHSB/f1uQ9eUR8Ygi+mN6oF/Lc7VdPF CatRjXqAkrTeqZ1RK/umviv3x5Xtxv2h0E8oYXbmJg9zETztI2mPu/a568tCcs/ouXFO k4aTNmdcfspyXKrT93aEA14zPP2fOFpY3TKRbiQ10NHnDX3Op7arGzcnHtnahPxG5duv lSCOO2kG34dwqYgueUiWshmJEM4M1iJwWDZEj/YpK/xta9xUSHZbjSFI5EYX+POahYcK HDbAyRGHnjLqSwlH/rwC6T0L+vbEWP5MBcst7dledXwMJMIRADqvgOSghpWttN+I1/9O 39bA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709847870; x=1710452670; 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=DmnC3uyU6x6FeNu8iM8omlazV5ryfMaj3jlXFhUGyaE=; b=Gu4l5s7WhP2E6wEmnFEpQ/eiRKv6Ahp5QIQkWQpQrDfYAeLRghZKBvaLP45rLrjFsv z5eciyGgfhPwuberv4sBMg46rbjH0JUzI+UGDdGfvVtHfUqHUo7w5kB7uHUsvtlz3Pwy PSgNh/RvpkdtTNB8CpDrYosvvxYW3+xOeq8UAsGdjDekrsGk2xVqH2ObBdQz88H8HRv0 ndXNXyNCgpRffOmFqSw0mX9GVZvLqctOsclru+lvluBVPB8gqtavlG8nMN9TpPhFgeMy 4J4uj6KTOYaBVv0Uq1R3LP+YVwV5iR4/WZnxx088uBQOYqTV6hSCZ5Llg/3tSIvDKWYr f9DA== X-Forwarded-Encrypted: i=1; AJvYcCW8ZF2+WjA8HiB5VTQVyGJyZwgjHfAnap1DB8DMVA4rlPaFqNMpSw5vIRGBxxBcvYunwG2yUOSKHCB/upJVVc9Dp+xrUHMI6oskwKr3 X-Gm-Message-State: AOJu0YwsS5XGb2WtOSpLww2nzudj1gbfH1UBX0C1BrQOcw5FHarsCv6h tBVK/KyAjM33qSBT0kvUDJn0d65qMq+hATsGNghAt7CpSh6TyFAbukgyCwYbB3M0RNPz3aAECnJ zmiK8ShbzCw== X-Received: from ipylypiv.svl.corp.google.com ([2620:15c:2c5:13:69c0:c447:593d:278c]) (user=ipylypiv job=sendgmr) by 2002:a05:6902:1004:b0:dc2:3441:897f with SMTP id w4-20020a056902100400b00dc23441897fmr4675217ybt.6.1709847870576; Thu, 07 Mar 2024 13:44:30 -0800 (PST) Date: Thu, 7 Mar 2024 13:44:14 -0800 In-Reply-To: <20240307214418.3812290-1-ipylypiv@google.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 References: <20240307214418.3812290-1-ipylypiv@google.com> X-Mailer: git-send-email 2.44.0.278.ge034bb2e1d-goog Message-ID: <20240307214418.3812290-4-ipylypiv@google.com> Subject: [PATCH v8 3/7] scsi: pm80xx: Add libsas SATA sysfs attributes group From: Igor Pylypiv To: Damien Le Moal , Niklas Cassel , John Garry , Jason Yan , "James E.J. Bottomley" , "Martin K. Petersen" , Jack Wang , Hannes Reinecke , Xiang Chen , Artur Paszkiewicz , Bart Van Assche Cc: TJ Adams , linux-ide@vger.kernel.org, linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org, Igor Pylypiv , Jack Wang Content-Type: text/plain; charset="UTF-8" The added sysfs attributes group enables the configuration of NCQ Priority feature for HBAs that rely on libsas to manage SATA devices. Acked-by: Jack Wang Reviewed-by: John Garry Reviewed-by: Damien Le Moal Reviewed-by: Jason Yan Reviewed-by: Hannes Reinecke Reviewed-by: Niklas Cassel Signed-off-by: Igor Pylypiv --- drivers/scsi/pm8001/pm8001_ctl.c | 5 +++++ drivers/scsi/pm8001/pm8001_init.c | 1 + drivers/scsi/pm8001/pm8001_sas.h | 1 + 3 files changed, 7 insertions(+) diff --git a/drivers/scsi/pm8001/pm8001_ctl.c b/drivers/scsi/pm8001/pm8001_ctl.c index 5c26a13ffbd2..9ffe1a868d0f 100644 --- a/drivers/scsi/pm8001/pm8001_ctl.c +++ b/drivers/scsi/pm8001/pm8001_ctl.c @@ -1039,3 +1039,8 @@ const struct attribute_group *pm8001_host_groups[] = { &pm8001_host_attr_group, NULL }; + +const struct attribute_group *pm8001_sdev_groups[] = { + &sas_ata_sdev_attr_group, + NULL +}; diff --git a/drivers/scsi/pm8001/pm8001_init.c b/drivers/scsi/pm8001/pm8001_init.c index ed6b7d954dda..e6b1108f6117 100644 --- a/drivers/scsi/pm8001/pm8001_init.c +++ b/drivers/scsi/pm8001/pm8001_init.c @@ -134,6 +134,7 @@ static const struct scsi_host_template pm8001_sht = { .compat_ioctl = sas_ioctl, #endif .shost_groups = pm8001_host_groups, + .sdev_groups = pm8001_sdev_groups, .track_queue_depth = 1, .cmd_per_lun = 32, .map_queues = pm8001_map_queues, diff --git a/drivers/scsi/pm8001/pm8001_sas.h b/drivers/scsi/pm8001/pm8001_sas.h index 3ccb7371902f..ced6721380a8 100644 --- a/drivers/scsi/pm8001/pm8001_sas.h +++ b/drivers/scsi/pm8001/pm8001_sas.h @@ -717,6 +717,7 @@ int pm80xx_fatal_errors(struct pm8001_hba_info *pm8001_ha); void pm8001_free_dev(struct pm8001_device *pm8001_dev); /* ctl shared API */ extern const struct attribute_group *pm8001_host_groups[]; +extern const struct attribute_group *pm8001_sdev_groups[]; #define PM8001_INVALID_TAG ((u32)-1) -- 2.44.0.278.ge034bb2e1d-goog