Received: by 10.223.176.46 with SMTP id f43csp1348591wra; Fri, 19 Jan 2018 10:11:26 -0800 (PST) X-Google-Smtp-Source: ACJfBouE7BIBsBv/bH2QRNlRKDCBpB+jh+1b3wjOhCXbEH39OjiGP0wFL4xvr6KmHw1adxgFwkis X-Received: by 10.98.131.200 with SMTP id h191mr33131275pfe.149.1516385486797; Fri, 19 Jan 2018 10:11:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516385486; cv=none; d=google.com; s=arc-20160816; b=Dzt3X/mnKke9lKE1WfPLhQuRpkww0dno5xf+geWGun3W8HLPy5vNytnxO58SRqxFCd Qo/hciQCbPYstnlQzlgOfo75anMFb+JKgXrdw9HHwGg/M6xyoaAQOEjkaCV5EgaCEmIV tJ871p1+GOUesP9uvKVoJYt3I0nafT5yuBAE+x+scc+Tg00FnVfH7jbTnMmTDbaESppd 9C6F8At6ZcKUJ5xR4b2fXqTSthgoopRrdCqSxAbvEfFtmao2pk/WktsDTs9LUQyZwjb/ TS/rDDr6ZGkVD/Gria5qqscEMThJ2yDfpGwIO21NTmeYTY+WCr2MnvEeMwP0aOTGmYxD BHjw== 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:mime-version :references:in-reply-to:date:cc:to:from:subject:message-id :dkim-signature:arc-authentication-results; bh=O3D+Bq/vlA0wCyF1aMEmFmHzvtv5fpje/mYtfLeHMTM=; b=nnl/som+4m5moq7n4WnmPosrskn/vjsqyzLXGNnUC7TDBjs4Y7VNP+VMkdBNNdV9rX lT4xGTN5j3XS1Sko3wjp7VaGaW18d+cu5liKxzGWJYxIrztXxMNo6feZmsCGwCDyTRuP tdkwTx/z1MvqDVaurwk7bdACFmWgc5i6ZC7I2VfvDJrslORY2XjR+Nm1InHPuuMJ7t7Z FVUbNkJnOZK9MCkZY+HmIAjC0PExJfpxF+gVujIGE+moPBYAGQWFF1JA4bar0KqDLWyy rWKqReNdlTD4i1R0oXuL1C4h+77WS+uCGaGofomxpRZjxHcNFxuTVKEFL/UctvTn+fHJ Rr8Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=qVvHik1z; 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=NONE 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 i1si5571534pgv.412.2018.01.19.10.11.11; Fri, 19 Jan 2018 10:11:26 -0800 (PST) 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=qVvHik1z; 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=NONE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756226AbeASSK2 (ORCPT + 99 others); Fri, 19 Jan 2018 13:10:28 -0500 Received: from mail-qt0-f195.google.com ([209.85.216.195]:36538 "EHLO mail-qt0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755968AbeASSKU (ORCPT ); Fri, 19 Jan 2018 13:10:20 -0500 Received: by mail-qt0-f195.google.com with SMTP id z11so5920127qtm.3; Fri, 19 Jan 2018 10:10:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=message-id:subject:from:to:cc:date:in-reply-to:references :mime-version:content-transfer-encoding; bh=O3D+Bq/vlA0wCyF1aMEmFmHzvtv5fpje/mYtfLeHMTM=; b=qVvHik1zHpHwsGCHmiU+M7v70oP70wmigxyUcO+OUPP3HYiwBAL1ycCYUth9k4uA5O t5RN1VJ0hlyJhWTdhnIT8Bwu+C3kK5uC7vTyI22vwnsptG6yl6AS1qPb8A79U4TASoIY k3f+tv1gMWUg3W8rKqEcbF5vlBO9B0L4gGuD2cdkvccufFH7tjfr/slyDdB+9jIfe0Tz B/MwVCURbguyaT0/DGz2JV85L5SstJdzl+nsEYRRxFFmCfaIKkeO74snNLhR4UI2dUyl j7HVos+yF5C3Eel8xkCNqAQrrtJ1m5X7VGTDD8YgZDFS4Lw+/3uVir4YUp7uILpbrAQb e/Hw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:subject:from:to:cc:date:in-reply-to :references:mime-version:content-transfer-encoding; bh=O3D+Bq/vlA0wCyF1aMEmFmHzvtv5fpje/mYtfLeHMTM=; b=YwsujXnAsOAgRaCjNFV6twy+5Pzy+RlJOPQ26BvWjo2PYwczaZTapOMj33hJ3mHisQ pXor4mctWeQ5uInsfgd0hMZox/AoV269R2ElZYwcgRcLZ1mpdfEMQ6oiH/QvDobZDfv3 4G/Y6N0ibDtlWNBQqS9+OVEkh0c3T3VLA1HyjTZ3TwcUoT8XDEq+NVbxYGwlpjSSPErJ L265m2A4Sh8weat+zpXggWMQjyg8pAJQbg2NxtnkyWy7rZ4QCByw5qs1bM4Xz6qXEJrk +jQmWXQfD7iMMzEauRVuiPQIMnSh87epiexhabMM2hw8P5o6psXvlqK5/UYm4zX8ZfW1 VChg== X-Gm-Message-State: AKwxytd0icZD+SkOXQ4U1FFYCno3CHbWEXg1OQ5BnTXj/zoJadHjFpsF htUO+fCCC9r9QyBR10RxO4I= X-Received: by 10.237.41.163 with SMTP id o32mr34268321qtd.80.1516385419881; Fri, 19 Jan 2018 10:10:19 -0800 (PST) Received: from dhcp-10-20-1-30.bss.redhat.com ([144.121.20.162]) by smtp.gmail.com with ESMTPSA id p76sm6559664qke.43.2018.01.19.10.10.19 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 19 Jan 2018 10:10:19 -0800 (PST) Message-ID: <1516385418.2814.5.camel@gmail.com> Subject: Re: [PATCH 3/3] Input: synaptics-rmi4 - log when we create a guest serio port From: thatslyude@gmail.com To: Dmitry Torokhov , Benjamin Tissoires , Damjan Georgievski Cc: linux-input@vger.kernel.org, linux-kernel@vger.kernel.org, Andrew Duggan Date: Fri, 19 Jan 2018 13:10:18 -0500 In-Reply-To: <20180119004955.247190-4-dmitry.torokhov@gmail.com> References: <20180119004955.247190-1-dmitry.torokhov@gmail.com> <20180119004955.247190-4-dmitry.torokhov@gmail.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.26.4 (3.26.4-1.fc27) Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Reviewed-by: Lyude Paul On Thu, 2018-01-18 at 16:49 -0800, Dmitry Torokhov wrote: > To ease analyzing boot behavior from logs, let's log when we are about to > register the pass-through serio port. > > Also, let's drop "Synaptics" prefix from the port name, as RMI4 is good > enough indicator already, and having the prefix means that the name does > not fit into serio->name field. While at it move from hard-coded seio->phys > to one mentioning the sensor ID (such as "rmi4-00.fn03/serio0"). > > Signed-off-by: Dmitry Torokhov > --- > drivers/input/rmi4/rmi_f03.c | 9 +++++---- > 1 file changed, 5 insertions(+), 4 deletions(-) > > diff --git a/drivers/input/rmi4/rmi_f03.c b/drivers/input/rmi4/rmi_f03.c > index 7ccbb370a9a81..88822196d6b72 100644 > --- a/drivers/input/rmi4/rmi_f03.c > +++ b/drivers/input/rmi4/rmi_f03.c > @@ -184,14 +184,15 @@ static int rmi_f03_register_pt(struct f03_data *f03) > serio->close = rmi_f03_pt_close; > serio->port_data = f03; > > - strlcpy(serio->name, "Synaptics RMI4 PS/2 pass-through", > - sizeof(serio->name)); > - strlcpy(serio->phys, "synaptics-rmi4-pt/serio1", > - sizeof(serio->phys)); > + strlcpy(serio->name, "RMI4 PS/2 pass-through", sizeof(serio- > >name)); > + snprintf(serio->phys, sizeof(serio->phys), "%s/serio0", > + dev_name(&f03->fn->dev)); > serio->dev.parent = &f03->fn->dev; > > f03->serio = serio; > > + printk(KERN_INFO "serio: %s port at %s\n", > + serio->name, dev_name(&f03->fn->dev)); > serio_register_port(serio); > > return 0;