From patchwork Tue Oct 30 10:22:28 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jerome Brunet X-Patchwork-Id: 149732 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp5259524ljp; Tue, 30 Oct 2018 03:22:45 -0700 (PDT) X-Google-Smtp-Source: AJdET5eSykTALw+cy3S531sOc4dNGpsrEmqKv4nV+SqcNgZQmggXjjj3rT+N/UpZJdQ897oE89/E X-Received: by 2002:a62:c42:: with SMTP id u63-v6mr2332112pfi.43.1540894965218; Tue, 30 Oct 2018 03:22:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1540894965; cv=none; d=google.com; s=arc-20160816; b=DWwZRtSv12d/foGHF1XMxKw2LdzmsYbaH3O/X1uA3MDF/UHDqGXMkmb6hV1i5dYjtZ QC/oss2MRgeYW8aFVjNxmZ4pMLBbEQu7vDKlnlaLiMdiqGQkLzPJ9rgsGY5bYBK2rygH HlSCZJPYPFVyFGVNIuB7SRPD0MXiuyJYJEArFlxpt+maO2eOEZl9YYMRv8Jei1UNpJkG MUJYCse4IYx7uVtK0C+kkInUZX4qFQVty9PH8SbY/gx15G43C007Qv5695EkJabA0+SH c5e2tMA4oIPv/utllESeO9SFDaUz0iA75fvUj440ICD67KY7zmrMN8KOGQJxXrF2lWC4 noEQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=ygrPMk+pJcXRHcdBwiVFBHzojOA9Y2YhpU+L53lNZo8=; b=eHuqBl//CzV4KduEDbw69LgXilnBhQY18NTDu+hcPbrGeWI+uTTiMjf5FzZ9I5kABw 9L6J9K4lRPXs864bn3ox81Vm+Z/YgS6gR+d7xi24v8MFRGOSzdG5bJxb6Zt1QHQwnHKh CM5qy2NOd/NxeUMzPFCTQv9Fj9ioqLupjoO8BlkcwJqou6uosHr9ECIQx6v5vfT6akCV 88ZfTr+K02JgcY29dCrc5G5tgxn600k+Antfdxo9+OMkTyWW6dta+TTBjrSeMbAVFWHf osmR4woUAsS6Io/rSEyu2EWrNoOyLXpI95yzqQBCo2O/C6XfhhaGQI/pvjCUD50q2XOS Mreg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=toLJdzQX; 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 j10-v6si12804861pgt.206.2018.10.30.03.22.44; Tue, 30 Oct 2018 03:22:45 -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=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=toLJdzQX; 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 S1727355AbeJ3TPd (ORCPT + 32 others); Tue, 30 Oct 2018 15:15:33 -0400 Received: from mail-wr1-f66.google.com ([209.85.221.66]:42705 "EHLO mail-wr1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726757AbeJ3TPd (ORCPT ); Tue, 30 Oct 2018 15:15:33 -0400 Received: by mail-wr1-f66.google.com with SMTP id y15-v6so11922673wru.9 for ; Tue, 30 Oct 2018 03:22:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=ygrPMk+pJcXRHcdBwiVFBHzojOA9Y2YhpU+L53lNZo8=; b=toLJdzQXZuWeQ41ePJRpCYzE1Y1Kkqt3wzv1EeS2IEaQLPs02n22JxHgeb4YgnQbt1 wZPoG0YdrhFQS+Ea+on8EQV6AsiDL7Pqq83JaDSvLTzYe1kzZU/xoYCf+Zt7S88cG/ZX IHHJ8HWTIOcs/L8PUqryPG3vjyvgtu5GIsmTwvuBOADxK7ocW476OsheVEsP4TIF/lZC LgpvOa//TBh5SPzs9pQ+2auyU2A0f6kOIVCSSCxSkXq/wjkWgjBB7PdD5buGGia1kwT2 e3U2Xz0HPvZbL/HPpHshj5QiWrBC4OBtD1PMIAZdK8fGMnsFWtvXjozYpqQO/w4Aq/fe yyXQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=ygrPMk+pJcXRHcdBwiVFBHzojOA9Y2YhpU+L53lNZo8=; b=H0qK1JwgMADhuNrH6Cy3nHkdwESPgrYbEBCfU6SiZkNqPzus3mUwiCsmiVyDO71uo2 md6fqs9Do+2riHnL7o38+swt6o9JvPoMHSIaYSmdEGvZcz+LQus8L1KqXtb39uhuJaCV 8iZk1103Ju2QlcEG0o+tT55fPcAh8T8VqzyBoesJjrlLYVwIHe9s9lg9gOpS7kdLG3QU DvW64eQq3CbpTIfmNZmh8e52Ou6aPqC2Bzp0SyzPdJ7fU8w5SaqXleVHMXjZ+0jPU/Gy Vjne8s4H5V5MB21NAUnU6vECi/CNsMIvnySru4qiEV9CaNssqUw8QqIeeFHSlONBDtrz vn+Q== X-Gm-Message-State: AGRZ1gJGqTzxn//ZSbEIl1K5WoHdgi0O0Ksrw0wzyuACDefoKaQOLIY+ k6AefukAOlT54uHUzNC9WguodA== X-Received: by 2002:adf:dc07:: with SMTP id t7-v6mr17115982wri.107.1540894959698; Tue, 30 Oct 2018 03:22:39 -0700 (PDT) Received: from boomer.baylibre.local ([90.63.244.31]) by smtp.googlemail.com with ESMTPSA id i204-v6sm26638614wmd.28.2018.10.30.03.22.38 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 30 Oct 2018 03:22:39 -0700 (PDT) From: Jerome Brunet To: Srinivas Kandagatla , Kevin Hilman , Carlo Caione Cc: Jerome Brunet , linux-amlogic@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/4] nvmem: meson-efuse: add error message on user_max failure. Date: Tue, 30 Oct 2018 11:22:28 +0100 Message-Id: <20181030102231.4851-2-jbrunet@baylibre.com> X-Mailer: git-send-email 2.17.2 In-Reply-To: <20181030102231.4851-1-jbrunet@baylibre.com> References: <20181030102231.4851-1-jbrunet@baylibre.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add an explicit error message when SM_EFUSE_USER_MAX command fails Signed-off-by: Jerome Brunet --- drivers/nvmem/meson-efuse.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) -- 2.17.2 diff --git a/drivers/nvmem/meson-efuse.c b/drivers/nvmem/meson-efuse.c index d769840d1e18..40b9df1d030d 100644 --- a/drivers/nvmem/meson-efuse.c +++ b/drivers/nvmem/meson-efuse.c @@ -48,8 +48,10 @@ static int meson_efuse_probe(struct platform_device *pdev) struct nvmem_config *econfig; unsigned int size; - if (meson_sm_call(SM_EFUSE_USER_MAX, &size, 0, 0, 0, 0, 0) < 0) + if (meson_sm_call(SM_EFUSE_USER_MAX, &size, 0, 0, 0, 0, 0) < 0) { + dev_err(dev, "failed to get max user"); return -EINVAL; + } econfig = devm_kzalloc(dev, sizeof(*econfig), GFP_KERNEL); if (!econfig)