Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp2738518pxb; Tue, 21 Sep 2021 06:41:17 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw1Cg8Cf7Hrj5QTlQQbqzXFZsIxtuCCC1hPQV9D4F+5GD/FULLnJJ1+XapPkcFM3bqDZvZA X-Received: by 2002:a92:c98d:: with SMTP id y13mr21962158iln.157.1632231677270; Tue, 21 Sep 2021 06:41:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632231677; cv=none; d=google.com; s=arc-20160816; b=Z4Si6mU2DNWlcRFzZzAGxWmSwFBX3+M9i/hI6nG7B/X5lkWM5QGic3iGxiFFuo7HaQ B1fHdh/tkns8fENhBMT94VOrOMQEYwKTszrRlMUJKEq1eQMOS1XlYiAKW5bvanOPbGKw +ubFPhbEDUNYh2++SCT3bPd8+K3U0MJqPeANsPwOYRQjcGiBRypXKtjDaxGMY0hC4Amf 2LW3yccVGy3HhUZGN9YIpC15KgdA/N+VGYTbV5yyOTkcLPncTuR1MSoz/xS33nIjR+p/ pI/yIWFqaKDxVWr5ooTO/YwrwGQOhOupKeqff8J9Y4NqByNMluKUTA1xZrSWZuVGoBsS CNfw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=10eU5MJ74giT+/htT8unuYZfn9zd2VL3KzUBJDGx+kY=; b=v191Q8JSVP6DMhNzGL9u5pLo56xmpd1Iw4l1qBCZuUCEV87KWvYsd5roXsgvKyStG6 HpGcnm28O1A+6Pzsn54s8/MKnhilvk6tslnFhw8JjINNE9qEhN71V0F+puNSGXaa0AD+ U7hS0qI7uvTffq3DXRem9LHiXvyRIGqO5ruQEcgHilMcUTaZt1P4MKgOX039Ulto1n26 +laXCySV1yIqoJL580RktGD/gPan96xHjhshqELJT6bjIVceXz3ORR1N23apVWYfb6hK 9naCl2w16mGX6QOCA+kZVmpTf6c6/Cw/PBAXhb1zMIiQsz7bf/TgQ/+f0j0zMOAtrnxa 0a5g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id l5si14863746ioa.54.2021.09.21.06.40.58; Tue, 21 Sep 2021 06:41:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S233161AbhIUNlU (ORCPT + 99 others); Tue, 21 Sep 2021 09:41:20 -0400 Received: from mga05.intel.com ([192.55.52.43]:27587 "EHLO mga05.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233096AbhIUNlT (ORCPT ); Tue, 21 Sep 2021 09:41:19 -0400 X-IronPort-AV: E=McAfee;i="6200,9189,10113"; a="308909930" X-IronPort-AV: E=Sophos;i="5.85,311,1624345200"; d="scan'208";a="308909930" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 21 Sep 2021 06:34:30 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.85,311,1624345200"; d="scan'208";a="613006988" Received: from kuha.fi.intel.com ([10.237.72.162]) by fmsmga001.fm.intel.com with SMTP; 21 Sep 2021 06:34:23 -0700 Received: by kuha.fi.intel.com (sSMTP sendmail emulation); Tue, 21 Sep 2021 16:34:22 +0300 Date: Tue, 21 Sep 2021 16:34:22 +0300 From: Heikki Krogerus To: Sven Peter Cc: Greg Kroah-Hartman , Guido =?iso-8859-1?Q?G=FCnther?= , Bryan O'Donoghue , linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, Hector Martin , Mohamed Mediouni , Stan Skowronek , Mark Kettenis , Alexander Graf , Alyssa Rosenzweig Subject: Re: [RFT PATCH 5/9] usb: typec: tipd: Allow to configure irq bits Message-ID: References: <20210918120934.28252-1-sven@svenpeter.dev> <20210918120934.28252-6-sven@svenpeter.dev> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210918120934.28252-6-sven@svenpeter.dev> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Sep 18, 2021 at 02:09:30PM +0200, Sven Peter wrote: > The Apple variant of the TI TPS6598x chip uses different interrupt > numbers. Prepare for that by allowing those to be configured depending > on the compatible. OK, so I think this justifies having a completely separate irq handler for your board. > Signed-off-by: Sven Peter > --- > drivers/usb/typec/tipd/core.c | 16 ++++++++++++---- > 1 file changed, 12 insertions(+), 4 deletions(-) > > diff --git a/drivers/usb/typec/tipd/core.c b/drivers/usb/typec/tipd/core.c > index 4a6d66250fef..d191e7435018 100644 > --- a/drivers/usb/typec/tipd/core.c > +++ b/drivers/usb/typec/tipd/core.c > @@ -80,6 +80,10 @@ static const char *const modes[] = { > struct tps6598x_hw { > bool use_int1; > bool use_int2; > + unsigned int irq_power_status_update; > + unsigned int irq_data_status_update; > + unsigned int irq_plug_event; > + void (*irq_trace)(u64 event1, u64 event2); > }; Then I believe you don't need any of that. thanks, -- heikki