Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp3216868yba; Mon, 8 Apr 2019 13:45:29 -0700 (PDT) X-Google-Smtp-Source: APXvYqw26cINWtPtFnu/OmxVCox6ooCwInkbQPPTwsZK6kmJVfU8P5yAEZAl5oUWQaYVVmriSj2I X-Received: by 2002:a62:2687:: with SMTP id m129mr31629209pfm.204.1554756329544; Mon, 08 Apr 2019 13:45:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554756329; cv=none; d=google.com; s=arc-20160816; b=F7O+/TabHbaPerE4S1617MAvhVA6Puh/gU+Ma8qmEwgJEWM3fYcFhf7WqA5LjrbVKD 3KEkNeOeh2ut3FlNnL+0p3A60NtYcnicSThaM4ixXa//sY+kdAIMmLAxg0xXou/co8RP jumCEDBk5X0N3bqkK2LtAffsmFxSAhBq9FWF8hWUynoI/sW11HR93ywbFJiamZhPfuct VixmEGiB9IFDLFFB27P0xTfQ9FwfT9vWU6VnJVShDg1EWgQXq+ogYh+fM6B4zlpRKsXl 30v6TlsZh9v2l21c8GDXLeVALdk+dFILromp4n4TKYOpMO4G0PsvVQrbjdBS/GeFa40R VLDg== 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=XqZU5+DlMUpi8284eOudgl8vYH/2zMpoCd9V4U+Mz/k=; b=AUyxUpcoSoC2okJLBkkIulJVzDtF/RKUxABT/MoFYk+Vk4I8ZJmrYD+cJSscGLt9Nt kIypghv6B+BTSCCcH9gkLD6sXZHWw7ZJtU+kiYgPyGEdKVOvoNdAQB4CRNxMNiAZOM2t Dx3cm7w2A882gZMRk5CjpDEeIWvTrcibwOBahXRR8nUjqvjqze1nzTD2OUOyYrVws4pm q8KcGOf7TYVjZNPsaG5UXu+LGQU8KKDyYWusaTNRHlCRiCX4aMNqG8a5BwFVMQuBTWQE AbKIqpbxMWA7oIgYqab1XKTxD/F9+WPh/qNExfy0exWp5HJMoMHTNcWlO7lmBGBUCi5m QI3w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=Y82hja5s; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j7si25026876pfb.75.2019.04.08.13.45.13; Mon, 08 Apr 2019 13:45:29 -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=@google.com header.s=20161025 header.b=Y82hja5s; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729147AbfDHSr7 (ORCPT + 99 others); Mon, 8 Apr 2019 14:47:59 -0400 Received: from mail-lj1-f195.google.com ([209.85.208.195]:39307 "EHLO mail-lj1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726582AbfDHSr5 (ORCPT ); Mon, 8 Apr 2019 14:47:57 -0400 Received: by mail-lj1-f195.google.com with SMTP id l7so12227452ljg.6 for ; Mon, 08 Apr 2019 11:47:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=XqZU5+DlMUpi8284eOudgl8vYH/2zMpoCd9V4U+Mz/k=; b=Y82hja5s3DRRr5uCWYmfkcHcH8/6bjcvj26ZCKHqlzQKJDOwTOHLPU40uIGLWNowEe iw1dGl96VElWR61/gdGZipcJPhMQucDEMJhZop7kN0FR1Ag/wp8I9cRJsTqKejFh2zMS LNVBsP0jWgU3wSwo/PZVOwjgjLDaeDQm1OxU5Awoo+6af34uDBV0l5/kF5JkFKrXkmSy ucLvjQhx+m8i5ZY811E2mFdNvuXqBTR3hastVq/XeN0HoI5fapIi07NlF1kwaAK34BGP VVb9lDGptjf0qIYCuSFG8NNArwG7yfJO0n+HHnYXHYx9hSl8wD3HWBVV7mxykJtBDnNm odWA== 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=XqZU5+DlMUpi8284eOudgl8vYH/2zMpoCd9V4U+Mz/k=; b=VMCxxeYbyMICTPxlbBh282UDgIzih9qPXfyufmVmqzK4MvypPqHIS5IafzXll8GWCn Fd7MzaezIdonwvQ2NoY93XuP/ojyJIMZ/5OZWwJoZTU4azRMg+SQSkPwPl6kLzD2cQJ9 oI+uhS+2MVL+D7EUB56uPCAMpNM/9uSf82eldOHgQWSWpqPivH2sUwibBtes/lw8ukmu Gd/SrX8QwdcCidtT/JBNz8wfRyNIqsGJi63dJLWpIkcwfjMzTrrdzhExMLg21YeS9OnZ ZjGkud/oLsWbdaYpPzSdHv61qOHpz4Mpd7SJlPuO8bsNXEywOcolQC9nAzMSI27/ktnL RJzA== X-Gm-Message-State: APjAAAWWxmqIuvHPhpE49zBjDppBHNLQdhcEJ2fIA648qBPrGG6k2sET xZFghZqGCzRtSJEnozAm5KdUTBlNvxDCOle6vN/doQ== X-Received: by 2002:a2e:6a14:: with SMTP id f20mr17713158ljc.65.1554749274819; Mon, 08 Apr 2019 11:47:54 -0700 (PDT) MIME-Version: 1.0 References: <20190313222124.229371-1-rajatja@google.com> <20190405203558.19160-1-rajatja@google.com> In-Reply-To: From: Rajat Jain Date: Mon, 8 Apr 2019 11:47:17 -0700 Message-ID: Subject: Re: [PATCH v3 1/3] platform/x86: intel_pmc_core: Convert to a platform_driver To: Andy Shevchenko 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 11:44 AM Andy Shevchenko wrote: > > 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? OK, sure. I will put back the intel_pmc_core_ids structure and the x86_match_cpu(). Thanks, Rajat > > -- > With Best Regards, > Andy Shevchenko