Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp2390267ybi; Sat, 13 Jul 2019 13:24:35 -0700 (PDT) X-Google-Smtp-Source: APXvYqwIEwnTUrILHECq/tzqxZyLEva/g7VmQEZ9lvTMZi43A0Y8x60FuiIiLQ6eYPanTsPLkvNZ X-Received: by 2002:a17:90a:2430:: with SMTP id h45mr20564596pje.14.1563049474953; Sat, 13 Jul 2019 13:24:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563049474; cv=none; d=google.com; s=arc-20160816; b=a6GxAI/yY6QfYsAZgLarmb4dHFYgXS6ijz5EH9oFdhFkUD/A6x7/hPVRMQUjrxekvP LpFNOTE4tiM9rdHODfaoL4Yf/YtiA72QYKZV1+xzggQDctTvi1OzBby5CjcF4nXz0o7B JRv38EoHyWdBopVbh5rXXWSRylmeI8OH6veRG4MONsZV+OTY+5+K5/jdo/dow0JovWWi W2Ap/8xq4xHZh4UsX1UvRWYiJakVNqZAZIMVDemTeutiFXl0qcrHkz0ST3ChnFYhivmA 9N6oNqPRCmOgFZD0z912XwFmW6SMKaQxPIET9IXYIoHjeWkJneuzk9dW07SIPW/W5+1j JmPA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=Qf/glchr/1caZsN9DQoqg/9kqBhgr1uegq4fZ1V8T7M=; b=vmSuwswcCv6MVzI4e6aXZFEx2hPYPinUxm2MfwfJakog1JagvDB/m2gSYo50UH/k9x G0tfaPErXbv4JyRBUgNGutYW34GR/uw6ltFjlWqTGZc+uei3xvcjE4epS7wyAjswhxWi mkcT33xU15+NmUcSrtAaUQUvppF07h1BlLj6YS6hJP3aEpSpjMiPZgRSVUtFxlgW7BCu in19Z+UfnryGrgaCw0g4nQZ380yQ0w1zPuLWjtrbEGXxSK7hV1UcRSZhFdbmoG/yvj5e 66KGzrQ6I1669cDg748QaikKeIUpPjR9na9LyNyrbQcbpB53g9jYyd7IjdDPm6awGRye sTtg== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 12si11772428pgn.328.2019.07.13.13.23.46; Sat, 13 Jul 2019 13:24:34 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728000AbfGMUWr (ORCPT + 99 others); Sat, 13 Jul 2019 16:22:47 -0400 Received: from mga06.intel.com ([134.134.136.31]:47468 "EHLO mga06.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727943AbfGMUWr (ORCPT ); Sat, 13 Jul 2019 16:22:47 -0400 X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga104.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 13 Jul 2019 13:22:21 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.63,487,1557212400"; d="scan'208";a="169238922" Received: from mwajdecz-mobl1.ger.corp.intel.com (HELO mara.localdomain) ([10.249.128.127]) by orsmga003.jf.intel.com with ESMTP; 13 Jul 2019 13:22:18 -0700 Received: from sailus by mara.localdomain with local (Exim 4.89) (envelope-from ) id 1hmOX3-0000J8-6W; Sat, 13 Jul 2019 23:22:09 +0300 Date: Sat, 13 Jul 2019 23:22:08 +0300 From: Sakari Ailus To: Maxime Ripard Cc: Zeng Tao , kishon@ti.com, Chen-Yu Tsai , Paul Kocialkowski , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH] phy: Change the configuration interface param to void* to make it more general Message-ID: <20190713202207.v7t2t3r24amctxvf@mara.localdomain> References: <1562923580-47746-1-git-send-email-prime.zeng@hisilicon.com> <20190712072145.gr3dbfvdfgrye6yi@flea> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190712072145.gr3dbfvdfgrye6yi@flea> User-Agent: NeoMutt/20170113 (1.7.2) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jul 12, 2019 at 09:21:45AM +0200, Maxime Ripard wrote: > On Fri, Jul 12, 2019 at 05:26:04PM +0800, Zeng Tao wrote: > > The phy framework now allows runtime configurations, but only limited > > to mipi now, and it's not reasonable to introduce user specified > > configurations into the union phy_configure_opts structure. An simple > > way is to replace with a void *. > > > > We have already got some phy drivers which introduce private phy API > > for runtime configurations, and with this patch, they can switch to > > the phy_configure as a replace. > > > > Signed-off-by: Zeng Tao > > I still don't believe this is the right approach, for the reasons > exposed in my first review of that patch. I agree. The very reason for having PHY type specific structs is to allow configuring the PHY independently of the PHY device. This patch breaks that. -- Regards, Sakari Ailus sakari.ailus@linux.intel.com