From patchwork Fri Nov 30 11:53:21 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivas Kandagatla X-Patchwork-Id: 152530 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp3562686ljp; Fri, 30 Nov 2018 03:53:44 -0800 (PST) X-Google-Smtp-Source: AFSGD/X+TB5Filnalsxynh3pYRseQTYjiukRQpFXrkJims/VBRS3uRE7i026DK5SNrW27Vv1jxbQ X-Received: by 2002:a63:4c04:: with SMTP id z4mr4673592pga.312.1543578824789; Fri, 30 Nov 2018 03:53:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543578824; cv=none; d=google.com; s=arc-20160816; b=Ak6pxdVu2WtHnwOpZLlJAvDW4EZUQYBQAypjP2juOL+OKQgoCSZnFaK3d8c6EmX0/B 81rKopnqroxkzdB5YwmH5Sve+0aoGu4kZ6aDrRbkAROrh0ylDe8+Ftj6XCc/qc/pcUNm RZ6NFbkEIoHFzGZe4ZnLuteCHvMgrAhxlInWQdFECG9YGNovohrliev7prkTRvk9JFTF VA4S1RZ/9+VoAeqGgJidUes1IBn73+i/p9YaB6TlzRQuRuk2foBj3ieW/xfYhEFjBgxK uO52QKPVK6gP5OMXyhX1239/2+3W5eV99H8ZeZjZ5KCd3i9/Az9VFtdSR5NshSfBvN9K pbsA== 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:message-id:date:subject:cc:to:from :dkim-signature; bh=zXEVfusJTtHYF8K5u4w1iFuAS8eAG0ioA/9REdMjm+I=; b=KMs78ndyEeNeXBIRpRD9gNvpe5LjXXO3xOgsG/024I8NB2WQeyTTeHzJ4tifeEn0vT j4G+VDhqitiD48rzgDIdGJjLeBkpTmZ75g7AcN7SzrcQTU/AdHvdLkk9bMePbaWsP2sK 3Lo6AMU5gtG1bPxCmwEw3xghcX5669uZ6mglsyzF9/tbKJAqfteq7fe4V4zbqzw4Z3ir cmnuPtssYombNnqxQRMzkTYUrmf6DpOSxI1EGHZ+2YPsDMiUxf6TnjtJ81xAGwg1PSd2 wZtwLtdnWyxBusISUJozJtDgUsqlCrQvHHaun0leATT39iI5w4X9JuRogSFvZp9VN+D0 zItw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=NwobcONk; 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=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s36si5140177pld.46.2018.11.30.03.53.44; Fri, 30 Nov 2018 03:53:44 -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=@linaro.org header.s=google header.b=NwobcONk; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727071AbeK3XCn (ORCPT + 32 others); Fri, 30 Nov 2018 18:02:43 -0500 Received: from mail-ed1-f66.google.com ([209.85.208.66]:39044 "EHLO mail-ed1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726850AbeK3XCn (ORCPT ); Fri, 30 Nov 2018 18:02:43 -0500 Received: by mail-ed1-f66.google.com with SMTP id b14so4610119edt.6 for ; Fri, 30 Nov 2018 03:53:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=zXEVfusJTtHYF8K5u4w1iFuAS8eAG0ioA/9REdMjm+I=; b=NwobcONkSwjo+2uQ7nVK59I6q9dEFNNQt0qdWrVE4SJw0H6DF1/imJGhMY8ETyv1fb vZWJx25r7w9bAVyo5eoVr0UFMnGRDe0vYXub7f27c1DHcwlDXAjgZPrKqlBSyXYUJTxM /v9os+2zIGXg9lN2RQ+4RXIaiPb0RuGYhPveQ= 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:mime-version:content-transfer-encoding; bh=zXEVfusJTtHYF8K5u4w1iFuAS8eAG0ioA/9REdMjm+I=; b=tSi6rqDypV4ariEtjKLdJbmcv5qBESrS9mwhcXrTtWwNG5fQwZQX+8YW9o0CIs/pgD 0XPUFCby05TMCqp03Z8wJmLofNCqsauMMcg/1swWbOaWOchTcTmNZNssqwUbHmNBt7w0 J/r0JXFWWncHTo+AfKKY2Qjdf49QLmae92Kjwa5mPfVdDVOeBFuWQ8J88Puvz6PJ5/m+ u3Hu9IdHTUC0jW7pS/Pb4IkkevP4DTXlm157Zs+kjZ0SeIWRepsxVzJ81tpgIlvngJYG tWDHQmZgZZb+Gg5fa3L8M5bguYAb5HPYwvLMv7h8yGUv4OYBFV/q9Uk8Me6+D0iFX5sl Q5Qw== X-Gm-Message-State: AA+aEWa3QHgk54PfCyHY3c74ketdfJkGPmvOpmJ/e9A4D1qY6TsDsUsH Pt3d1DjO3LTgtCoFgwf5Y3yMRA== X-Received: by 2002:a50:cf41:: with SMTP id d1mr5126997edk.242.1543578819645; Fri, 30 Nov 2018 03:53:39 -0800 (PST) Received: from srini-hackbox.lan (cpc89974-aztw32-2-0-cust43.18-1.cable.virginm.net. [86.30.250.44]) by smtp.gmail.com with ESMTPSA id t10-v6sm767932ejg.41.2018.11.30.03.53.37 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 30 Nov 2018 03:53:37 -0800 (PST) From: Srinivas Kandagatla To: gregkh@linuxfoundation.org Cc: linux-kernel@vger.kernel.org, Jerome Brunet , Srinivas Kandagatla Subject: [PATCH 2/6] nvmem: meson-efuse: add error message on user_max failure. Date: Fri, 30 Nov 2018 11:53:21 +0000 Message-Id: <20181130115325.16539-3-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 2.19.2 In-Reply-To: <20181130115325.16539-1-srinivas.kandagatla@linaro.org> References: <20181130115325.16539-1-srinivas.kandagatla@linaro.org> MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Jerome Brunet Add an explicit error message when SM_EFUSE_USER_MAX command fails Signed-off-by: Jerome Brunet Signed-off-by: Srinivas Kandagatla --- drivers/nvmem/meson-efuse.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) -- 2.19.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)