Received: by 2002:a25:5b86:0:0:0:0:0 with SMTP id p128csp713048ybb; Thu, 28 Mar 2019 10:39:55 -0700 (PDT) X-Google-Smtp-Source: APXvYqyW5N6dwkpF7SUIx2/yJZwaFs6CagUmX1c+pYlb+EFKyQyKY8OhKrgIWQmpwm1XmbXhxqP7 X-Received: by 2002:a17:902:b617:: with SMTP id b23mr41921662pls.200.1553794795902; Thu, 28 Mar 2019 10:39:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553794795; cv=none; d=google.com; s=arc-20160816; b=mHi+HwES5XVxusmaN/reIozMKJBOVd5dhWxPRSUjVVMRBzyrwfvJuFT33VjjZvuNno 0p61s3ZDJKMY40lMtwhptPiDbIC1+RG/WhH1eszpiskOJsJcuoG+47BOmzhoOzk7DevV c08s5cosTgYe4HFJwsTqHf4KLGhsXpJJJR/mCxxXbi1Qyn8Y8EUvyaNHT3KdPCtNhdND W6DMIyJcLIvuPtrlxG7N0HwGMyywrsWWbn/EjKLZs/dWCroIQiIKilgfs6arH7e+S4Es /kFlk6cfo8OH7W0uKLQv4LtuNZJIZ5byZY4/udB55+zQSUG/kaNlKGxdPM8sVZeIs3LK unfw== 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=JR0ik1f8zX+ie4CUzqpEnVp6Bpiigj10aMr6kx/ndg8=; b=bUDJyxy7HlA7DGQnrEM0fGgrHSaZjXONOkUt4z1f1jkazfnAkdvteQqfaefjX74HhR jjccYY/cH3wZBjlE9pvai+EH5mH4Ere1IPm8SzhdXL72IGAYUa5PqZ5cKpTXdFvwvrZU S7LII/QDrxRyO/y7RbB+2LiAG8DlNQOadjtgxT2YFZeLVNYQBekugZ1PVo/XNGVJbl6j FvBKEmamdW9vIwutTzvOzrhkVNhQ6wNCoYBGNT8Hn/hPjD0WRvuVybRdiKaihVCce3FN KqKkLIU3TXAFlnO+ysKenFVdXM4CqSZR959WTP8O0NmQSUlx5cKMA/wDh062EDT/knJF +vkA== 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 f11si785072pgf.406.2019.03.28.10.39.39; Thu, 28 Mar 2019 10:39:55 -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 S1726332AbfC1RjB (ORCPT + 99 others); Thu, 28 Mar 2019 13:39:01 -0400 Received: from mga17.intel.com ([192.55.52.151]:59429 "EHLO mga17.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725816AbfC1RjB (ORCPT ); Thu, 28 Mar 2019 13:39:01 -0400 X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga107.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 28 Mar 2019 10:39:01 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.60,281,1549958400"; d="scan'208";a="159294324" Received: from kuha.fi.intel.com ([10.237.72.189]) by fmsmga001.fm.intel.com with SMTP; 28 Mar 2019 10:38:58 -0700 Received: by kuha.fi.intel.com (sSMTP sendmail emulation); Thu, 28 Mar 2019 19:38:57 +0200 Date: Thu, 28 Mar 2019 19:38:57 +0200 From: Heikki Krogerus To: "Rafael J. Wysocki" Cc: Greg Kroah-Hartman , Andy Shevchenko , Chunfeng Yun , Biju Das , Hans de Goede , linux-acpi@vger.kernel.org, linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 0/3] device property: fwnode_is_compatible() helper Message-ID: <20190328173857.GC9993@kuha.fi.intel.com> References: <20190327164339.31205-1-heikki.krogerus@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190327164339.31205-1-heikki.krogerus@linux.intel.com> User-Agent: Mutt/1.11.3 (2019-02-01) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Mar 27, 2019 at 07:43:36PM +0300, Heikki Krogerus wrote: > Hi, > > Basically the helper is just a generic version of the function > of_device_is_compatible() that should work also with ACPI and > software nodes. > > As the first user for the helper, I'm converting in this series the > USB role switch code to expect the "compatible" property to have the > value "usb-role-switch" instead of expecting a boolean property named > "usb-role-switch". I'm doing the same for the USB Type-C mux code. > > thanks, > > Heikki Krogerus (3): > device property: Add fwnode_is_compatible() and device_is_compatible() > helpers > usb: roles: Use the "compatible" property instead of a boolean > property > usb: typec: mux: Use the "compatible" property instead of a boolean > property > > drivers/base/property.c | 35 +++++++++++++++++++++++++++++++++++ > drivers/usb/roles/class.c | 2 +- > drivers/usb/typec/mux.c | 8 ++------ > include/linux/property.h | 3 +++ > 4 files changed, 41 insertions(+), 7 deletions(-) Don't take this series yet. We are having a discussion on whether this is the correct approach with the USB mux or not in an other mail thread. The helper itself (patch 1/3) I guess is fine though. thanks, -- heikki