Received: by 2002:ab2:3319:0:b0:1ef:7a0f:c32d with SMTP id i25csp171477lqc; Thu, 7 Mar 2024 13:46:33 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUzMdtInWCHbCLX0LGOyfwR2edrCupilLvk2hU78+bZcV2FtRalrimSt8FPOgNZhTMDR/YlGmNw8iekZylIcQjgbzLk+w8MH5fRteGTmA== X-Google-Smtp-Source: AGHT+IGzDa9uZMXg6fPq7xe5w408z49ggS9yD4nmOkwIenjf8zmASZfKT/biUz1sUSmoBOHC8Ifw X-Received: by 2002:a17:90b:8c5:b0:299:3723:178c with SMTP id ds5-20020a17090b08c500b002993723178cmr15712828pjb.40.1709847992787; Thu, 07 Mar 2024 13:46:32 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709847992; cv=pass; d=google.com; s=arc-20160816; b=F9ryQx9MPOCqtlGITJIRH7fxkT76VIhMUYzTkTO5kF9ONVYeFWFvlbJrNSCi9tDo/z jucpznI9AzN+rUGkVY/eJAYMRdqs2IFTpKWNOGuNXMEYYEHXNC22eD+hlTzbBs9syrMS gBHzJNQ6mkqRUT2JY4i6I484En/Xbkax1wM/6HEDHkmVmXUsB++jQdOrETm9ZbtVCcSl Xh49m04gZIH+c0s/xsqrclLONGGzuMQLFtweeZZt20Cg+sFiXfZYanEWfBydsEBZHvXi inQurA0+H0MgPPycQeDIm/RnSkJYVmzhyenPYbP+n8yZUBktaeOaebIQa7pby0RlxhxG v/wA== 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=2vpzIuphj8BSvlf66XaaBIKXyJGCME8GN7Op/FUvHdM=; fh=dIH9Q7T2Az5d+XMaFBaVdtcBUDn6jVLjsJdPKmRfbHo=; b=HWoIRcmi+FGN2s8ukFQDdG3HSWJl1xrT40SN4GLsnoDsYuwgqE9847BAuj159NOwmc M04vQg45bUNvk4GWgMMUoG8zFVQZ/68GSvKyLFqheUMWdHfhnNJc+hUqK4YLGna3AVzH pN8gdjixCpl4xTN53gETJ3wWM1DIFO/mH1ysz/djKasBZjBP4z2J56MCIeyV73kIw9dT 9v44UK7jc50/Tpa3qclg9gOxPOKDMdUVbzJiv9av/k9qPS1DSXrxLTWpciBkSEQtLRRe 9Py4xoWWGUCUTU6AQFWVAbGtYpK6nO3QnAdtaPJd8mSdBXdj5Fmj2wmSZ+fcwCsrIQ4R OQkA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=q7lLRLLL; 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-96284-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-96284-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id b1-20020a17090a12c100b0029ba8da9e07si746835pjg.176.2024.03.07.13.46.32 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Mar 2024 13:46:32 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-96284-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=q7lLRLLL; 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-96284-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-96284-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 746D1282E53 for ; Thu, 7 Mar 2024 21:46:32 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id BF793143752; Thu, 7 Mar 2024 21:44:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="q7lLRLLL" 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 8203914291F for ; Thu, 7 Mar 2024 21:44:39 +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=1709847881; cv=none; b=uMsMwjHBIUAEpCI1kGDqt5u52pECItdB2s/aYj9pOIyX038+G9ryyRY7Et4RZtHq1p37rQjdm2iPKYhNcW6k7nCowtPy1d84ub3MKdxAE0bWM7Z7L0qpO7CZE5ITTzjhQ2EzIAzPHbGPz1DgBDhJRTtB4xNe5y2ICka15FnOtDE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709847881; c=relaxed/simple; bh=oKUWwFJtdtWNhMzwdWgAICCV9qWEtrIx7hjp1hett1A=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=tf+fM5Cj2aCoktOfXiGNbowfAi++qwPEw1yOp12vcFeTmhIlykqFu01mwbEbdZmsFqJOLmqpmwwTF5/1nJLr5o7AsR5QRWp+dM/FuaCdfPodJTmzY85iEQKBeu85JssFdAbQCm4Na9RBFXJuFEcm3n/wJ2wn0sQflKfEZ9LpsYU= 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=q7lLRLLL; 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-dc6b267bf11so423558276.2 for ; Thu, 07 Mar 2024 13:44:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1709847878; x=1710452678; 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=2vpzIuphj8BSvlf66XaaBIKXyJGCME8GN7Op/FUvHdM=; b=q7lLRLLLqj4ZixcWweKKNskOKVXZYteWJ2f6RkN2f18wlyun41QTyc/lZd7UOpdT+D xEa0hyQtbsXCoK7Z9w4+jgv2M6zAJV+FEeMUK5aqLq0dmkl79bSF0M60VYy/EGHaOoNF vDAqT47BnwLK4wZ0Mm2+ilSBUaMcrPKuDIxzDdQzBu8QkBFYTjMt2RA010cHSEMlEiKT gR/Q6gD11MhTmpRYbBM8PbRbH2f+FRE5vrYLWTxYCnywtF35vTe2q5PdHbOQcwgyxWut XRFv2MqTMY25YDDHfns1TzHISy3dhAR395zZ8w/wqHTujVvy/anEjgZjUYSIrbDkzXZT wFbg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709847878; x=1710452678; 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=2vpzIuphj8BSvlf66XaaBIKXyJGCME8GN7Op/FUvHdM=; b=pWmp74ghVu9EYi6bDaJsow5fBepQ9DD+fh6r+GHNsZZ0QgZyxSnxdYXUYHeByMPjQs 3c34nQSBIUD7oANcOOyOOl/VDENLZwmmzpCGjo0goxiCB//mJou6BLTWCAsUsOb5VrlR Sta135eooQ1jD3Hze/wKm1RWPk++ryFoIBnV/IPt++a0uhtVT71+45Ca5rJPjpznJncB aS1PBvO7vCzyzeBCwgaJUN3au/EEK86deHM6Knu1adSE1lzrkCfk9qj+lk5yiun+fhB7 5SQL+LFcr1S+LJtnbcFJex6BYPZmSadj1OuDSs4Druf46O8FzSjHqbs1xFxK/ZelCmpS a28Q== X-Forwarded-Encrypted: i=1; AJvYcCWiIvolXHrfDL9mhKG9+VISbwDVz4bCADuCPaxCM4OnLI1V8q9nA5TJQmiZJepIhcJTK8jMP7QenTDNTsPqJDUslnkh8kE4v0zkVvdN X-Gm-Message-State: AOJu0YwxKef0IhJfnYaL9WvxWTG86RBMVOVKTrG3kvgdNiAzrgO1ziZ1 h3j8P4C8OHLx7ujOvp7OZfdahaykbZHh/KYcQ5/StIDnBzyt9w4pupgxHF8u783ms/d9JrjHHFF pvCpE209VPQ== X-Received: from ipylypiv.svl.corp.google.com ([2620:15c:2c5:13:69c0:c447:593d:278c]) (user=ipylypiv job=sendgmr) by 2002:a05:6902:1009:b0:dbe:387d:a8ef with SMTP id w9-20020a056902100900b00dbe387da8efmr656689ybt.1.1709847878739; Thu, 07 Mar 2024 13:44:38 -0800 (PST) Date: Thu, 7 Mar 2024 13:44:18 -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-8-ipylypiv@google.com> Subject: [PATCH v8 7/7] scsi: isci: 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 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. 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/isci/init.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/drivers/scsi/isci/init.c b/drivers/scsi/isci/init.c index 6277162a028b..8658dcd61b87 100644 --- a/drivers/scsi/isci/init.c +++ b/drivers/scsi/isci/init.c @@ -149,6 +149,11 @@ static struct attribute *isci_host_attrs[] = { ATTRIBUTE_GROUPS(isci_host); +static const struct attribute_group *isci_sdev_groups[] = { + &sas_ata_sdev_attr_group, + NULL +}; + static const struct scsi_host_template isci_sht = { .module = THIS_MODULE, @@ -176,6 +181,7 @@ static const struct scsi_host_template isci_sht = { .compat_ioctl = sas_ioctl, #endif .shost_groups = isci_host_groups, + .sdev_groups = isci_sdev_groups, .track_queue_depth = 1, }; -- 2.44.0.278.ge034bb2e1d-goog