Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp933663ybp; Thu, 17 Oct 2019 05:50:05 -0700 (PDT) X-Google-Smtp-Source: APXvYqwVm/Glxo8h6g++SaGyGqVgMKa1zC0MXdCL6aKdyXicfchY0/iLwfwMfuWUs2xlk4DzmNmB X-Received: by 2002:a17:906:4d50:: with SMTP id b16mr3213285ejv.245.1571316605514; Thu, 17 Oct 2019 05:50:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571316605; cv=none; d=google.com; s=arc-20160816; b=Y8PE7n1glOXKupLAwVefIn6TfGlX/Gxp1u+YjZMSV8nhPBnKR6wyaMBr66JacfgZoW 64T7psoZSuDuUjsMsYrSKZLv6AS0WWa951S6y7X7fQK8ZS3T3FzocrHyi+ibhnAdWDkS /36dZO7gQduiC1KiP4CreGFpQsisGUnF/nOZQTpta97QdSFgdWnaio7pW6PUGhgw5nbx Fq0YSlZmdQ5+aTcinIJ6VtSp+8Aw8sk/t3tK6oFcxYB+Nz2Oa/7pVt2crr0ffBynKvfc 4PixCzT/6pJ+KoGk2lhBbJ/i7miviZ/xTJlNEO1P8G2vWrCottM9URbCeIFTEReQNBBy sSsg== 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 :user-agent:references:in-reply-to:date:cc:to:from:subject :message-id:dkim-signature; bh=O4neeP46Aj8j5ls4dZXm/jjSg5a94zuoaIAF6BtKDgY=; b=O1vtLazSdQUzXr8GtlGSWRnzBLqUuvKh7hz2Mtm23bDVAu4cyeg7W+lQWsh57aPFt6 Bs5gIGGOOfYyFmEMseyC/XbpLU+M3bjVV0qu6tT8Z19U+iDa20nyGlRdXYGr+Q2uTzRY vSz3fmnRvgqLJEFBImK0fEA1Uu67cDX9nn9Si8RiCqT1EvO0ZsI8wMnTWK/Hl88cI+5J X8s0TcDszrShWk/eoJ/bybALVOPe8kUePwgLMkxtxUbEMphpcXX5c5Nm6AMcCof0/cMb yeI6MKHZ0NpZN9ofD+atqWUAsh8oan9pynajNCBHyzraYsjX00bP4axnJIVU6nD9SI1q opZg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=ZqycmVl+; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e4si1364382edy.295.2019.10.17.05.49.42; Thu, 17 Oct 2019 05:50:05 -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=@gmail.com header.s=20161025 header.b=ZqycmVl+; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2394190AbfJPR6x (ORCPT + 99 others); Wed, 16 Oct 2019 13:58:53 -0400 Received: from mail-pf1-f193.google.com ([209.85.210.193]:33344 "EHLO mail-pf1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726691AbfJPR6x (ORCPT ); Wed, 16 Oct 2019 13:58:53 -0400 Received: by mail-pf1-f193.google.com with SMTP id q10so15216071pfl.0 for ; Wed, 16 Oct 2019 10:58:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=message-id:subject:from:to:cc:date:in-reply-to:references :user-agent:mime-version:content-transfer-encoding; bh=O4neeP46Aj8j5ls4dZXm/jjSg5a94zuoaIAF6BtKDgY=; b=ZqycmVl+8d17eNUxTMRF7q7RJFdCpbcpcUAnhv2sxBWLCaEgaB8q4zpvkO4RzF1AF6 S/wPPTIMV+lDmKnP+3FP2sLbPT1R825/ZPk7ObeH62eaN4rH7dR+12KD8fz7BHBtvvfb 54S2A3LZnKOrjqzNwQCnRUZVhBahTgWPzqv392Eap26NqbgIeGOHXDLAKrENclxw1xch 4isdhXkAVukgL7ulhVq9+iIZfRotAirHfxDgetpUcZ0oTMMxwrDwGinZSFktvh2meqZH xTXLuhdTa+OgiialtOXaGvrFgj8wQ7h+FOAP1lPkFlWWf8hNEE09X6w1U7fhvZgMn18D HoeQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:subject:from:to:cc:date:in-reply-to :references:user-agent:mime-version:content-transfer-encoding; bh=O4neeP46Aj8j5ls4dZXm/jjSg5a94zuoaIAF6BtKDgY=; b=T+fs+JK+V6CcL4geypgieicUZYYtw1/fFxRbieSwpGdXRXAmfszDL8OlqOGFeUDN6k YHDyUVCo4vFoMz2qJl7tyWIOrUTtLk5ie+L8LcPrHEsg5MTU9iFPw6yK8YvY5mXnXr8k Ar2LL71K+p2Ni69QMYGItVux90D5TL4h73tjmqqlXwr2wJLHmDyvj1CeIiWaiHeVVu2t G1XVDvlBHluamjxpl785RbAa03wt4riy/45uC7++DNQ2JfPn5OsnoGhIWD4McuJTZoKD 1ESpVavbmB4Qyw4tliMq4ywhsXYq4vqbCy1kzNqYfYre5BztsCj2VT8sjwXD/4Qa3J2z 2Sqg== X-Gm-Message-State: APjAAAUoGKV6ZP1Y4TwQZLYI5PNDCLkw35fnegt2EeXmauiIsB2aEoQ1 omzTQBKHE8qJg4fZiWSHIk4= X-Received: by 2002:a17:90a:8002:: with SMTP id b2mr241267pjn.39.1571248731173; Wed, 16 Oct 2019 10:58:51 -0700 (PDT) Received: from iclxps (155-97-232-235.usahousing.utah.edu. [155.97.232.235]) by smtp.gmail.com with ESMTPSA id d5sm39592753pfa.180.2019.10.16.10.58.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 16 Oct 2019 10:58:50 -0700 (PDT) Message-ID: <38f39e9e77cb4bc809a15da45d988f33cb0f7f00.camel@gmail.com> Subject: Re: [PATCH v4 1/2] lib: devres: add a helper function for ioremap_uc From: Tuowen Zhao To: Luis Chamberlain , Andy Shevchenko Cc: lee.jones@linaro.org, linux-kernel@vger.kernel.org, AceLan Kao , Mika Westerberg Date: Wed, 16 Oct 2019 11:58:48 -0600 In-Reply-To: <20191016125615.GI16384@42.do-not-panic.com> References: <20191014153344.8996-1-ztuowen@gmail.com> <201910150232.F7RTW83B%lkp@intel.com> <20191015074434.GU32742@smile.fi.intel.com> <20191016125615.GI16384@42.do-not-panic.com> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 2019-10-16 at 12:56 +0000, Luis Chamberlain wrote: > Indeed, can you add that? If you are not comfortable the way to leave > behind lazy architectures is the HAS_FOO feature and then have your > driver require that or depend on the archs that support this. This > allows non-lazy architecturess to move forward with life. > > Luis Upon close examination, the issue seems easy to fix. Going to submit a new set shortly. sparc64 and hexagon don't have ioremap_uc defined. Hexagon also doesn't have ioremap_wc but didn't report an issue before so devm_ioremap won't have an problem. Interestingly tho, majority of the archs include , thus having prototypes. These two archs and a few others don't. I'm wondering if including the prototypes is actually the recommended practice. Tuowen