Received: by 2002:a89:2c3:0:b0:1ed:23cc:44d1 with SMTP id d3csp754867lqs; Tue, 5 Mar 2024 16:00:56 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUluFwjqMY/edBFEgr4Low3g6euJf3BKlDaxTDax+WV+lWjVKRPiPEgsWF0IKjwNcMWg4GskAS3agK/I+iAhLUeemUw0vvY+JVx//rrmg== X-Google-Smtp-Source: AGHT+IHI1gJTb4IrtwrxHjjh2f6zL12kEjDXFpF77PJ3MszcetD13E3k2ka5MNADxMgJ7x8HgSjb X-Received: by 2002:a17:906:aecf:b0:a45:ac38:be7c with SMTP id me15-20020a170906aecf00b00a45ac38be7cmr1931561ejb.1.1709683256260; Tue, 05 Mar 2024 16:00:56 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709683256; cv=pass; d=google.com; s=arc-20160816; b=oAJZNpg+agH5IccIae34wMIztM0y74N8NUTXL3TmSD+x+4ANoqzlWs/VDqAj2TIzc0 dmhOFQFvUI3Tjf92LSr0KT7ZZqyguDalrJ/26g/tKHWAXnvRqyjxy5VwMAtKzXOAcIKE TeEdpNyRqLZ0iu1UwgxNx6Ss2IUY4E6Sc0rCWIIHKughretuulGzcB0bj1T+9Ab13Ebg bXrXZHx5GSBbWQNCOz1qPf4GZZk0199jtodkWesBUqFaRPyoiGd0OxnXTemmKc+iJpsK tMzCXxGJR6mtmFQnphVBkUripMEQ8uPtdGIFI0HT/AzGPbYYugYXGuRlqluTVlhNUhSy yXbQ== 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=iW4+YjuNAKvAoJg+NmQ5C96xY/u5WzV8UruESW/Bs4M=; fh=eUvxe3YFd602jER5bBhUV2Ob98AZxlOsQ3vMXmMpspk=; b=yT/fdd7/6IwSpU4zb9TcGKIwzzSAc8JivDk8Cq9SxFnJEbAW9/BQ8n70LeH2hkxX2C jfrYycmbKfd1wHt5Bm/D+lyecbJetxiB7JcU1ZAY3KSNNL5BoELE6Nwx3/1twtBxAijC BWwILmPoPc3ut1SnM4iaZiuoI+WR/iuImA40IKUzlLMt76PJRyjUd/Ujx09phM9vXt8D fWG2nVoVp/92Ic9ESG4WU1I+MqiwQfIfnKkMhaTUjxKG23tnqBNjaTtSFC0jWd0Y9mlv t0unhSTA9/nUguOZ+L6xQ6mfNA67+Qe8UXRFGITZriNLte0A0k8iRwkMVLuYwRWXGJHh 1Ffw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=1FLFJf6l; 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-93130-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-93130-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. [147.75.80.249]) by mx.google.com with ESMTPS id n24-20020a170906119800b00a43ff1d85b2si5388918eja.414.2024.03.05.16.00.56 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Mar 2024 16:00:56 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-93130-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=1FLFJf6l; 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-93130-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-93130-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 EBEA91F2586B for ; Wed, 6 Mar 2024 00:00:55 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 710E21353EC; Tue, 5 Mar 2024 23:58:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="1FLFJf6l" Received: from mail-yb1-f202.google.com (mail-yb1-f202.google.com [209.85.219.202]) (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 2349B1353F5 for ; Tue, 5 Mar 2024 23:58:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.219.202 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709683126; cv=none; b=bTnALHZQG6CoLBwSnouNSoEy0Urh6iHKbeA3WLAAyiAOgcZVX6+e4RkNDr8zSdp5AeeL8x99Am46JQN7I+6hCr84aCeAFl7EdATkxgoIKCdIQ/iTsPuhYcSCEi7S5pqhRTex9ybabbxki3Q+P8EJ5oPkOCKkups5r1b77zsO2jk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709683126; c=relaxed/simple; bh=ZQgGWVSWytcgK5MJZ6jggoBjQfFJugefhTJSzcVcgYk=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=rggp95OLKU35eSmIPD81X2UjMCAzMMddjEhPMivkhs8BJTRq2sgU1D2ZRL03O+5Y/Prjh5jXYmK3ePFYTBoFVm4lsxAVpM5t7xh+22aPbOtjr/dANodRjSzp4Vv7me4RCRAvmLA5GoTmiEdagK9+ADfzkiNfK4YSL95VvFBT54U= 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=1FLFJf6l; arc=none smtp.client-ip=209.85.219.202 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-f202.google.com with SMTP id 3f1490d57ef6-dc6dbdcfd39so11972871276.2 for ; Tue, 05 Mar 2024 15:58:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1709683124; x=1710287924; 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=iW4+YjuNAKvAoJg+NmQ5C96xY/u5WzV8UruESW/Bs4M=; b=1FLFJf6lYz6MXkeWmkVOPVP/dTbCxipBlQKRRdIQQrIYT5xVRz2QD10+XwMkhELTOO A4bGpVLhcmi5j+DnbpFoSzd4qZy7nptJpe1yKBTq/h3HhcClu/RlxuWKpoH35rVoeUDN TEytp1a72dm/AWNBXa6KmfCNWxBk2r5PzZnEkgRNkWpbBygTujZQslKPMjWF4AwGSs6Y uhovgu9ZM/lL1czkaTMxO7dyD7W4XstRdBTElHPp7UafjG1xNJbmsc6XrgK6QNR93jZ4 TrBbGjYn6qCWRNdf7Mcr9hTZiuPEU+DRpRD4KN8rWLyQg2u9P8lyCJgU/vuRphq/21lo w/IA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709683124; x=1710287924; 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=iW4+YjuNAKvAoJg+NmQ5C96xY/u5WzV8UruESW/Bs4M=; b=p3/A/eMWhpTosTEq3HHhS2kfGV8Uq3ydlZVYyFT+h8lzlBo8Ua6gtbjw8XT7Whdxy0 MR/YzKNisfLSJCp7GwcOfftQ8i93thtq+pN1c/t42rzpGvBfKFrtzUUdP8xwtcZiT7Y9 x9rq1Tk9PbbC0C+qc/pzCdy0+s0eboMBtTl38S3bplzGLvt5l8vZWY/hze1RMBQjbBK0 cX6n6888D0wnfPyMyM0EqoFcsBDKUYw6ONXiHZstjjk3grGnqdwjaDaFZmgmNOxmnwOU XQ5irNBZmPjWy7KvX7ly0t9xrcUKjtCDuvLCerM6TncTr1C9l+sBz7ShBSO7W70g45n9 Sy4g== X-Forwarded-Encrypted: i=1; AJvYcCXBwf9HRVD/XmhbbG7R2+y37n0zw7ytaUV+zQfvH2KJV0e/OHR1/Y3tvFz5OMkArfxFFsMp0COzkmzPg5F0xrxL2xyJaZroRCZmU0I3 X-Gm-Message-State: AOJu0YytxR57deLpDmaXVxJV8b1++UQh3/ISQIodgKNvmlWC74a5q6p3 /tTdL68AyMctCYouFs5VPH4+92D7votRcbZUSmr+IixjI1BCcV8fO45GNJFTE0C9Fkr/r1BLV/+ IawPCfcKoTg== X-Received: from ipylypiv.svl.corp.google.com ([2620:15c:2c5:13:69ff:df2c:aa81:7b74]) (user=ipylypiv job=sendgmr) by 2002:a05:6902:728:b0:dc2:1f34:fac4 with SMTP id l8-20020a056902072800b00dc21f34fac4mr3509623ybt.2.1709683124213; Tue, 05 Mar 2024 15:58:44 -0800 (PST) Date: Tue, 5 Mar 2024 15:58:22 -0800 In-Reply-To: <20240305235823.3308225-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: <20240305235823.3308225-1-ipylypiv@google.com> X-Mailer: git-send-email 2.44.0.278.ge034bb2e1d-goog Message-ID: <20240305235823.3308225-8-ipylypiv@google.com> Subject: [PATCH v6 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 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