Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp1397571imm; Fri, 22 Jun 2018 16:18:10 -0700 (PDT) X-Google-Smtp-Source: ADUXVKIpiKHIXIpiNxEK1n5OnPCduHxV34gM8FjM6FNdo4ZHYzRkHU5TJMFG4d2tsKM6bgI3t/d2 X-Received: by 2002:a17:902:aa83:: with SMTP id d3-v6mr3437911plr.323.1529709490278; Fri, 22 Jun 2018 16:18:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529709490; cv=none; d=google.com; s=arc-20160816; b=aN1Zu2TS2gKWr/DpMmhmNInbbNgcDCwWqvYWTs9hDTH+fz+rbYpF/8pZELMvyf87aT 0GeH94q2fJ6J0BS/Bwu8+GeosG1VzleJok/Beka+9FCmYKKu/vQR4I7Cm0atLB3LNUkM ci/Y9V1pK9t+OMEdMBa51dt62UxI30uPRDi7bppCU5Aq4Fs4MQsZtgFfsirK3oEA5TBh OPnR5vegPfia5LcKBPakHGIxbC3W6AtBz23ul4FcdI3BLS3Hy076Tel9Ng9ayjD/jkun T+rXzwthMEfFER6RdR8fBmoI4oOMf8H/qVA93fgkQOtZsgeDix0nPvY4uz3fgKiBSSKD K1Xw== 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-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=FT+1Nv04SJ0jUXi8OeHnHbrEw29/JKq1HiupH1TfUS4=; b=Jjd8Pu/vqBczSvT4zq1A2qy8RmTK765HUyl9PtyUZHDLskAGY6Un8+7ZM5T5RE6DQ0 5JqXcGklN+DGt/osbIqr+fBAUuKjU8Fo2KuXsmUbD6QgIPT7xsDehUBdPJtOkEbSBRQN b1iLU5eVio/kBtQtDPL+Y1rgJuG0YAiymBQRsqS4mmjSdUxKEGNwvUJj9/Grd1vnEQ7V w7bHI6MuncAMhLrjoLcC91iLsFZiCmxpyBOC7BoKBxSncCiHKSpFEK+U/O+E04PuTmTh 7EMN+/+zc5Oy80D1KWivMZO0Fe0KgW6kINIkABcnvuNmM7WAZNTIokpUqOcgRj256y3H 3HWw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=XS+XFZN2; 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 43-v6si8518669pla.362.2018.06.22.16.17.55; Fri, 22 Jun 2018 16:18:10 -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=@linaro.org header.s=google header.b=XS+XFZN2; 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 S1754734AbeFVXRR (ORCPT + 99 others); Fri, 22 Jun 2018 19:17:17 -0400 Received: from mail-pg0-f66.google.com ([74.125.83.66]:44761 "EHLO mail-pg0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754576AbeFVXRP (ORCPT ); Fri, 22 Jun 2018 19:17:15 -0400 Received: by mail-pg0-f66.google.com with SMTP id g26-v6so3570551pgn.11 for ; Fri, 22 Jun 2018 16:17:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=FT+1Nv04SJ0jUXi8OeHnHbrEw29/JKq1HiupH1TfUS4=; b=XS+XFZN24LciDcjLyG0YYALt5DgjqRNO+Vzy4dEQKhONEqoSBxx3y+cK5d6DvaD8+e lU64s+jOtP+OVru1S5qyhNsOWtpY8G4lPHRG0iyw5XLuc/DFQ+VVRU/fcpHaczIqD2TE BZ6MQ8jt2dpvR9llR5nuvDOOqD12HzMKR9Qf0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=FT+1Nv04SJ0jUXi8OeHnHbrEw29/JKq1HiupH1TfUS4=; b=eS5eL9EXVc7/LtVCe0oNVmsKSgEARe17oNtsds8AW6e3bERAS0TpOjRsmqWUXjl7D4 venj2po1ozTxPwAUF8HTXuPzzrlBNFE/xXXHUgStYhiyUVFY4n2yIJhG0tOu+iCY1jtQ PUcT8brNVnmYGQrM+UtthkpVrPpOApkW8nHMh8+55YU8x71U1Sw6AqM0/Bo+NiD2YMsE gCnkbsnva11ogHi3gaZsaLIOiuprtdDaT+AZRIQPSfr3c/knRZdJLxkuhoozy1tp6XWq 1wO6e+NzB79beKXp5nuRJaUUibvlOxDdlONzezT9G5j+bkJMEzV8Zx+tV0W4TkG96ZtJ V1rA== X-Gm-Message-State: APt69E2QC2JWU6Aa9AkgYHOrazdfRLjwzR6Xl9EJqfXV0Asf+sCeb3V1 J0xEt5eyHEZF5qF4KrNoJmvCCg== X-Received: by 2002:a62:e208:: with SMTP id a8-v6mr3623031pfi.6.1529709434604; Fri, 22 Jun 2018 16:17:14 -0700 (PDT) Received: from tuxbook-pro (104-188-17-28.lightspeed.sndgca.sbcglobal.net. [104.188.17.28]) by smtp.gmail.com with ESMTPSA id s22-v6sm9486037pgs.34.2018.06.22.16.17.13 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 22 Jun 2018 16:17:13 -0700 (PDT) Date: Fri, 22 Jun 2018 16:19:34 -0700 From: Bjorn Andersson To: Tomasz Figa Cc: vgarodia@codeaurora.org, Hans Verkuil , Mauro Carvalho Chehab , Rob Herring , Mark Rutland , andy.gross@linaro.org, Stanimir Varbanov , Linux Media Mailing List , Linux Kernel Mailing List , linux-arm-msm , linux-soc@vger.kernel.org, devicetree@vger.kernel.org, Alexandre Courbot Subject: Re: [PATCH v2 3/5] venus: add check to make scm calls Message-ID: <20180622231934.GO3402@tuxbook-pro> References: <1527884768-22392-1-git-send-email-vgarodia@codeaurora.org> <1527884768-22392-4-git-send-email-vgarodia@codeaurora.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.0 (2018-05-17) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon 04 Jun 05:58 PDT 2018, Tomasz Figa wrote: > Hi Vikash, > > On Sat, Jun 2, 2018 at 5:27 AM Vikash Garodia wrote: > [snip] > > +int venus_boot(struct venus_core *core) > > +{ > > + phys_addr_t mem_phys; > > + size_t mem_size; > > + int ret; > > + struct device *dev; > > + > > + if (!IS_ENABLED(CONFIG_QCOM_MDT_LOADER)) > > + return -EPROBE_DEFER; > > Why are we deferring probe here? The option will not magically become > enabled after probe is retried. > The original code should have read: if (IS_ENABLED(CONFIG_QCOM_MDT_LOADER) && !qcom_scm_is_available()) return -EPROBE_DEFER; The code does depend on CONFIG_QCOM_MDT_LOADER regardless of it using scm for firmware verification. Regards, Bjorn