Received: by 2002:ab2:3319:0:b0:1ef:7a0f:c32d with SMTP id i25csp171339lqc; Thu, 7 Mar 2024 13:46:17 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWtRKXBR0Lr5pBPxRZ9x+4gGV/hoH0I8QJMhV2JwUN9irtnjfqdYf8Sw1/bJDPfBj/1jO7+rT4Z0tdtPp1OMhLkv2Mo0zygmZXii7x9lw== X-Google-Smtp-Source: AGHT+IGEyzyyc3qiGzDFS33C5ZJw2AFecdm8a4LEGerlATZlhvEZ0dqZhgJrKV0NVQB54t++8VWN X-Received: by 2002:a05:620a:1371:b0:788:46cb:6579 with SMTP id d17-20020a05620a137100b0078846cb6579mr3379938qkl.37.1709847976906; Thu, 07 Mar 2024 13:46:16 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709847976; cv=pass; d=google.com; s=arc-20160816; b=OnpfQa0OcQ3gT5D+pqn3MVgap6RFesNm7nzFatP7vUmkmKsP7kmFj7JPs0iUI+kbzj PRrT8sN5ZW3L7PpEh3FLU1mnx0jqf4NObFe/Mk9qPuuu2YJcCy/O9z2ElB6tnC4MYsJn J2sLx1ttm6uCRPSwfh3CcT0bThzaAC9RTZVCUaifr++nALqKNmOqVf1ubZXxnStSImyw Qq2rCw7/Xy2u+Z4klKN1+DkU1M/wTtSSSZj8lNBCShh+ic8dINvANDeiaFr/NVY2Dr0Y bxa8OAbHH8DuR4HlnFM+vfiXTwR+y+0R81s9sUO2p2Gj7YsAs9IlG/4TkBQWUWtuRK3L K82Q== 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=bwEvId1GeDg0DYsAPfhWaL+EMmX4DxPU1q6ezkgbZrY=; fh=IeeolK0jmeZPc/9O1pYdIIYc5P60ZN3GaPBK1JauPj0=; b=g5/sHra6yQlXb6laekFGx//1kxLBrsewb7OmwsxYsXNi+M8ENIoBG5A0Tyqg/Am+Dp B9cmJWLem5LE0Qs7t2gOOKLJA2Bb0bEAaYf3otuhhV6/RR+sBvHNBsAL6r8WK9wOjmv9 K/TNZnaGTxtKHQ6toCiWb+aN5fOzij31oqsy9QTvjYlYlfvpZJkSUdjg7aUdNF5lSZAk gFS1nBo6ZIGgB8Ve//KvcYhNc2Tjj8q3L5fVnDth1RX+6sZH2FO1iCn5NLnTbnntqtNd p2P0PBjK/0wSOtrx7cR8jH/O0hf7BzldtNSMS+Ga6mfap7xNUpNZfWaLtb8P84PJh9SF B6/Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=t12Sbg0f; 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-96283-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-96283-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id i3-20020a05620a0a0300b0078831bbc352si7671541qka.725.2024.03.07.13.46.16 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Mar 2024 13:46:16 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-96283-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=t12Sbg0f; 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-96283-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-96283-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 9C3281C20A0E for ; Thu, 7 Mar 2024 21:46:16 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0D8E1143731; Thu, 7 Mar 2024 21:44:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="t12Sbg0f" 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 7DC831428F1 for ; Thu, 7 Mar 2024 21:44:37 +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=1709847879; cv=none; b=qaesXpn8rlr4JZ0c1eHf7bJSHaNuqsOC+0uyvYNANZBFfAq0jaLBWC8usyN7kAA4wRkZGa0OHH3X3zu7PWoR0JjgE9TdLHmzQmGk5MwwS42K/aGmFoeKcNA/g+xMv+/i301pLxxXRD8U5HBdjxXzgyE88I/6Q2LKvJRAVI/R+N0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709847879; c=relaxed/simple; bh=3IHdm2Kbt7Oqnq7hLlZmkndR1cR6l2HysmJJhv/D7aw=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=e2y/LiDQx8wlDt1wfzctwMflN7N3pxdnXoY3Mp9lnEazNNF4x2YHXP3BBvJPDzoMdxkIs+mxurGpVAy6mQtsnuVuT2qeFSXG73WemhQkqDRrtBptuLQ9EUt4KEIJ2YUuvu1lodP/YsbZFeIHifQir4PDgaka3CkMrJ7kKIlmLdQ= 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=t12Sbg0f; 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-dcbee93a3e1so416263276.3 for ; Thu, 07 Mar 2024 13:44:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1709847876; x=1710452676; 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=bwEvId1GeDg0DYsAPfhWaL+EMmX4DxPU1q6ezkgbZrY=; b=t12Sbg0fmiaJ8ZPu1iNR/moz/Rv7t0woY9Uo/tp3vQRv3UYDh+D9Mz37JF4+D2vR8d gGL6Hd5oT741qaEVFSpJVAOXrlAhgrwQSXvkaIHINhnV87bbHBvUp9p/+bf+Noxs5H0i 7XRRQZsqZPmvS8wi8b1Ran6Ern7ffGEV5XEkbPqNiXUI/PjhI/VOuRhaRBmbMXrtEgR4 2hsbygjgg8akvUdHVewVHGQZ2/I9d4QpcN0B3ZJTNsW0Y1GGwYfp7/CY7nxgNsN4RPxL AOkjER25vHQcwAk0qdGv7eDY8NZAPzAUuTZ6OocIgLz5Co5MjCpSeQt8oIswcVBublTn nrTQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709847876; x=1710452676; 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=bwEvId1GeDg0DYsAPfhWaL+EMmX4DxPU1q6ezkgbZrY=; b=AnqZoba3FQQJ3gXCMlo2qRL9GZnFMlun8CcgkUpExGyzBYohnjFyNZ0AoyOFYSrNVl IvI1m+JNFBSlD3+uLjWjlblFjWxdpLIQa/fo+G8g4QpDAzQ7fKqGliAKGFgxPYF0sOqt v1Z330LFGrjzYuo6smTb0jBkWr0eihGEkznjyhA+pfP+A/z4MrNZLfEoCwyfr3nw2dpG a8PGPdGGiwqo24oF0N+PF6kym/CdmuEZSHlKF8G7WVG6MTOarxCHx94qjNg+pgK2Ox2N SdV+oT/udQudRV1qT5PT0tw3QssV61GVi3h0MWAWwL06h58xCRH36VRQxZ0adeE7S9SD Yqhw== X-Forwarded-Encrypted: i=1; AJvYcCWHNCfriJ8kaUK8tuR25gkuuzDCZbDHUeI8TzJUukJTFDir1hYWSd4VI7byJQNo6QdRnFx/IZM1zNX89jHqKqilRmZMTuGmaW9A4TsL X-Gm-Message-State: AOJu0Yww/W1k3JAAxFkNYXDTAhNu3xXrwvrUOV1kI7hIexvbj/DiNP0P JFSBzU4dr+XIzQZHM9f0KynRUErhdOWFWJm5YLYkJvdpdGAYvNRlw0ZcJtxayZRulfi+YQtfhzA dGpybjL4R5g== X-Received: from ipylypiv.svl.corp.google.com ([2620:15c:2c5:13:69c0:c447:593d:278c]) (user=ipylypiv job=sendgmr) by 2002:a05:6902:1209:b0:dc6:e20f:80cb with SMTP id s9-20020a056902120900b00dc6e20f80cbmr701381ybu.3.1709847876592; Thu, 07 Mar 2024 13:44:36 -0800 (PST) Date: Thu, 7 Mar 2024 13:44:17 -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-7-ipylypiv@google.com> Subject: [PATCH v8 6/7] scsi: aic94xx: 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 Signed-off-by: Igor Pylypiv --- drivers/scsi/aic94xx/aic94xx_init.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/drivers/scsi/aic94xx/aic94xx_init.c b/drivers/scsi/aic94xx/aic94xx_init.c index 8a3340d8d7ad..ccccd0eb6275 100644 --- a/drivers/scsi/aic94xx/aic94xx_init.c +++ b/drivers/scsi/aic94xx/aic94xx_init.c @@ -14,6 +14,7 @@ #include #include +#include #include #include "aic94xx.h" @@ -34,6 +35,7 @@ MODULE_PARM_DESC(use_msi, "\n" static struct scsi_transport_template *aic94xx_transport_template; static int asd_scan_finished(struct Scsi_Host *, unsigned long); static void asd_scan_start(struct Scsi_Host *); +static const struct attribute_group *asd_sdev_groups[]; static const struct scsi_host_template aic94xx_sht = { .module = THIS_MODULE, @@ -60,6 +62,7 @@ static const struct scsi_host_template aic94xx_sht = { .compat_ioctl = sas_ioctl, #endif .track_queue_depth = 1, + .sdev_groups = asd_sdev_groups, }; static int asd_map_memio(struct asd_ha_struct *asd_ha) @@ -951,6 +954,11 @@ static void asd_remove_driver_attrs(struct device_driver *driver) driver_remove_file(driver, &driver_attr_version); } +static const struct attribute_group *asd_sdev_groups[] = { + &sas_ata_sdev_attr_group, + NULL +}; + static struct sas_domain_function_template aic94xx_transport_functions = { .lldd_dev_found = asd_dev_found, .lldd_dev_gone = asd_dev_gone, -- 2.44.0.278.ge034bb2e1d-goog