Received: by 2002:a89:2c3:0:b0:1ed:23cc:44d1 with SMTP id d3csp788306lqs; Tue, 5 Mar 2024 17:24:50 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCV4NiNeqbGddvixHVGFrIuLxmzio4E4gN404Iio/UAzmD6elqyMrsOwaze/zP24jU8rnQktuHO0HW7YGpq/mQvFiKEoUSfsXrBcjerD0w== X-Google-Smtp-Source: AGHT+IFwiJfc4lHIBO9I//Wuwjuejk+6VfwUf9EXHuJkn90lVHxmAS85xYvwrhWRJwuz0rZO904k X-Received: by 2002:a05:6a00:4f8d:b0:6e6:16b5:2eac with SMTP id ld13-20020a056a004f8d00b006e616b52eacmr9859808pfb.29.1709688290563; Tue, 05 Mar 2024 17:24:50 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709688290; cv=pass; d=google.com; s=arc-20160816; b=YLHmpmKuygkXuG0M66Dw0z3wzcSJpM66gtxuH8eIQUTTvsn0VTBe5S0bCndE/mTDXS kVZuKNp9SH+s79eQoo2h/QszRRlfnAXZdynbVqfDM+pdExXQL9r5CHTfVXQfascABvM1 BgUW6SgERywvSOqvALQHYhYk1gij9yRS7XlguQRFT9nLc7fOduArBWZmBP+oMOijsU5Z EuqVuHKI0mL8n+S5VW7PGi8fgYtbQAQKnSdUoVqnQtImefdYVRgJLD5b+htl8dQr6NZ8 UL/24TtxzDgTbOn7KTJLKx0biJs4WWI0FikTnqDVqDDh2OXDYot6dNFYSRXx9A1l1C6q Imag== 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=RQNseeqHGtqWgtmESvK7C+bOjnnAotGHLghFADtiiV8=; fh=H13yWL4lh5A3ZpBNejIB6UnzLrGyDEdHGG/j3nPMggI=; b=l9fZ7lHqX0MXD7QuuQVQBPT5DSuQZ3BN+/oFv5lxaE7gPZdXDVpCSEExyGpXza25l9 2ypWVa3UDmB1wM0xLYEXmf5Pa012FWM2ejb/qSku4SeHxIKsnTxtgPCwICM5WIvQ4QAC CGM4SXZlKG0wu3mTnpyTKVCzUA3z3vlcPB6C9eRI8WFclr2J1rSTycrphz6aJDyuef7o 0eaFyyFnJzVxgghAaOQ7sRHbUioM4cVQnzaM8sbmio4DN7Nme3TwQyYP4ZI+QTMMVwM0 GT8ZMMv4dXMYTMGqlyNpj5FpC5vscAreQenJW7x6kBVYt9rWWiLOv+yYrdPT4V3GvaNf vpQg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=vmZ7zN0y; 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-93195-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-93195-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 30-20020a63125e000000b005dc4a006ee8si10821048pgs.477.2024.03.05.17.24.50 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Mar 2024 17:24:50 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-93195-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=vmZ7zN0y; 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-93195-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-93195-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 3A28B286CD9 for ; Wed, 6 Mar 2024 01:24:50 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1B9161BC43; Wed, 6 Mar 2024 01:22:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="vmZ7zN0y" Received: from mail-yw1-f201.google.com (mail-yw1-f201.google.com [209.85.128.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 A822B1B7FF for ; Wed, 6 Mar 2024 01:22:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709688165; cv=none; b=K5bHjack59VneQRIY0QAuFMdLUx4M4YTZ46+APsmrl+3tWmfJvTtkjziywpyNgKcVT1kuuVXI+Ks9lRytrUZWmXbh3+mZucW1lnhZP+tRg8Plr6x8/DPC8RSjsJKjiCREQE3dPjYyanGoJcUU6QmV46vrxkaK4TFu8eWVg/WWVs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709688165; c=relaxed/simple; bh=G9sVD8mPANACI8XvBa42u5K2t+gtYc3kf7MUNETx/FI=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=ohOPFTJ6ooN5znmu7vnalcfIL3TtlsFReyyktBUGW7V6bAmGKdi7zmOzof7aYNwUsuZwpxKeRrwWZa595JC9PKLA1C2v5FObCTtzPHlLhM4q5M42nfN5Ny9qKRXHSKgpfdKwv1CNJcf6DQ4FLLdYhusRYKdT/Vvvob3ehvjVxHQ= 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=vmZ7zN0y; arc=none smtp.client-ip=209.85.128.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-yw1-f201.google.com with SMTP id 00721157ae682-6096c745c33so118388637b3.3 for ; Tue, 05 Mar 2024 17:22:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1709688163; x=1710292963; 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=RQNseeqHGtqWgtmESvK7C+bOjnnAotGHLghFADtiiV8=; b=vmZ7zN0y7oAQ3o1IYvC/6G7lp8KHoWrQ8P/DlIeuymJNgS2JfZzSlC6Hlbk9cV8Nt6 qiFHpiWvX7iq4uR/jcnOw8b5wo/ogwn7Tv20+DGsa65zU7iOxtnWxYfqqqSjNEa5kpQu xWsASHAXgole+8k0MdUHd27VmYNOoHyWQEttpc5ahLz+DO6bZ7aOeucvpzsx+XNQ3+1c DuSW7FR1BfE4zZwkNvWxNrkDAm24DzXc4Yz/+sDNjbPcflQW0wRuaoxR0NRisFdEVqXe bdqNfyuKXFfeM3MoemIg2y+PsIUAkP0xqz2LZOvjB9p1hATN4ADILTGvlP5zjIOSwaii OJLw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709688163; x=1710292963; 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=RQNseeqHGtqWgtmESvK7C+bOjnnAotGHLghFADtiiV8=; b=TnRP34UeGYmpaWUXQ0Bt0yWP5IY0qcGPGMVlU4l3F58t+itHnZBpK6KPbC9x9Ph4ed pb/CMiZ6gy5j9raRMwzYScvZMDEag+/0GDhYL9hgJ1Vg3My0+y7Wtkx8HTxoF2Q00+Jn RTCXa/jFY6fYBQywKvsG5L0//TjOpBkpi3R5Rls8hljaOS94mhJS5DzYBbLSO1wW+cSB pqGjXmNLVz1JlC+xjEFG3SdTs5eqA5r+lsCJph+QnnIJqbqON3/IpAvQQkOFBH9Gj/Te 5UMPG9N/Pqu1NdBG1Atws/cLEX49kQeNhNKK5Hsm2qyib/XtNdDSrjZ4fUvnel7kMw59 w0bA== X-Forwarded-Encrypted: i=1; AJvYcCXmW7DV8apACRtdaL995iohM2NWVizP5A/FqX9nJD5gMaoECov0+hHY3Hftp1eGa+Lxx2d+A/9gk7kuoZIHFNSEhIIDrtTCHDxaauw0 X-Gm-Message-State: AOJu0YwGv4mWi3aYb+mGSSMsuRJfQJHRpxF/F+iSimdEkkNSkHdeGctg KfUAFtpIhkEZ21pdA3uGrr86bvPoxD4WoeeWiEStiM4OFeNVFRbX5wcK3jCX9sqNO8SGJ+b6V48 Yh0ri+cj1xg== X-Received: from ipylypiv.svl.corp.google.com ([2620:15c:2c5:13:69ff:df2c:aa81:7b74]) (user=ipylypiv job=sendgmr) by 2002:a25:260f:0:b0:dcc:f01f:65e1 with SMTP id m15-20020a25260f000000b00dccf01f65e1mr3520928ybm.8.1709688162723; Tue, 05 Mar 2024 17:22:42 -0800 (PST) Date: Tue, 5 Mar 2024 17:22:25 -0800 In-Reply-To: <20240306012226.3398927-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: <20240306012226.3398927-1-ipylypiv@google.com> X-Mailer: git-send-email 2.44.0.278.ge034bb2e1d-goog Message-ID: <20240306012226.3398927-7-ipylypiv@google.com> Subject: [PATCH v7 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 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