Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp941398iob; Thu, 12 May 2022 07:54:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyAE/I97ym/i6avtJscjZSYegXoR3LVY0meGKxRhIKb/nLvIp4FY1Emp6OYJTk4NE+2Nbaz X-Received: by 2002:a17:907:7b9d:b0:6f4:df04:affb with SMTP id ne29-20020a1709077b9d00b006f4df04affbmr242801ejc.473.1652367262433; Thu, 12 May 2022 07:54:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652367262; cv=none; d=google.com; s=arc-20160816; b=ogbf1DlC120IGez3LHii0A66Z5HiIwYQWaw4ON+OmqkyhTfG2fGlJmoaH0+Ci2Nset HOCE1zfBQ2jQhRuJ1e6E0rEy4jyPkqbyqOxswwDFUxDgFu/RCbXvHwE4J477uzrigrpt wS///q4OobdhBoXnnqcG3nWngKNDgcWhlmIHvZKJC24II41hfPJu20bpJPqt/1wErzKu YYbsn85P6KXgzIEI9DEhq/f3FAe4H6eBPNmYU0iHYcN24t8ERW4fTfhihsmMFLqVJbDf 5ohkbgDVGnfWx3doIi2A1NcayDDBqORMYV6c28UKTKjSIbu2kurjcaY17IEyAk8QTnK4 N68Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature:dkim-signature; bh=uGxLh9Afb5hSUooGcYmQ+1yp9vz6b7jIdC0aB2a3sY4=; b=GWGRO4CmHmWSD2dMgFJIR4Y/8mY23V9A3fNxAQkZm/5mNHpm1BF6cd21jQZlturZbZ CjFMwTSb3S6VxxZqe0lL15B+hfl/3w+Ax3XuahhcD4ys0Y1owRosVUhyHrLfP/vuSnll 2G2+ab+acRs0AH+RDpCjVKMPXBrfSWEBm8FA660tNDtUkhAGCRwYpBIcTgmhZJYUOl22 bhKflhgfL7zKmFD6vmvV6uknpc2w8G2gop+0xlRuwFJwEtAK7zoDR1R9cOHz4AXB+LvH sTbhxNNxDnqzwsgImLguBibkO3QykLYcva8PTgS7Xv8t8s8mVbMafGUt72pGYaYiJtBc QsyQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=xsdFq3D0; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519 header.b=sQYk6Ns7; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id dm25-20020a05640222d900b0041e97a8af3asi5346661edb.476.2022.05.12.07.53.48; Thu, 12 May 2022 07:54:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=xsdFq3D0; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519 header.b=sQYk6Ns7; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1350727AbiELHIo (ORCPT + 99 others); Thu, 12 May 2022 03:08:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59432 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1350773AbiELHIj (ORCPT ); Thu, 12 May 2022 03:08:39 -0400 Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.220.29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AFD6C515B0; Thu, 12 May 2022 00:08:35 -0700 (PDT) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id 653311F8FB; Thu, 12 May 2022 07:08:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1652339314; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=uGxLh9Afb5hSUooGcYmQ+1yp9vz6b7jIdC0aB2a3sY4=; b=xsdFq3D0QHqZNLJDvwd2YQBj/b+srFP8SGC+3AKLIAoM3Xez7Om5+ZRjOjpv1uHV0/eAGJ R0BZzQsw68x1KoqV/bOP6NyLdIsnhPqanJ+r/vlN0cNbzkDYGFJ5eaP2cEnM2eFcYmlH4h J63rhIkJ3sUV4IZvVWBfYSkVnrpR+Ys= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1652339314; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=uGxLh9Afb5hSUooGcYmQ+1yp9vz6b7jIdC0aB2a3sY4=; b=sQYk6Ns7kH1jVVQtAC8hWXtXe13t3JIizceAQzMLyOLSh7+1FVT3LSX/QuHG2BWEAHw1Ei IL4LFLVbm6HOvFAA== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id 33DED13A97; Thu, 12 May 2022 07:08:34 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id t7cvC3KyfGJgXgAAMHmgww (envelope-from ); Thu, 12 May 2022 07:08:34 +0000 Message-ID: Date: Thu, 12 May 2022 09:08:33 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.4.0 Subject: Re: [PATCH v3 16/23] ata: ahci: Convert __ahci_port_base to accepting hpriv as arguments Content-Language: en-US To: Serge Semin , Damien Le Moal , Hans de Goede , Jens Axboe Cc: Serge Semin , Alexey Malahov , Pavel Parkhomenko , Rob Herring , linux-ide@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org References: <20220511231810.4928-1-Sergey.Semin@baikalelectronics.ru> <20220511231810.4928-17-Sergey.Semin@baikalelectronics.ru> From: Hannes Reinecke In-Reply-To: <20220511231810.4928-17-Sergey.Semin@baikalelectronics.ru> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-5.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 5/12/22 01:18, Serge Semin wrote: > It may get required to retrieve the port-base address even before the > ata_host instance is initialized and activated, for instance in the > ahci_save_initial_config() method which we about to update (consider this > modification as a preparation for that one). Seeing the __ahci_port_base() > function isn't used much it's the best candidate to provide the required > functionality. So let's convert it to accepting the ahci_host_priv > structure pointer. > > Signed-off-by: Serge Semin > --- > drivers/ata/ahci.c | 2 +- > drivers/ata/ahci.h | 7 ++++--- > 2 files changed, 5 insertions(+), 4 deletions(-) > Reviewed-by: Hannes Reinecke Cheers, Hannes -- Dr. Hannes Reinecke Kernel Storage Architect hare@suse.de +49 911 74053 688 SUSE Software Solutions Germany GmbH, Maxfeldstr. 5, 90409 Nürnberg HRB 36809 (AG Nürnberg), GF: Felix Imendörffer