Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp331817yba; Wed, 3 Apr 2019 09:31:12 -0700 (PDT) X-Google-Smtp-Source: APXvYqz5AOu6Uhct64p4nylLvE6xYKmW+uZFIEURodNLozfvR8TQL6RU77KlSt++y2XIbevdokXg X-Received: by 2002:a63:4750:: with SMTP id w16mr605203pgk.256.1554309072860; Wed, 03 Apr 2019 09:31:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554309072; cv=none; d=google.com; s=arc-20160816; b=UohdBG6wKy0bUJjNBKSsE8/6piTiDOcjWLmU9DwT7aANvtMKttAN0W0io+eAg7Iz17 y0PUosJ+kFJZVTtSpnDZHjeAH0EWzEZJ3Frk9uZfV/5A3LnzpTdlQ1FtlA/e8LzLczkw 9q1z+dhQ0ogInHGwz+p+2bM9v+4aiU2Gxkk7X082xkTOCxjBNfNuoxznSToexNAZ5Jb1 itBSV7c1ekmZnhKI7ui5wahqc3D1aMDMM8VuJDpNdOBCPqY5AtsJv8dqOAUXoHKA+gG6 fFNmKxGdH+WECuJxy5At6z2bAlN/MKIfOe3C1lmAvgCFGaDujHX7C4ReXjRDTF6jaLmx YsRg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=4tLAxkqs+rtAFjAWVMLOkAvtnG3oKyHHS8vnk99UQ2c=; b=gxyFcQX5ZcRus1MrHJE9cF5Ju5h9wj9Bj5UmxNXzO4LOrlIPR+lo3Bd43g3BHPUD/P IFrt70CfWnxjYDa3WsE8OoPF4cFQwEJL0xO06t42C1+Jjbg9jASYQUp+N/N57WiaRKx3 qvwzIZx4tRnN0tpIlmwiGf0dVlj8CAQRu76S5q8YT5qxkaOZKf4r+3BgQ/pOlkgZRMO2 qTUA8LSrI2z0WxwSZv+ZNqppV6GoES5PYUcTeg0jrUX1REEixP1ckh3zjL3QFQiHPY4E mPltYkiBCDs3TOfkdIpO3nZ3lcVVKjFh5PJBvJ2qyuz7u6N4AVSzUKMsCUqBUMZGAeGj 9cKg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=VXskTnCP; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l13si9963235pgp.54.2019.04.03.09.30.56; Wed, 03 Apr 2019 09:31:12 -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=@kernel.org header.s=default header.b=VXskTnCP; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726372AbfDCQaS (ORCPT + 99 others); Wed, 3 Apr 2019 12:30:18 -0400 Received: from mail.kernel.org ([198.145.29.99]:51794 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726064AbfDCQaR (ORCPT ); Wed, 3 Apr 2019 12:30:17 -0400 Received: from mail-ed1-f52.google.com (mail-ed1-f52.google.com [209.85.208.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id B711F2082C; Wed, 3 Apr 2019 16:30:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1554309017; bh=yaYCFUpD3wkB+sZzvu9Uq0b0BCZ5s40TjdM0TynNnk8=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=VXskTnCPMXoU+uWMk+0Q5dsqRAsI7V4xAb73kRheW8pNYSUYTx8Av6wyIPiwBIDtf wTXoJvIBPNnI22bSM1tj2L6jEnvUA8sn3QhQMSizXLsIJu0wZwYfEHnVWzpckzBFog uHCvbuOCH0hT/c32OWqNljrdR7z8tv8hj3iCNZqY= Received: by mail-ed1-f52.google.com with SMTP id d26so15473191ede.10; Wed, 03 Apr 2019 09:30:16 -0700 (PDT) X-Gm-Message-State: APjAAAU3RudIzQbGsBENwpYPlmBz9Y4v+tgYahdwo/2BbYBIuuOUeQE1 8R2P2Mt3yZLXSYUDe2UhAFikvTrf9D6xCMki/bw= X-Received: by 2002:a17:906:25ce:: with SMTP id n14mr404280ejb.115.1554309015230; Wed, 03 Apr 2019 09:30:15 -0700 (PDT) MIME-Version: 1.0 References: <1554243943-25507-1-git-send-email-richard.gong@linux.intel.com> <20190403142022.GB5752@archbook> In-Reply-To: <20190403142022.GB5752@archbook> From: Alan Tull Date: Wed, 3 Apr 2019 11:29:39 -0500 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCHv1] fpga: mgr: add FPGA configuration log To: Moritz Fischer Cc: Richard Gong , linux-fpga@vger.kernel.org, linux-kernel , Richard Gong Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Apr 3, 2019 at 9:20 AM Moritz Fischer wrote: > > Hi Richard, > > On Tue, Apr 02, 2019 at 05:25:43PM -0500, richard.gong@linux.intel.com wrote: > > From: Richard Gong > > > > Add a log for user to know FPGA configuration is successful > > > > Signed-off-by: Richard Gong > > --- > > drivers/fpga/fpga-mgr.c | 1 + > > 1 file changed, 1 insertion(+) > > > > diff --git a/drivers/fpga/fpga-mgr.c b/drivers/fpga/fpga-mgr.c > > index c386681..559e046 100644 > > --- a/drivers/fpga/fpga-mgr.c > > +++ b/drivers/fpga/fpga-mgr.c > > @@ -151,6 +151,7 @@ static int fpga_mgr_write_complete(struct fpga_manager *mgr, > > } > > mgr->state = FPGA_MGR_STATE_OPERATING; > > > > + dev_info(&mgr->dev, "Successfully programming FPGA\n"); > > That info is available in FPGA manager's sysfs status entry, if at all > I'd make this a dev_dbg(). > > From my end I don't see how we need this really. I'm ok with adding a message. It's not adding lots of messages, just one line for an event that will only happen for people who care about the event (not too many FPGA users but if someone is using FPGA, they will care about this.) Alan > > Thanks, > Moritz