Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp3144523yba; Mon, 8 Apr 2019 12:08:22 -0700 (PDT) X-Google-Smtp-Source: APXvYqxWcvbPOdVxlEPaMITTPAbFVGeLDePB60wE4NXnO1ztrbimcNQeVRwdqFyNruDynUnBfx6f X-Received: by 2002:a62:1c13:: with SMTP id c19mr31440725pfc.11.1554750502250; Mon, 08 Apr 2019 12:08:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554750502; cv=none; d=google.com; s=arc-20160816; b=Of9I0klYEIhx7BED4EaT1D+E4zWJVVQOPOpdqYcEglvQ5zLhqkMnmbLomcftZu8PNo FYJbKQd4qPWX3iI3oMrbNt2dfNjt1GHv7Q5bnyKsEcqR6fKW226qMi0rvwgVGpkT7Ocd xBHY7ZJcAMv8xLax+8EyO4Xid69J1XCf1mB3DhGXVKOQYONeBF3h5Exr639s0h9Fkr/r qedwS+JQDQkxwaWqaPvXsmDDAxllKVokevZM7W4Z9jYwCV5IwkXTYzG+BA0QMjzOaSAr HD/whrxqyk5eaAU+YPQ4Eg4rMG7e+e1bf1FOFqrSHhRSD8xUR2ZYawKLtJoDmvDxkyfA fDqA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=bVAjgFRmIyj6wQ5uSPVj7Ju/xEC2MZoI/4rYPWvDzHc=; b=sMEjT2FI8txT+elHzk8dAak65rzC5QaeSaN9tUpUhwxyHPS2SQoYy/mGn7bV8AjlfJ GzYZtq/uKZD/DNpE13ojdE0yWKGqweBF16g+p1V/WBd4A+0Ilhq4VWII5o5MZjin3skS OQfnolIxrohhkGnZAMOgKDRmeDcLpJOKUhvBx+j4hAIxxuTv8flYfcKLtLk+W3r4JPes asTk5Ubi0yH/9lTprWsNN5AFXlrSVfaxCHJN0AY/NgbWP+y/zAaH2qY+ecwyGQSDu2tg 7BR+HK7E2z3Omqb2pemRLrWspPF9T+82l4xzgQulPsatP+UDljTBG6jJSQb5i29HvnOO AVwA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=camv0H9U; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h18si20163600plr.321.2019.04.08.12.08.06; Mon, 08 Apr 2019 12:08:22 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=camv0H9U; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728920AbfDHSo5 (ORCPT + 99 others); Mon, 8 Apr 2019 14:44:57 -0400 Received: from mail-pl1-f195.google.com ([209.85.214.195]:44073 "EHLO mail-pl1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726352AbfDHSo4 (ORCPT ); Mon, 8 Apr 2019 14:44:56 -0400 Received: by mail-pl1-f195.google.com with SMTP id g12so7812996pll.11; Mon, 08 Apr 2019 11:44:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=bVAjgFRmIyj6wQ5uSPVj7Ju/xEC2MZoI/4rYPWvDzHc=; b=camv0H9URV59ejKp70nQ9u4O+hune+ty8l4ZlQlNycUlolFONNvVrfhKjCGOZQfZDh oWlEa4Hq9G1bnFyoRuKiy+w47imus3RGP6y5cpwqWWHJ+EUclCxVQ46ZUC02ifAEZFvC Ety0N9LsA9hzeXprUHkQx9kbSv2VnomewbzWqQ43Tahb7Bd46tX4cLhKuDzCixVzyLKJ drRLIefrfdiGTphj9ZC2VUgNkkXi9+Y4mjK9lzZGBUs07hq0XqYwU2zU8/FKSeZXd4Ue zFGyOyBeeTW+mG7A89lfcx6E2lNA5qexnj3Qet/1yfQr6twMcfEJS5cqJL4P8ab07JTR AsZg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=bVAjgFRmIyj6wQ5uSPVj7Ju/xEC2MZoI/4rYPWvDzHc=; b=Op2w8KRiAhHdPEJhmMNiuDQXQ0ga8QV77dOYD+UEiSVgLNXNY877N6zaMSGtqbZl6o xD9AKgt+EIFITIaYpGNyHgQogYbsyvMent1uLpZSWOZDHcgHRHIUBagHcNlqW5D9Dvkz oLbaX3g63UcnWVsBB5vxICtzZX7J2DKyL2aw1T974xEXcMFXU2EaH173bUo/Sj082+eG CV9euYr7e7NSyQEvjBpDDYtAbBoOzunEriirebEsSUZHRyxnnV+mubmsw5PGn68gHEzv eJSQnFMqXSdw//+hK/+MvZs59sUtV5Vdzq+Ki1VVd9M++7WoJJizntupg7jV1JPulUQg 7sfw== X-Gm-Message-State: APjAAAVxNPKHfOvj15IskKcYvUCGkN6AQaQ1m8bzfBOVlqCAV4NOl4nB pnLiEUdwbunSNgImxMs1dNnK+aPD5hYzPNBQ32I= X-Received: by 2002:a17:902:2c83:: with SMTP id n3mr30862414plb.281.1554749095743; Mon, 08 Apr 2019 11:44:55 -0700 (PDT) MIME-Version: 1.0 References: <20190313222124.229371-1-rajatja@google.com> <20190405203558.19160-1-rajatja@google.com> In-Reply-To: From: Andy Shevchenko Date: Mon, 8 Apr 2019 21:44:44 +0300 Message-ID: Subject: Re: [PATCH v3 1/3] platform/x86: intel_pmc_core: Convert to a platform_driver To: Rajat Jain Cc: Rajneesh Bhardwaj , Vishwanath Somayaji , Darren Hart , Andy Shevchenko , Platform Driver , Linux Kernel Mailing List , Tomasz Wysocki , Rafael J , Srinivas Pandruvada , Furquan Shaikh , Evan Green , Rajat Jain Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Apr 8, 2019 at 9:43 PM Rajat Jain wrote: > On Mon, Apr 8, 2019 at 9:51 AM Andy Shevchenko > wrote: > > On Fri, Apr 5, 2019 at 11:36 PM Rajat Jain wrote: > > > + switch (boot_cpu_data.x86_model) { > > > > I didn't get why this should be boot CPU? > > Otherwise, leave the structure and leave the x86_match_cpu() call. > > I didn't quite understand the concern. The x86_match_cpu() also uses > the same boot_cpu_data that I've used, am I missing something? It's a detail of implementation, and instead of continue using nice helpers, you open coded the similar. Why? -- With Best Regards, Andy Shevchenko