Received: by 2002:a05:6a10:2785:0:0:0:0 with SMTP id ia5csp3043648pxb; Tue, 12 Jan 2021 05:07:09 -0800 (PST) X-Google-Smtp-Source: ABdhPJxh2KLUhOyOyj5RTmtGBL9hxDUYnr1oklsE1wq1wGNUwr9zKbTn/Be/w07EhrAwMe/lqXjX X-Received: by 2002:a17:906:d19b:: with SMTP id c27mr3244180ejz.234.1610456829178; Tue, 12 Jan 2021 05:07:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610456829; cv=none; d=google.com; s=arc-20160816; b=XnjCddLTEoIac/AfvNUXTu1OilPHDSk3sv89xWV1a4inu/uyBoA2cjPwdHEX50BUJ5 OCZB+yS+BK5aIxYalHZoz0f5ajrqqX81ms47JD09AS9kCcbkeme9yPkgqrYu54DpFly2 LzGBVy2ljCY5gr6y15rzjhH0U+K2qq8w1Q8QqOj6flCaUu32jWs+eHEShpk5VBPZs2Lg DgaW9YlMqGNyqkjSbE5tuj0aoDfM43fccnpCtQdDJPbbmL5zYdleBbjCTTmFtWQ3GRZS 5CJuEghQH3qb6otldxzIXmx1ivqc/ScVLTt1oNCLy8lnSGktBklv5T9n2NV0QCvkEYZe i/Iw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:dkim-signature :dkim-signature:date; bh=OKoDSC87wBJ/q7tk2afi6RH/hGLuq+/LxTP4N37BM5E=; b=qyLfJmNa6dsg0qrp/gndXfLTLQAYQEuOFB8+9d60Y6rcFKIj2taTble4boGXrrXvTl +5oani0+4uKwrWfzp01etL07ajp766y2KY/q2p+M25q1aLY8AvTZzom95w2AusZKUWop nDoPAc6XokHmakbLrJQZTJPTumbjMfxkeSN/hLI37cQ889RjXqCzTx9DNzgAU96E3Tjp 51RG9wqa4hnKSYWxG3puvxiNnjzWPkFLQj4Gqf/NGKVx+Bi/db4CX961dsxiVuUqn2x0 DC8rfGLwSNmSEfLszImr8D5LsQ1l4wbjqoZHmgbznOpkAabgzCSZNbYe36CdBlFn+H7G /Pzg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=WoTM0EQM; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b24si1017487eje.504.2021.01.12.05.06.43; Tue, 12 Jan 2021 05:07:09 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=WoTM0EQM; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732409AbhALMJu (ORCPT + 99 others); Tue, 12 Jan 2021 07:09:50 -0500 Received: from Galois.linutronix.de ([193.142.43.55]:45708 "EHLO galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732067AbhALMJu (ORCPT ); Tue, 12 Jan 2021 07:09:50 -0500 Date: Tue, 12 Jan 2021 13:09:06 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1610453348; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=OKoDSC87wBJ/q7tk2afi6RH/hGLuq+/LxTP4N37BM5E=; b=WoTM0EQMX+E98si1mt2VtvXkIt8F9pq7dB0X8V2csa96u0FNNMo6msAnBY2TmtVWRwXBpx PB2DtNVD88zmechuvuID8f53rk7bumOvxj5lK4ZaUm2vf+aHzIzETTAm7uSX+XXQg12+P6 iJmfTc5MR15/ioXz7r2JlNpDGLgwOMSkm2ckTruklStLUlRMpPMQQaFz5CETPR7Ok5gSUg UNI+I4GxlDo+VdP8fzVeN7toh1sEwtO8DuKrYce9va9ac0KOiIYN9EZARgV/+5UqRxvHYa qTGy2Gu+g3bxIAHpBBsD33OnXJJvE6xfUaJT/tKpMZm+HI3qBdcE7ssycLYz6g== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1610453348; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=OKoDSC87wBJ/q7tk2afi6RH/hGLuq+/LxTP4N37BM5E=; b=vNjGBZNVrBVTt9jpPkkUqVGa22ypbKA0FdGR+HBFM7KuHLsGbGzf2TV23WMwa0gVfnXk8h qeDfBgjMGbxy9qCw== From: "Ahmed S. Darwish" To: John Garry Cc: "James E.J. Bottomley" , "Martin K. Petersen" , Jason Yan , Daniel Wagner , Artur Paszkiewicz , Jack Wang , linux-scsi@vger.kernel.org, intel-linux-scu@intel.com, LKML , Thomas Gleixner , "Sebastian A. Siewior" Subject: Re: [PATCH v2 02/19] scsi: libsas and users: Remove notifier indirection Message-ID: References: <20210112110647.627783-1-a.darwish@linutronix.de> <20210112110647.627783-3-a.darwish@linutronix.de> <21eefa9b-7ff5-b418-6db4-7e0039c24473@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <21eefa9b-7ff5-b418-6db4-7e0039c24473@huawei.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jan 12, 2021 at 11:36:21AM +0000, John Garry wrote: > On 12/01/2021 11:06, Ahmed S. Darwish wrote: > > From: John Garry > > > > The LLDDs report events to libsas with .notify_port_event and > > .notify_phy_event callbacks. > > > > These callbacks are fixed and so there is no reason why we cannot call the > > functions directly, so do that. > > > > This neatens the code slightly. > > > > [a.darwish@linutronix.de: Remove the now unused "sas_ha" local variables] > > Signed-off-by: John Garry > > Don't forget your signed-off-by :) > Oh, yes. > > > > diff --git a/Documentation/scsi/libsas.rst b/Documentation/scsi/libsas.rst > > index f9b77c7879db..a183b1d84713 100644 > > --- a/Documentation/scsi/libsas.rst > > +++ b/Documentation/scsi/libsas.rst > > @@ -189,8 +189,8 @@ num_phys > > The event interface:: > > /* LLDD calls these to notify the class of an event. */ > > - void (*notify_port_event)(struct sas_phy *, enum port_event); > > - void (*notify_phy_event)(struct sas_phy *, enum phy_event); > > + void sas_notify_port_event(struct sas_phy *, enum port_event); > > + void sas_notify_phy_event(struct sas_phy *, enum phy_event); > > When sas_register_ha() returns, those are set and can be > > called by the LLDD to notify the SAS layer of such events > > Maybe this was missed in the rebase, but I think that this comment can go/be > changed at some stage. > Yeah, I pulled the patch yesterday from: https://github.com/hisilicon/kernel-dev/commit/87fcd7e113dc05b7933260e7fa4588dc3730cc2a Lemme check if there are any other differences. Thanks, -- Ahmed S. Darwish