Received: by 10.223.185.116 with SMTP id b49csp2701805wrg; Mon, 5 Mar 2018 07:23:30 -0800 (PST) X-Google-Smtp-Source: AG47ELtovaax0NWT0WA49Pm3sdSbm78cWgM3WSkYSCueQhdLrENgHg3MygtyA8ot56+AhHMTad1x X-Received: by 2002:a17:902:8ec6:: with SMTP id x6-v6mr13663066plo.402.1520263410384; Mon, 05 Mar 2018 07:23:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520263410; cv=none; d=google.com; s=arc-20160816; b=VFfPOvMcewPH6Q7BlwrFMJuH1kW/P4HF5IpJZ6ZYp9CGPCM8ddGKZzhKND94k/3fUr CNqdJBXgbPNcD+sC7FxzZO1yvlLOOH5mIo11N5vq8ygpRnor3gA9aIkrl1/nBUoKpEfN Ij7AnTQU+CMQeL1IjuJkf6DFofdsBM9CL7+hxxzIsMaO3VULoxsoHDjo+kifMcbFnh+o +FnL2CZbEpHL3F4dxaO70YW/ccIUVG/3bLe8T5UA9JYpDaH9ybp7/E1NM9M35yY+Qx+o qbDdkGZvvw960ISiuJXQhN4omZdOqxaDZEc3Y4sreao4insoqdCIsQdBE00G6193kcoq /VrQ== 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-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date :arc-authentication-results; bh=dM8JcY6HXfiarys8P+QWKFdKyPEPKZk0qm/RMUnuYBs=; b=mVQ26mnFsKpE9kRzS9I5jyMNv2B6QQV7akIZouDujDa2r/3exVUe2jZkxzBVIWqe7H inAtGjDYuS2tIlpIkebzmcTKwVW5AMUG3HIhmU1PuBOHVvuog5sIrcgdyGdZBgauRZ/k +nHYKWVgI45xXzTY6f3a+IKKKXEQLXZ7yVro5sjLqvdR/OvYmwt8KXwHEgzwn921bjdV gcALDXYIXLToRkkz1afJjFTP087uHAKArVLG+MGK2iYvpiSrcW62YwgDtXQTgEmZzrfn Yl2oH+HG0e+SQaRTzSZdBxfrpuCyB1dzAUJpzPcYz0QGqt8b8B7WX/b+uqUjmIsIo39p weRQ== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id ba10-v6si9320838plb.5.2018.03.05.07.23.15; Mon, 05 Mar 2018 07:23:30 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752238AbeCEPWO (ORCPT + 99 others); Mon, 5 Mar 2018 10:22:14 -0500 Received: from mx2.suse.de ([195.135.220.15]:36089 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751144AbeCEPWN (ORCPT ); Mon, 5 Mar 2018 10:22:13 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay1.suse.de (charybdis-ext.suse.de [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 2C15BAF22; Mon, 5 Mar 2018 15:22:12 +0000 (UTC) Date: Mon, 5 Mar 2018 16:22:11 +0100 From: Michael Moese To: Andy Shevchenko Cc: Greg KH , Linux Kernel Mailinglist , Johannes Thumshirn , Andreas Geissler , Ben Turner Subject: Re: [PATCH v3] 8250-men-mcb: add support for 16z025 and 16z057 Message-ID: <20180305152211.x423tgtwfanuwvwo@linux.suse.de> References: <20180305082235.12777-1-mmoese@suse.de> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: NeoMutt/20170421 (1.8.2) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, sorry.. my bad. Not my day today. I forgot to commit :/ I'll resend. On Mon, Mar 05, 2018 at 05:17:04PM +0200, Andy Shevchenko wrote: > On Mon, Mar 5, 2018 at 10:22 AM, Michael Moese wrote: > > Add support for two MEN UARTs (16z025 and 16z057) to the > > 8250_men_mcb driver. > > The 16z025 consists of up to four ports, the 16z057 has > > exactly four ports. Apart from that, all of them share the > > Port settings. > > > Changes to v2: > > Added include of linux/io.h due to finding of kbuild robot. > > Hmm... Is it there? > > > static int serial_8250_men_mcb_probe(struct mcb_device *mdev, > > const struct mcb_device_id *id) > > { > > > mem = mcb_get_resource(mdev, IORESOURCE_MEM); > > > if (mem == NULL) > > return -ENXIO; > > Redundant. > > > + membase = devm_ioremap_resource(&mdev->dev, mem); > > + if (IS_ERR(membase)) > > + return PTR_ERR_OR_ZERO(membase); > > > + for (i = 0; i < num_ports; i++) { > > > + /* ok, register the port */ > > + data[i].line = serial8250_register_8250_port(&data[i].uart); > > + if (data[i].line < 0) { > > + dev_err(&mdev->dev, "unable to register UART port\n"); > > + return data[i].line; > > + } > > + dev_info(&mdev->dev, "found MCB UART: ttyS%d\n", data[i].line); > > Consider to use struct uart_port::name instead. > > > + } > > > > return 0; > > } > > > > static void serial_8250_men_mcb_remove(struct mcb_device *mdev) > > { > > > + if (!data) > > + return; > > When it's possible? > > > } > > -- > With Best Regards, > Andy Shevchenko -- SUSE Linux GmbH, GF: Felix Imend?rffer, Jane Smithard, Graham Norton, HRB 21284 (AG N?rnberg)