Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp5705816rwd; Mon, 12 Jun 2023 08:36:11 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7UZ00EHjZGT8LYJP7iOFbuMLQ4XDIQlho8BwtPv4G32AExDnPbu0HvlRP0Ddxk7llS23hH X-Received: by 2002:a2e:9510:0:b0:2ac:795a:5a90 with SMTP id f16-20020a2e9510000000b002ac795a5a90mr3127454ljh.38.1686584171521; Mon, 12 Jun 2023 08:36:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686584171; cv=none; d=google.com; s=arc-20160816; b=tA02zGaSWm7a0kEB1aoNr4XdL1DMgBA8AolcnEtN35Z8ZgWZ7vNmXAw4yYrEVugbmO K2FSBkz5bo9mQYIa6XdqRgzaZVBNSHNPb2cLCVS8d8vdkDcG4/GebutxNQoS/GcVna8y iWK26Sc1FM3oxnsVTw8BsJJJqPGlaPu1WwWlBd0OQZJST3QT+4NwxJIyz7H054bjBfM7 iZKqSZaB0En13/cYd9ORE7DPjGy0MqPDggVPBdjK7rDB69hu8C4MVvTpwx6jvDuFxVSL g7TGjfyxNrKwwWvGBGC+Dv1XWrdEhA4Y1/ZWRGxWefiCAEm8tK7GW8+OZRhSKSWc0wnW zPRQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:organization:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=Z/prGvmTaOr6mCYPChA+kLV6t7IqP70RMDvyhYrneEo=; b=wYd5pqwzL+DkC7+jc6p02K+L4SbEmAAqBXz4q/51epLfX5bf95qR+NDsjFK67b6n39 ELp+ysLCj9Mf9i6xI8L27QbKvvZGA1d/DFh1BoBOYXJKxuBLn2odqpAOecwXcS/HIffX vUvC91/bRhjoPbYvORb1KATFkN7AF/XZCKp/AJkDoKMkFdstiQI96cikt212ZqDAjFPC Z8toBj6JmpWjrB5U9kiamjT41XyUEov6I/8kVriPHs/6qR/VAj/H6J28bZzacGnDje59 jjqlCZ+vsAeIFn6+Djmt4+sjfPCNmY5AJRj0xF3tb1b0sdd+BgKrmBXbYpsezI++dvYx EFyg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=KuEAXx9M; 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=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h21-20020a1709063c1500b00977cc7cec71si1707182ejg.285.2023.06.12.08.35.46; Mon, 12 Jun 2023 08:36:11 -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=@intel.com header.s=Intel header.b=KuEAXx9M; 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=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237708AbjFLPTd (ORCPT + 99 others); Mon, 12 Jun 2023 11:19:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47034 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237684AbjFLPTa (ORCPT ); Mon, 12 Jun 2023 11:19:30 -0400 Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E7F9D1BF; Mon, 12 Jun 2023 08:19:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1686583168; x=1718119168; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=PW9PXZwKMY7BWzJITAK+1Q8pomGm7fv3ToyFNWA8I7Y=; b=KuEAXx9Mx4s3QaoSgI/lpIEGrZcQInPCsOvVu/87bnu9CljVHo7z29ZQ pnk1pH1jBxXwh/mbgz6MBXopbUD5YMRh7k+uzWQ5gCO6ABeEiN8w3hgYv hCHhjlWUzkverUrkbdX2QNyqA1aoliFfsdINkArokG6dfThfA5vK0OIZ3 ejGXDY4yUwNzK9Zq9Kho+vSyMs4uU693VQcAXPAtNMfTSs9uXJvgMsobe 3HsOCSLP+azqzvT1fLHtF/BSVa+3R+N8TpmOuObLYFVmULy526baymEWj qaEqoHj2xNZcbLvH5EXPqf8vt8MGUWdEysFfLK8MD5Aq//P6nc50Cj1aa w==; X-IronPort-AV: E=McAfee;i="6600,9927,10739"; a="360556257" X-IronPort-AV: E=Sophos;i="6.00,236,1681196400"; d="scan'208";a="360556257" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Jun 2023 08:19:28 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10739"; a="741066735" X-IronPort-AV: E=Sophos;i="6.00,236,1681196400"; d="scan'208";a="741066735" Received: from smile.fi.intel.com ([10.237.72.54]) by orsmga008.jf.intel.com with ESMTP; 12 Jun 2023 08:19:25 -0700 Received: from andy by smile.fi.intel.com with local (Exim 4.96) (envelope-from ) id 1q8jKF-00397J-0c; Mon, 12 Jun 2023 18:19:23 +0300 Date: Mon, 12 Jun 2023 18:19:22 +0300 From: Andy Shevchenko To: Sakari Ailus Cc: Damien Le Moal , Serge Semin , Greg Kroah-Hartman , linux-ide@vger.kernel.org, linux-kernel@vger.kernel.org, linux-acpi@vger.kernel.org, Hans de Goede , Jens Axboe , "Rafael J. Wysocki" , Len Brown , Daniel Scally , Heikki Krogerus Subject: Re: [PATCH v2 3/3] ata: ahci_platform: Make code agnostic to OF/ACPI Message-ID: References: <20230609154900.43024-1-andriy.shevchenko@linux.intel.com> <20230609154900.43024-4-andriy.shevchenko@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo X-Spam-Status: No, score=-4.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_NONE, 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 Mon, Jun 12, 2023 at 09:06:52AM +0000, Sakari Ailus wrote: > On Fri, Jun 09, 2023 at 06:49:00PM +0300, Andy Shevchenko wrote: ... > > - if (of_device_is_compatible(dev->of_node, "hisilicon,hisi-ahci")) > > + if (device_is_compatible(dev, "hisilicon,hisi-ahci")) > > hpriv->flags |= AHCI_HFLAG_NO_FBS | AHCI_HFLAG_NO_NCQ; > > > > - port = acpi_device_get_match_data(dev); > > + port = device_get_match_data(dev); > > There are just a handful of users for acpi_device_get_match_data() in the > tree. The code could be moved to acpi_fwnode_device_get_match_data() after > coverting these. May be out of scope of this set though. Why do we need that one if we can use device_get_match_data() directly? It will be also flexible in case one of OF code will need something like this (custom info structure for the respective compatible string). That said, I don't think we need to change to acpi_*() whatever. -- With Best Regards, Andy Shevchenko