Received: by 10.213.65.16 with SMTP id m16csp200070imf; Sun, 11 Mar 2018 23:58:26 -0700 (PDT) X-Google-Smtp-Source: AG47ELt1JGAc3E63bEXwKzCYLFJmGP9fEGy8bxHCAWYgFZhEM3q1ngh2hfexIF1qvAEUuTaXug+Z X-Received: by 10.101.83.65 with SMTP id w1mr5856916pgr.313.1520837905960; Sun, 11 Mar 2018 23:58:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1520837905; cv=none; d=google.com; s=arc-20160816; b=mZpQphDJ4WK9ojLsTZVIbPD1DYO7Vj/zcUawmpMp/jV25pWMVoXC7uv2Y/i2/iU/3j XnB0RMBOsSb4UUHWbu5Wgk1LMmuhSNRJH/zB6IugGSWDoDEm9KwvICv7dnpG9VjLZsjm seUSGgtr2s7WLbX1mchupbNqyer06Uj26LN9Sdd3Uv2z8sjD5/V5YR/jEPdDhWnncoHa uzrpzBV5Gc2VRzH9svvVJ3Gj9WwmLcFsom9Mp8tTs9qgwpGNXe5NfQCYVEpTn7XtUOD2 1wiGHrcWkYk3/LRNQtw+f/rnQCXHNMgRNmgB+D4TbgQSAzqjNrt98yMTJLjN42RkPorf PbOQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:cc:to:subject :message-id:date:from:references:in-reply-to:mime-version :dkim-signature:arc-authentication-results; bh=joClJIci31hKn54WsVo3gFiZ7txFY708S1mIx4de6ms=; b=zrW3xt8GipDBH/ySbTOGSQeLlVD32TnZqx9cHdjgCvYa3ZZ/R/a5zgLIs+e4lgRWxX IMn7qLOXcd6vZrRY1UtpuEsYSoRhE7SW6iBQwweReAEut3HJpuQZ+Tp3W+Q1PvDk6J7A Rzj6LEkd0gLawwsibITAxmcYBVkwgKrZq6eiS7R/0Mq35kfQtzpod2yjlHSybzg/Cc4y 6CD1LZQJ8Jfs3pv7mHN8+PWdip4AHEuE+t7tGF9HH3R0WMhupdVCQHVwjAbNCNf/ZRiU ZbP1vSvQZ3YzlmYHNMA4/1AWXb86WJJUlR/q0bWCgfz7pLMzKt0bTHCoB+LwLW1o0MDB 8fAQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Dmid/uEY; 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 h130si4601043pgc.780.2018.03.11.23.58.11; Sun, 11 Mar 2018 23:58:25 -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=Dmid/uEY; 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 S932316AbeCLG5R (ORCPT + 99 others); Mon, 12 Mar 2018 02:57:17 -0400 Received: from mail-qt0-f176.google.com ([209.85.216.176]:34050 "EHLO mail-qt0-f176.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750790AbeCLG5P (ORCPT ); Mon, 12 Mar 2018 02:57:15 -0400 Received: by mail-qt0-f176.google.com with SMTP id l25so17726455qtj.1; Sun, 11 Mar 2018 23:57:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=joClJIci31hKn54WsVo3gFiZ7txFY708S1mIx4de6ms=; b=Dmid/uEYbcorpT/EHIUjSbj6gzu9UaqWGtMGqMk7arxKfBk7euT2myNIj/1X0j4GlG bxWdL743YEshM25QlVSuuB9wC7DcP6D6a5h6XVwK/5l2UXyUGQVFGP/1VkkB30hvzjmG qTtfXfC4b6kxOUcX7rvnQa5J06b8Jqk/AIllbscC7QLcA5+K4ra/3Be5Mdgvh+W2Hhq6 b2UKZvcHuDuYqwdGUfNhDbaFyMjdYzBzjnWzFjfskcz8bNBo5Zx20GVkxTsKYAqZaf4K Na8fqwkXK4q9PXxZ49s3+/LrTX8FRcc8sCK/Erw6z+4Udq7vuUzFHpSFeJ2WwrtGL/6r UF9A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=joClJIci31hKn54WsVo3gFiZ7txFY708S1mIx4de6ms=; b=ntrzjQl5Sn1jxEda+23y6ZRS1hXZbRCdWqRHIjgMdkFqm7BZmQAY5S1V48NfOv10d+ +TvJvhU31SdTDBs2w9Uy/TddpgA/8d/HydSempzy4yYAgJc7cOiPlSot6afm+GMFOSb1 DAjOnfwTGJMN1P9DFLFNqZ5yCe0Yo6IqRt1WDlrcKs3Dirht8MAFSGTOy6hMn173aKTQ zQLdbxN+Mj1a02wDpbKstKJELjCpi4MWCYdb2bsHiB9TsLygVF1NVPTm0L+5awBOMpT0 BXpWcC2EFuTKlOU10TedOaM+oi5s9MjsNLzy8OdFswJVCgmEtHiIdzq6QmKl+THmyQcM 6Ycw== X-Gm-Message-State: AElRT7H8xYRQUopWDU7LMzeSUDQ9scv4WQPefJrxHV2xvCt+6VzoEUIe 3zMX6Ul7DHLwWFJwXazjEeE1xL+jLqhz/7lrcNM= X-Received: by 10.200.13.134 with SMTP id s6mr1163833qti.124.1520837835030; Sun, 11 Mar 2018 23:57:15 -0700 (PDT) MIME-Version: 1.0 Received: by 10.200.53.183 with HTTP; Sun, 11 Mar 2018 23:57:14 -0700 (PDT) In-Reply-To: References: <1520301032-10109-1-git-send-email-leechu729@gmail.com> From: =?UTF-8?B?5p2O5pu45biG?= Date: Mon, 12 Mar 2018 14:57:14 +0800 Message-ID: Subject: Re: [PATCH v7] staging: typec: handle vendor defined part and modify drp toggling flow To: Jun Li Cc: Greg Kroah-Hartman , "heikki.krogerus@linux.intel.com" , "linux@roeck-us.net" , "greg@kroah.com" , "shufan_lee@richtek.com" , "cy_huang@richtek.com" , "linux-kernel@vger.kernel.org" , "linux-usb@vger.kernel.org" Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Jun, 2018-03-12 13:58 GMT+08:00 Jun Li : > Hi >> -----Original Message----- >> From: =E6=9D=8E=E6=9B=B8=E5=B8=86 [mailto:leechu729@gmail.com] >> Sent: 2018=E5=B9=B43=E6=9C=8812=E6=97=A5 13:22 >> To: Jun Li >> Cc: Greg Kroah-Hartman ; >> heikki.krogerus@linux.intel.com; linux@roeck-us.net; greg@kroah.com; >> shufan_lee@richtek.com; cy_huang@richtek.com; >> linux-kernel@vger.kernel.org; linux-usb@vger.kernel.org >> Subject: Re: [PATCH v7] staging: typec: handle vendor defined part and m= odify >> drp toggling flow >> >> Hi Jun, >> >> Thank you. >> >> 2018-03-12 12:33 GMT+08:00 Jun Li : >> > Hi, >> > >> >> +static irqreturn_t _tcpci_irq(int irq, void *dev_id) { >> >> + struct tcpci *tcpci =3D dev_id; >> >> + >> >> + return tcpci_irq(tcpci); >> >> +} >> >> >> > ... >> > >> >> + err =3D devm_request_threaded_irq(&client->dev, client->irq, NU= LL, >> >> + _tcpci_irq, >> >> IRQF_ONESHOT | >> IRQF_TRIGGER_LOW, >> >> - dev_name(tcpci->dev), tcpci); >> >> + dev_name(&client->dev), chip); >> > >> > - dev_name(&client->dev), chip); >> > + dev_name(&client->dev), chip->tcpci); >> > >> > Did you ever test this patch? >> I've tested this patch with tcpci_rt1711h.c that will be sent out for re= viewing in >> the next patch after tcpci's modification is passed. >> Because interrupt handler is registered in tcpci_rt1711h.c, here is the = place I >> didn't notice. > > Understood. > >> The interrupt handler for tcpci.c should be modified as following: >> static irqreturn_t _tcpci_irq(int irq, void *dev_id) { >> - struct tcpci *tcpci =3D dev_id; >> + struct tcpci_chip *chip =3D dev_id; >> >> - return tcpci_irq(tcpci); >> + return tcpci_irq(chip->tcpci); >> } >> > > Either way is OK to fix it. > You may send out your v8 and notify Greg to drop your v7 version. > > Jun Li May I add you in the Reported-by list? --=20 Best Regards, =E6=9B=B8=E5=B8=86